[GH-ISSUE #300] Image encoder keeps failing on 8GB GPU #147

Closed
opened 2026-11-04 01:40:26 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @sinand99 on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/300

Reopening #261

Image

I tried the options you mentioned with the engine version 0.1.130: (All GPU programs closed)

  • 48K, 32K, 16K context: none of them works. Same error. (so this is not about the context)
  • --kv k8v4: Same error.
  • START-HERE.bat --setup --vision cpu: error (This was working in the v0.1.129)
    --vram-reserve-mib 700: error
    --vram-reserve-mib 1200: error
    --prefill auto: error
    --prefill 512: works (cpu)
  1. I guess "--prefill auto" option should be smarter to try all values (1024/512/256/128) for all types of VRAM.
  2. Why do you reserve VRAM on GPU when the vision is done on the CPU? (See #288)
  3. You said "On an 8 GB card at 64K with the image encoder on the GPU, no VRAM is left for the expert cache" So how was the v0.1.124 working on the same hardware perfectly with gpu vision? I see more regressions since that version for 8GB cards unfortunately.
  4. Can I try a low value for the "--expert-cache" instead of auto to free some VRAM for image encoding? What number would you recommend?

Log:

strata-vision: warmed up at 289 image tokens
strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows)
strata generate: native pack: G:\AI\Text\Apps\Strata-data\packs\iq3_s experts (largest blob 2.66 MB), token embedding type 23 in mapped host memory (322 MiB)
strata generate: 1466 MiB of weights loaded from G:\AI\Text\Apps\Strata-data\packs\iq3_s (302 canonical tensors skipped: served natively)
strata generate: 300 native projection matrices, 2018.88 MiB of weights
strata generate: profile G:\AI\Text\Apps\Strata\data\expert-profile.bin: 24576 ranked pairs, built for 24576 slots
strata generate: KV streaming: 32768 of 65536 cells per QSA layer in VRAM, the K/V in 0.77 GiB of pinned RAM
strata generate: PLE on, table 320001536 rows of G:\AI\Text\Apps\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf
strata mtp: draft layer loaded, 835 MiB of VRAM (experts 675, dense 111), files read in 0.39 s (2008 MiB/s)
strata generate: expert arena: locked 1302 MiB via working-set minimum + VirtualLock; cudaHostRegister of the whole arena FAILED (out of memory); 47 slices pinned (45 GiB); large pages refused for 50295996416 B (GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages
strata generate: loaded 46.84 GiB at 2.13 GiB/s
strata generate: experimental native Q5_K head, 521472000 bytes
strata generate: expert cache auto: 0.06 GiB free, 700 MiB reserved (+86 MiB for the draft head) -> 0 slots
strata generate: no VRAM is left for the expert cache: lower --max-context, use --kv k8v4, run images on the CPU, or close other programs that use the GPU
strata generate: pre-filled 0 of 0 slots from the profile; slot 0 verified
strata generate: 11 expert-pool workers + the host thread
strata generate: session is up (engine 0.1.30)
strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)
strata serve: prefill: device buffers for a chunk of 1024 tokens do not fit
strata serve: the GPU has too little free VRAM for the prompt path: turn images off (setup: --vision no), close other programs using the GPU, use a shorter context, or read prompts in smaller chunks (--prefill 512)

Originally created by @sinand99 on GitHub (Sep 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/300 Reopening #261 <img width="950" height="371" alt="Image" src="https://github.com/user-attachments/assets/de1f397a-9a55-4586-9bd4-d57b70b933ed" /> I tried the options you mentioned with the engine version 0.1.130: (All GPU programs closed) - **48K, 32K, 16K context:** none of them works. Same error. (so this is not about the context) - **--kv k8v4**: Same error. - **START-HERE.bat --setup --vision cpu**: error (This was working in the v0.1.129) --vram-reserve-mib 700: error --vram-reserve-mib 1200: error --prefill auto: error --prefill 512: **works** (cpu) 1. I guess "--prefill auto" option should be smarter to try all values (1024/512/256/128) for all types of VRAM. 2. Why do you reserve VRAM on GPU when the vision is done on the CPU? (See #288) 3. You said _"On an 8 GB card at 64K with the image encoder on the GPU, no VRAM is left for the expert cache"_ So how was the v0.1.124 working on the same hardware perfectly with gpu vision? I see more regressions since that version for 8GB cards unfortunately. 4. Can I try a low value for the "--expert-cache" instead of auto to free some VRAM for image encoding? What number would you recommend? Log: ------ strata-vision: warmed up at 289 image tokens strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows) strata generate: native pack: G:\AI\Text\Apps\Strata-data\packs\iq3_s experts (largest blob 2.66 MB), token embedding type 23 in mapped host memory (322 MiB) strata generate: 1466 MiB of weights loaded from G:\AI\Text\Apps\Strata-data\packs\iq3_s (302 canonical tensors skipped: served natively) strata generate: 300 native projection matrices, 2018.88 MiB of weights strata generate: profile G:\AI\Text\Apps\Strata\data\expert-profile.bin: 24576 ranked pairs, built for 24576 slots strata generate: KV streaming: 32768 of 65536 cells per QSA layer in VRAM, the K/V in 0.77 GiB of pinned RAM strata generate: PLE on, table 320001536 rows of G:\AI\Text\Apps\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf strata mtp: draft layer loaded, 835 MiB of VRAM (experts 675, dense 111), files read in 0.39 s (2008 MiB/s) strata generate: expert arena: locked 1302 MiB via working-set minimum + VirtualLock; cudaHostRegister of the whole arena FAILED (out of memory); 47 slices pinned (45 GiB); large pages refused for 50295996416 B (GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages strata generate: loaded 46.84 GiB at 2.13 GiB/s strata generate: experimental native Q5_K head, 521472000 bytes strata generate: expert cache auto: 0.06 GiB free, 700 MiB reserved (+86 MiB for the draft head) -> 0 slots strata generate: no VRAM is left for the expert cache: lower --max-context, use --kv k8v4, run images on the CPU, or close other programs that use the GPU strata generate: pre-filled 0 of 0 slots from the profile; slot 0 verified strata generate: 11 expert-pool workers + the host thread strata generate: session is up (engine 0.1.30) strata serve: the prompt path allocates its own buffers (too few cache slots to borrow) strata serve: prefill: device buffers for a chunk of 1024 tokens do not fit strata serve: the GPU has too little free VRAM for the prompt path: turn images off (setup: --vision no), close other programs using the GPU, use a shorter context, or read prompts in smaller chunks (--prefill 512)
Author
Owner

@Niko1221 commented on GitHub (Oct 1, 2026):

0.1.31 lets the prompt chunk step down to 512 when VRAM is short, which should cover this. Please retest on 0.1.31; --vision cpu and a fixed --expert-cache N both work. Reopen with the log if it still fails.

<!-- gh-comment-id:5925965427 --> @Niko1221 commented on GitHub (Oct 1, 2026): 0.1.31 lets the prompt chunk step down to 512 when VRAM is short, which should cover this. Please retest on 0.1.31; `--vision cpu` and a fixed `--expert-cache N` both work. Reopen with the log if it still fails.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#147
No description provided.