[GH-ISSUE #261] The engine exited before it was ready #134

Closed
opened 2026-11-04 01:40:18 +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/261

Confirming #174 is not fixed.
As I said before, my card is (RTX 3070 Ti 8GB). Now with the engine 129 at least I can use vision with CPU, but I was able to use 64k context with vision on GPU with version 0.1.24. I don't want to lower the context as it is barely enough to use with Pi on coding projects. I guess you can change the code so that it will calculate how many layers will fit inside available VRAM (experts + draft + vision) BEFORE trying to assign them and complain that VRAM is full.

Also, can you add an option to the setup.bat to use the vision with CPU so I don't need to use parameters next time?

Log with GPU Vision

strata-vision: warmed up at 1024 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: 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.40 s (1953 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.29 GiB/s
strata generate: profile G:\AI\Text\Apps\Strata\data\expert-profile.bin: 24576 ranked pairs, built for 24576 slots
strata generate: experimental native Q5_K head, 521472000 bytes
strata generate: expert cache auto: 0.08 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: 7 expert-pool workers + the host thread
strata generate: session is up (engine 0.1.29)
strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)
strata serve: verify: needs the profile-filled VRAM expert tier (--expert-profile and --expert-cache); with --expert-cache auto, no VRAM was left for it: lower --max-context, use --kv k8v4 or images on the CPU

Log with CPU Vision

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: 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 (2016 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.18 GiB/s
strata generate: profile G:\AI\Text\Apps\Strata\data\expert-profile.bin: 24576 ranked pairs, built for 24576 slots
strata generate: experimental native Q5_K head, 521472000 bytes
strata generate: expert cache auto: 1.08 GiB free, 700 MiB reserved (+86 MiB for the draft head) -> 123 slots
strata generate: expert cache 157 slots, 0.30 GiB of VRAM; policy is
strata generate: the GPU computes the experts in the cache; it rounds differently from the CPU,
so a reply can differ slightly from a run without the cache (same quality:
bench/results/2026-09-27-cache-parity).
PROFILE, ranked by routing frequency, no eviction.
strata generate: pre-filled 157 of 157 slots from the profile; slot 0 verified
strata generate: R4 hit path ON - resident experts are computed on the GPU
strata generate: 7 expert-pool workers + the host thread
strata generate: session is up (engine 0.1.29)
strata generate: token graph hit path: 157 resident experts, decided on the device
strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)
strata verify: window up to 6 tokens, 74.3 MiB of device buffers
strata mtp: draft head over 40525 tokens (81.2 MiB)
strata serve: 0 MiB of VRAM free with everything loaded - LOW: requests may stall; add --vram-reserve-mib 1212 to the config's args (or lower --max-context)

Originally created by @sinand99 on GitHub (Sep 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/261 Confirming #174 is not fixed. As I said before, my card is (RTX 3070 Ti 8GB). Now with the engine 129 at least I can use vision with CPU, but I was able to use 64k context with vision on GPU with version 0.1.24. I don't want to lower the context as it is barely enough to use with Pi on coding projects. I guess you can change the code so that it will calculate how many layers will fit inside available VRAM (experts + draft + vision) BEFORE trying to assign them and complain that VRAM is full. Also, can you add an option to the setup.bat to use the vision with CPU so I don't need to use parameters next time? Log with GPU Vision ----------------------- strata-vision: warmed up at 1024 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: 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.40 s (1953 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.29 GiB/s strata generate: profile G:\AI\Text\Apps\Strata\data\expert-profile.bin: 24576 ranked pairs, built for 24576 slots strata generate: experimental native Q5_K head, 521472000 bytes strata generate: expert cache auto: 0.08 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: 7 expert-pool workers + the host thread strata generate: session is up (engine 0.1.29) strata serve: the prompt path allocates its own buffers (too few cache slots to borrow) strata serve: verify: needs the profile-filled VRAM expert tier (--expert-profile and --expert-cache); with --expert-cache auto, no VRAM was left for it: lower --max-context, use --kv k8v4 or images on the CPU Log with CPU Vision ----------------------- 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: 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 (2016 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.18 GiB/s strata generate: profile G:\AI\Text\Apps\Strata\data\expert-profile.bin: 24576 ranked pairs, built for 24576 slots strata generate: experimental native Q5_K head, 521472000 bytes strata generate: expert cache auto: 1.08 GiB free, 700 MiB reserved (+86 MiB for the draft head) -> 123 slots strata generate: expert cache 157 slots, 0.30 GiB of VRAM; policy is strata generate: the GPU computes the experts in the cache; it rounds differently from the CPU, so a reply can differ slightly from a run without the cache (same quality: bench/results/2026-09-27-cache-parity). PROFILE, ranked by routing frequency, no eviction. strata generate: pre-filled 157 of 157 slots from the profile; slot 0 verified strata generate: R4 hit path ON - resident experts are computed on the GPU strata generate: 7 expert-pool workers + the host thread strata generate: session is up (engine 0.1.29) strata generate: token graph hit path: 157 resident experts, decided on the device strata serve: the prompt path allocates its own buffers (too few cache slots to borrow) strata verify: window up to 6 tokens, 74.3 MiB of device buffers strata mtp: draft head over 40525 tokens (81.2 MiB) strata serve: 0 MiB of VRAM free with everything loaded - LOW: requests may stall; add --vram-reserve-mib 1212 to the config's args (or lower --max-context)
Author
Owner

@Niko1221 commented on GitHub (Sep 30, 2026):

On an 8 GB card at 64K with the image encoder on the GPU, no VRAM is left for the expert cache, and the engine needs at least one slot for the verify window, so it stops. Options:

  • START-HERE.bat --setup --vision cpu puts the image encoder on the CPU (no manual arguments needed);
  • --kv k8v4 (smaller KV cache), or about 48K context;
  • your CPU-vision log also shows 0 MiB free, so add --vram-reserve-mib 1200 if it still stops.

Closing as answered; reopen with the new log if none of these starts.

<!-- gh-comment-id:5917489248 --> @Niko1221 commented on GitHub (Sep 30, 2026): On an 8 GB card at 64K with the image encoder on the GPU, no VRAM is left for the expert cache, and the engine needs at least one slot for the verify window, so it stops. Options: - `START-HERE.bat --setup --vision cpu` puts the image encoder on the CPU (no manual arguments needed); - `--kv k8v4` (smaller KV cache), or about 48K context; - your CPU-vision log also shows 0 MiB free, so add `--vram-reserve-mib 1200` if it still stops. Closing as answered; reopen with the new log if none of these starts.
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#134
No description provided.