mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1946] [CLOSED] fix(vision): scale GPU warm-up for image caps above 4096 #3770
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3770
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1946
Author: @xszwow
Created: 10/11/2026
Status: ❌ Closed
Base:
main← Head:fix/vision-high-cap-warmup📝 Commits (1)
14a63a3fix(vision): scale GPU warm-up for image caps above 4096📊 Changes
1 file changed (+8 additions, -3 deletions)
View changed files
📝
tools/vision/strata_vision.cpp(+8 -3)📄 Description
Issue: Fixes #1945
Summary
With
--gpu --max-tokens 8192,strata-visionstill warms a fixed 2048 × 2048 bitmap, which produces only 4096 image tokens. On a Radeon 8060S/Vulkan run, encoding an 8160-token 4K image subsequently allocated another 605,757,440 bytes afterREADY, when the language engine may already have sized its expert cache.Scale the dummy bitmap for explicitly configured caps above 4096. The tested 8192 cap now warms at 8100 tokens and reaches its observed 2.1474 GiB encoder allocation before
READY; the same 4K image adds no further allocation in this test.What changed
Only
tools/vision/strata_vision.cppchanges:<cmath>and use32 * ceil(sqrt(max_tokens))for caps above 4096, matching the Qwen merged-token pixel size.The model, encoder math, CLI defaults, language engine, installer and server settings remain unchanged.
Validation
Same-day source builds against
mainat61b3fb5dd3f1e8ec09cf7e4e05208bc6d3c46406, with llama.cpp pinned at3cf03257f219afbe7334045ff7c6a06ac68c627d. Tested on Windows 11 Home build 26200, Ryzen AI Max+ 395 / Radeon 8060S (gfx1151), 128 GB RAM / 96 GB GPU assignment, AMD driver 32.0.31032.1003, LLVM MinGW 23.1.3 (20261006), Vulkan SDK 1.4.350.0. Both builds used native CPU kernels.READY 2560, encoded valid finite SVE embeddings and exited cleanly.git diff --checkpassed.For cap 8192, Windows dedicated-GPU-memory counters were:
Measured prewarm was 8.2 s before and 33.2 s after at cap 8192. This intentionally moves the larger allocation/encode cost to startup. These are single functional observations, not a throughput benchmark or an established end-to-end speed improvement.
Reproduction:
Extra Notes
Draft because CUDA encoder build/runtime validation is still outstanding under the repository's backend-validation requirement; this AMD machine has no CUDA toolkit. HIP/SYCL language-engine files are untouched. Other GPUs, caps above 8192 and unusual aspect ratios were not tested, and no OOM/paging failure is claimed to have been reproduced.
Both local builds needed an explicit
<functional>include in the external pinned llama.cpp Vulkan header when using libc++; that identical build prerequisite is excluded from this Strata PR.Related Windows AMD image work: #1155, #1287, #1789. This change can accompany those build/installer changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.