[GH-ISSUE #3605] [Engine] During initial strata launch migrating from 0.1.45 to 0.2.1 it hangs while test-starting the engine #1488

Closed
opened 2026-11-04 01:51:38 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @njcray2 on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3605

Windows 11, 64GB, RTX 4070 Ti Super, source installation

Updated from 0.1.45 source installation.

Ran "M:\Strata.venv\Scripts\python.exe" strata.py launch

It found the installed model (iq3_xxs) and after I answered the setup questions it downloaded engine 0.1.47 windows-x86_64-cuda-cuda13 and then "test-started" it. This successfully starts the engine but it never responds and eventually times out. At this point the script deletes the engine.

I have tried this with and without set STRATA_COMPONENTS_DIR=M:\Strata-Components. The 2nd time I allowed it to install into %appdata%\local\ but that did not help. The log is included below. It did leave a file in
%appdata%\Local\Strata\components.updates\partial in both cases but also what seemed like a full engine in the .s directory before it was deleted. The failure method was the same in both cases.

test-start-0.1.7.log

ggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detected
load_hparams: Qwen-VL models require at minimum 1024 image tokens to function correctly on grounding tasks
load_hparams: if you encounter problems with accuracy, try adding --image-min-tokens 1024
load_hparams: more info: https://github.com/ggml-org/llama.cpp/issues/16842

strata-vision: model files loaded in 1.0 s
strata-vision: on the CPU, 12 threads, no warm-up
[strata] 2026-10-21 15:40:58 engine started: C:\Users\njcr\AppData\Local\Strata\components\.s\fcc4\engine\0.1.47-windows-x86_64-cuda-cuda13\strata.exe --serve --pack M:\Strata-data\packs\iq3_xxs --native M:\Strata-data\models\IQ3_XXS\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf M:\Strata-data\models\IQ3_XXS\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile expert-profile-learned.bin --expert-cache auto --prefill auto --spec 4 --mtp M:\Strata-data\mtp\rt --max-context 131072 --kv int8 --kv-resident 32768 --vision --pcie-frac 0.35 --spec-min-p 0.70 --adapt-every 1 --adapt-swaps 80 --adapt-decay 0.97 --vram-reserve-mib 1600 --expert-profile-save expert-profile-learned.bin
strata generate: memory guard: limit 63.4 GiB (source: meminfo), current 10.5 GiB, reclaimable cache credited 0.0 GiB; available 52.8 GiB (MemAvailable 52.8 GiB), floor 2560 MiB
strata generate: native pack: M:\Strata-data\packs\iq3_xxs experts (largest blob 2.33 MB), token embedding IQ3_S in mapped host memory (260 MiB, 0.3 s)
strata generate: 1466 MiB of weights loaded from M:\Strata-data\packs\iq3_xxs in 0.2 s (302 canonical tensors skipped: served natively)
strata generate: 300 native projection matrices, 1781.11 MiB of weights, in 1.4 s
strata generate: PLE direct read probe: 205045 rows/s (fine)
strata generate: the SSD is kept awake while rows are read: one page of the table after 100 ms without a read, until 60 s after the last request (STRATA_SSD_KEEPALIVE=0 turns it off)
strata generate: profile expert-profile-learned.bin: 24576 ranked pairs, built for 24576 slots
strata generate: KV streaming: 32768 of 131072 cells per QSA layer in VRAM, the K/V in 1.55 GiB of pinned RAM
strata generate: PLE on, table 320001536 rows of M:\Strata-data\models\IQ3_XXS\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf
strata mtp: draft layer loaded, 835 MiB of VRAM (experts 675, dense 111), files read in 0.17 s (4566 MiB/s)
strata generate: experimental native Q5_K head, 437043200 bytes, in 0.3 s
strata generate: GPU 0: NVIDIA GeForce RTX 4070 Ti SUPER, compute capability 8.9
strata: pinned-memory headroom: holding 800 MiB for the buffers allocated after the expert arena (released after it: 640 MiB; kept until needed: 160 MiB; STRATA_PIN_RESERVE_MIB changes it)
strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 9.8 GiB available, 43.8 GiB of files)
strata: pinned-memory headroom: 640 MiB handed back after the expert arena
strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 42916118528 B (GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages
strata generate: loaded 39.97 GiB at 5.96 GiB/s
strata generate: CPU pool tasks/phase: 36 (automatic), participating threads: 12
strata generate: CPU pool: 11 workers by default (12 physical cores, 24 logical processors; bounded by every physical core but the host's)
strata generate: 11 pool workers on logical processors 2,4,6,8,10,12,14,16,18,20,22, the host thread on 0 (draining too) (--host-core first)
strata generate: CPU workers on logical processors 2,4,...,22 (11 workers, one per physical core; host on 0)
strata aux cpus: not available on this system
strata generate: expert cache auto: 9.36 GiB free, 1600 MiB reserved (+184 MiB for the draft head) -> 3512 slots
strata generate: expert cache 4661 slots, 7.62 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 4661 of 4661 slots from the profile in 0.4 s (22912 MB/s); slot 0 verified
strata generate: R4 hit path ON - resident experts are computed on the GPU
strata generate: 11 expert-pool workers + the host thread
strata generate: session is up (engine 0.1.47)
strata generate: token graph hit path: 4661 resident experts, decided on the device
strata serve: Windows commit: 18.7 GiB left of a 95.4 GiB limit (RAM + page file)
prefill: the CPU share is ON by default for prompt chunks below 1024 tokens (the idle CPU takes some of the experts the GPU would stream; answers can differ slightly from 0.1.40.3, mean KL ~0.004). STRATA_PREFILL_CPU_SHARE=0 turns it off.
strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring
strata serve: the prompt path borrows 2537 CUDA0 cache slots (4.12 GiB)
strata hc: CUDA0: the hyper-connection read runs as staged (the norm per token and stream, the down projection's activations staged ahead by cp.async); checked bit for bit against the plain read on this card (STRATA_HC_SPLIT=1 or 0 for the earlier ones)
strata verify: window up to 6 tokens, 70.1 MiB of device buffers
strata mtp: draft head over 106299 tokens (178.4 MiB)
strata serve: STRATA_ROUTE_TAIL_SKIP=7 is ON (default): a missed expert that every token of a verify window routes at rank 7 or lower is skipped (+10..20% decode on 12-16 GB cards that miss experts, answers differ slightly from 0.1.41); STRATA_ROUTE_TAIL_SKIP=0 turns it off
strata serve: adaptive overlap: off (STRATA_ADAPT_OVERLAP=1 turns it on)
strata serve: 1253 MiB of VRAM free with everything loaded

state.json

 "engine": {
  "failed": {
   "0.1.47": {
    "at": "2026-10-21T14:50:59.760237+00:00",
    "manifest_sha256": "95eb1eef404859e3afae56811cccb3da27bbab6b589e276fe4e4e701dfbe9427",
    "reason": "it did not answer a one-token probe (startup_wait_expired) | strata serve: STRATA_ROUTE_TAIL_SKIP=7 is ON (default): a missed expert that every token of a verify window routes at rank 7 or lower is skipped (+10..20% decode on 12-16 GB cards that miss experts, answers differ slightly from 0.1.41); ST"
   }
  }
 },
 "feed": {
  "channel": "stable",
  "checked_at": "2026-10-21T14:39:45.345211+00:00",
  "key_id": "5d1bc23abbeffd0d",
  "sequence": 107,
  "source": "https://github.com/Niko1221/Strata/releases/latest/download/strata-feed.json"
 },
 "history": [
  {
   "action": "update-engine",
   "at": "2026-10-21T14:50:59.760237+00:00",
   "detail": "test start failed: it did not answer a one-token probe (startup_wait_expired) | strata serve: STRATA_ROUTE_TAIL_SKIP=7 is ON (default): a missed expert that every token of a verify window routes at rank 7 or lower is sk",
   "from": null,
   "ok": false,
   "to": "0.1.47"
  }
 ],
 "last_check": {
  "app": null,
  "at": "2026-10-21T11:55:02.868460+00:00",
  "control": null,
  "engine": "0.1.47",
  "engine_installed": null
 },
 "schema_version": 1
}


Originally created by @njcray2 on GitHub (Oct 21, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3605 Windows 11, 64GB, RTX 4070 Ti Super, source installation Updated from 0.1.45 source installation. Ran "M:\Strata\.venv\Scripts\python.exe" strata.py launch It found the installed model (iq3_xxs) and after I answered the setup questions it downloaded engine 0.1.47 windows-x86_64-cuda-cuda13 and then "test-started" it. This successfully starts the engine but it never responds and eventually times out. At this point the script deletes the engine. I have tried this with and without `set STRATA_COMPONENTS_DIR=M:\Strata-Components`. The 2nd time I allowed it to install into %appdata%\local\ but that did not help. The log is included below. It did leave a file in %appdata%\Local\Strata\components\.updates\partial in both cases but also what seemed like a full engine in the .s directory before it was deleted. The failure method was the same in both cases. test-start-0.1.7.log ``` ggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detected load_hparams: Qwen-VL models require at minimum 1024 image tokens to function correctly on grounding tasks load_hparams: if you encounter problems with accuracy, try adding --image-min-tokens 1024 load_hparams: more info: https://github.com/ggml-org/llama.cpp/issues/16842 strata-vision: model files loaded in 1.0 s strata-vision: on the CPU, 12 threads, no warm-up [strata] 2026-10-21 15:40:58 engine started: C:\Users\njcr\AppData\Local\Strata\components\.s\fcc4\engine\0.1.47-windows-x86_64-cuda-cuda13\strata.exe --serve --pack M:\Strata-data\packs\iq3_xxs --native M:\Strata-data\models\IQ3_XXS\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf M:\Strata-data\models\IQ3_XXS\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile expert-profile-learned.bin --expert-cache auto --prefill auto --spec 4 --mtp M:\Strata-data\mtp\rt --max-context 131072 --kv int8 --kv-resident 32768 --vision --pcie-frac 0.35 --spec-min-p 0.70 --adapt-every 1 --adapt-swaps 80 --adapt-decay 0.97 --vram-reserve-mib 1600 --expert-profile-save expert-profile-learned.bin strata generate: memory guard: limit 63.4 GiB (source: meminfo), current 10.5 GiB, reclaimable cache credited 0.0 GiB; available 52.8 GiB (MemAvailable 52.8 GiB), floor 2560 MiB strata generate: native pack: M:\Strata-data\packs\iq3_xxs experts (largest blob 2.33 MB), token embedding IQ3_S in mapped host memory (260 MiB, 0.3 s) strata generate: 1466 MiB of weights loaded from M:\Strata-data\packs\iq3_xxs in 0.2 s (302 canonical tensors skipped: served natively) strata generate: 300 native projection matrices, 1781.11 MiB of weights, in 1.4 s strata generate: PLE direct read probe: 205045 rows/s (fine) strata generate: the SSD is kept awake while rows are read: one page of the table after 100 ms without a read, until 60 s after the last request (STRATA_SSD_KEEPALIVE=0 turns it off) strata generate: profile expert-profile-learned.bin: 24576 ranked pairs, built for 24576 slots strata generate: KV streaming: 32768 of 131072 cells per QSA layer in VRAM, the K/V in 1.55 GiB of pinned RAM strata generate: PLE on, table 320001536 rows of M:\Strata-data\models\IQ3_XXS\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf strata mtp: draft layer loaded, 835 MiB of VRAM (experts 675, dense 111), files read in 0.17 s (4566 MiB/s) strata generate: experimental native Q5_K head, 437043200 bytes, in 0.3 s strata generate: GPU 0: NVIDIA GeForce RTX 4070 Ti SUPER, compute capability 8.9 strata: pinned-memory headroom: holding 800 MiB for the buffers allocated after the expert arena (released after it: 640 MiB; kept until needed: 160 MiB; STRATA_PIN_RESERVE_MIB changes it) strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 9.8 GiB available, 43.8 GiB of files) strata: pinned-memory headroom: 640 MiB handed back after the expert arena strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 42916118528 B (GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages strata generate: loaded 39.97 GiB at 5.96 GiB/s strata generate: CPU pool tasks/phase: 36 (automatic), participating threads: 12 strata generate: CPU pool: 11 workers by default (12 physical cores, 24 logical processors; bounded by every physical core but the host's) strata generate: 11 pool workers on logical processors 2,4,6,8,10,12,14,16,18,20,22, the host thread on 0 (draining too) (--host-core first) strata generate: CPU workers on logical processors 2,4,...,22 (11 workers, one per physical core; host on 0) strata aux cpus: not available on this system strata generate: expert cache auto: 9.36 GiB free, 1600 MiB reserved (+184 MiB for the draft head) -> 3512 slots strata generate: expert cache 4661 slots, 7.62 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 4661 of 4661 slots from the profile in 0.4 s (22912 MB/s); slot 0 verified strata generate: R4 hit path ON - resident experts are computed on the GPU strata generate: 11 expert-pool workers + the host thread strata generate: session is up (engine 0.1.47) strata generate: token graph hit path: 4661 resident experts, decided on the device strata serve: Windows commit: 18.7 GiB left of a 95.4 GiB limit (RAM + page file) prefill: the CPU share is ON by default for prompt chunks below 1024 tokens (the idle CPU takes some of the experts the GPU would stream; answers can differ slightly from 0.1.40.3, mean KL ~0.004). STRATA_PREFILL_CPU_SHARE=0 turns it off. strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring strata serve: the prompt path borrows 2537 CUDA0 cache slots (4.12 GiB) strata hc: CUDA0: the hyper-connection read runs as staged (the norm per token and stream, the down projection's activations staged ahead by cp.async); checked bit for bit against the plain read on this card (STRATA_HC_SPLIT=1 or 0 for the earlier ones) strata verify: window up to 6 tokens, 70.1 MiB of device buffers strata mtp: draft head over 106299 tokens (178.4 MiB) strata serve: STRATA_ROUTE_TAIL_SKIP=7 is ON (default): a missed expert that every token of a verify window routes at rank 7 or lower is skipped (+10..20% decode on 12-16 GB cards that miss experts, answers differ slightly from 0.1.41); STRATA_ROUTE_TAIL_SKIP=0 turns it off strata serve: adaptive overlap: off (STRATA_ADAPT_OVERLAP=1 turns it on) strata serve: 1253 MiB of VRAM free with everything loaded ``` state.json ```{ "engine": { "failed": { "0.1.47": { "at": "2026-10-21T14:50:59.760237+00:00", "manifest_sha256": "95eb1eef404859e3afae56811cccb3da27bbab6b589e276fe4e4e701dfbe9427", "reason": "it did not answer a one-token probe (startup_wait_expired) | strata serve: STRATA_ROUTE_TAIL_SKIP=7 is ON (default): a missed expert that every token of a verify window routes at rank 7 or lower is skipped (+10..20% decode on 12-16 GB cards that miss experts, answers differ slightly from 0.1.41); ST" } } }, "feed": { "channel": "stable", "checked_at": "2026-10-21T14:39:45.345211+00:00", "key_id": "5d1bc23abbeffd0d", "sequence": 107, "source": "https://github.com/Niko1221/Strata/releases/latest/download/strata-feed.json" }, "history": [ { "action": "update-engine", "at": "2026-10-21T14:50:59.760237+00:00", "detail": "test start failed: it did not answer a one-token probe (startup_wait_expired) | strata serve: STRATA_ROUTE_TAIL_SKIP=7 is ON (default): a missed expert that every token of a verify window routes at rank 7 or lower is sk", "from": null, "ok": false, "to": "0.1.47" } ], "last_check": { "app": null, "at": "2026-10-21T11:55:02.868460+00:00", "control": null, "engine": "0.1.47", "engine_installed": null }, "schema_version": 1 } ```
Author
Owner

@njcray2 commented on GitHub (Oct 21, 2026):

I have copied the contents of the engine folder from after it was downloaded and before it gets deleted into its old location (Strata/engine) and from there it works fine with an old config to start it up. So the engine itself seems functional but something isn't communicating with it.

<!-- gh-comment-id:6319520322 --> @njcray2 commented on GitHub (Oct 21, 2026): I have copied the contents of the engine folder from after it was downloaded and before it gets deleted into its old location (Strata/engine) and from there it works fine with an old config to start it up. So the engine itself seems functional but something isn't communicating with it.
Author
Owner

@njcray2 commented on GitHub (Oct 21, 2026):

Qwen3.8-Flash Next has found the cause of the problem and fixed it:

What the fault is

*.venv\Scripts\python.exe was not the Python interpreter — it was the venv module's redirector, and that broke an identity check in the managed start.

python -m venv does not copy the interpreter into Scripts. It copies its own little helper (C:\Users\njcr\AppData\Local\Programs\Python\Python312\Lib\venv\scripts\nt\python.exe, 274,424 B — exactly the size that was sitting in M:\Strata.venv\Scripts). Windows has no in-place exec, so that helper starts the real interpreter as a child process and waits for it. Your venv was created that way (pyvenv.cfg says command = ...\Python312\python.exe -m venv M:\Strata.venv), and the process tree during a managed start showed the doubling twice over:

28160  Python312\python.exe      -m strata_control.runtime --host updtest     (the owner host)
 └─20164  .venv\Scripts\python.exe   -m serve.server … --ready-file … --owner-fd 0     ← recorded as "my server"
     └─37996  Python312\python.exe   -m serve.server …                    ← the one that actually binds the port

The host writes the ready file path and the PID of the process it started into its child marker, and runtime.py:901-904 only ever runs the readiness probe when

ready.get("pid") == child.pid

The ready record is published by the grandchild that bound the socket (37996), while the host believes its server is the launcher (20164). They can never agree. So the probe is never attempted, the phase never even becomes verifying_generation, and _status() keeps answering state: "starting" until start() runs out its min(test_timeout, 600) wait and returns startup_wait_expired — which the updater words as "it did not answer a one-token probe" and then acts on by deleting the staged engine.

That is why the engine looked innocent: it never received a request. In all three failed logs the engine loaded completely (session is up (engine 0.1.47), 4,661 cache slots, 1266 MiB of VRAM free with everything loaded) and then nothing, and the strata verify: capturing the 4-token window lines that always accompany a first decode never appear — because nothing was ever asked of it. Its command line was byte-identical to your working 17:02 run; only the supervision differed.

What I changed (and how to undo it)

In M:\Strata.venv\Scripts: python.exe → python.exe.orig, pythonw.exe → pythonw.exe.orig (kept), and a copy of C:\Users\njcr\AppData\Local\Programs\Python\Python312\python.exe / pythonw.exe put in their place. Nothing else was touched — the venv itself, its 28 packages and your running model are untouched. Verified afterwards with your own .venv: it is still a venv (sys.prefix = the venv, jinja2/regex/textual/numpy/PIL all import), no extra process hop, and the managed start reaches launch_attested: true, generation_ready: true.

Worth knowing for the future: START-HERE.bat:11 prefers a bundled python\python.exe (the terminal archive ships one) and only falls back to a venv. A bundled runtime has no redirector, which is why most Windows installs never meet this bug — yours took the venv path.

<!-- gh-comment-id:6322374525 --> @njcray2 commented on GitHub (Oct 21, 2026): Qwen3.8-Flash Next has found the cause of the problem and fixed it: ## What the fault is *.venv\Scripts\python.exe was not the Python interpreter — it was the venv module's redirector, and that broke an identity check in the managed start. python -m venv does not copy the interpreter into Scripts. It copies its own little helper (C:\Users\njcr\AppData\Local\Programs\Python\Python312\Lib\venv\scripts\nt\python.exe, 274,424 B — exactly the size that was sitting in M:\Strata\.venv\Scripts). Windows has no in-place exec, so that helper starts the real interpreter as a child process and waits for it. Your venv was created that way (pyvenv.cfg says command = ...\Python312\python.exe -m venv M:\Strata\.venv), and the process tree during a managed start showed the doubling twice over: ``` 28160 Python312\python.exe -m strata_control.runtime --host updtest (the owner host) └─20164 .venv\Scripts\python.exe -m serve.server … --ready-file … --owner-fd 0 ← recorded as "my server" └─37996 Python312\python.exe -m serve.server … ← the one that actually binds the port ``` The host writes the ready file path and the PID of the process it started into its child marker, and runtime.py:901-904 only ever runs the readiness probe when ``` ready.get("pid") == child.pid ``` The ready record is published by the grandchild that bound the socket (37996), while the host believes its server is the launcher (20164). They can never agree. So the probe is never attempted, the phase never even becomes verifying_generation, and _status() keeps answering state: "starting" until start() runs out its min(test_timeout, 600) wait and returns startup_wait_expired — which the updater words as "it did not answer a one-token probe" and then acts on by deleting the staged engine. That is why the engine looked innocent: it never received a request. In all three failed logs the engine loaded completely (session is up (engine 0.1.47), 4,661 cache slots, 1266 MiB of VRAM free with everything loaded) and then nothing, and the strata verify: capturing the 4-token window lines that always accompany a first decode never appear — because nothing was ever asked of it. Its command line was byte-identical to your working 17:02 run; only the supervision differed. ## What I changed (and how to undo it) In M:\Strata\.venv\Scripts: python.exe → python.exe.orig, pythonw.exe → pythonw.exe.orig (kept), and a copy of C:\Users\njcr\AppData\Local\Programs\Python\Python312\python.exe / pythonw.exe put in their place. Nothing else was touched — the venv itself, its 28 packages and your running model are untouched. Verified afterwards with your own .venv: it is still a venv (sys.prefix = the venv, jinja2/regex/textual/numpy/PIL all import), no extra process hop, and the managed start reaches launch_attested: true, generation_ready: true. Worth knowing for the future: START-HERE.bat:11 prefers a bundled python\python.exe (the terminal archive ships one) and only falls back to a venv. A bundled runtime has no redirector, which is why most Windows installs never meet this bug — yours took the venv path.
Author
Owner

@gylinc commented on GitHub (Oct 21, 2026):

Third data point (Windows 11, RTX 5090, cuda13, git-source install, NVFP4 pack):

  • Feed fetch of 0.1.47 itself worked (sha256 verified). Its test-start got the session fully up — the engine log ends with strata serve: 8161 MiB of VRAM free with everything loaded — yet the one-token probe never answered → startup_wait_expired, ok:false, engine auto-restored to 0.1.45.3. Same shape as the OP: engine starts, but the harness never hears from it.
  • Manual placement of the SAME package (engine down, copy into engine, proxy serve/server.py launched directly): loaded in 25 s, first real completion answered in 24.2 s cold. Engine is fine; the test-start probe is the part that fails to communicate — matches @njcray2's finding above.
  • On my box the probe was NOT racing a slow load (63 GiB read at ~10 GiB/s; the standalone first request takes ~24 s total, far inside the 5-minute window).
  • One knob I did change alongside the manual placement: --vram-reserve-mib 1100 → 2048 (the engine's own #2065 warning suggested >=1344 on a near-full card). With 2048 everything loads, ~1.6 GiB stays free, serving is stable. Greedy expert-cache sizing alone was not the solo test's failure, but flagging it since it's the only config delta I made.

Happy to supply the feed state.json, test-start-0.1.47.log or fresh engine logs if useful.

<!-- gh-comment-id:6322796864 --> @gylinc commented on GitHub (Oct 21, 2026): Third data point (Windows 11, RTX 5090, cuda13, git-source install, NVFP4 pack): - Feed fetch of 0.1.47 itself worked (sha256 verified). Its test-start got the session fully up — the engine log ends with `strata serve: 8161 MiB of VRAM free with everything loaded` — yet the one-token probe never answered → `startup_wait_expired`, `ok:false`, engine auto-restored to 0.1.45.3. Same shape as the OP: engine starts, but the harness never hears from it. - Manual placement of the SAME package (engine down, copy into engine\, proxy serve/server.py launched directly): loaded in 25 s, first real completion answered in 24.2 s cold. Engine is fine; the test-start probe is the part that fails to communicate — matches @njcray2's finding above. - On my box the probe was NOT racing a slow load (63 GiB read at ~10 GiB/s; the standalone first request takes ~24 s total, far inside the 5-minute window). - One knob I did change alongside the manual placement: `--vram-reserve-mib` 1100 → 2048 (the engine's own #2065 warning suggested >=1344 on a near-full card). With 2048 everything loads, ~1.6 GiB stays free, serving is stable. Greedy expert-cache sizing alone was not the solo test's failure, but flagging it since it's the only config delta I made. Happy to supply the feed state.json, test-start-0.1.47.log or fresh engine logs if useful.
Author
Owner

@rkarp commented on GitHub (Oct 26, 2026):

I let DeepSeek-V4.1-Flash-1017 analyze this (after hitting it myself previously), it's already fixed:

Resolved — the Windows venv launcher broke the ready-file check; fixed in v0.2.3 and later

Same failure shape on a source install, matching @njcray2's analysis. With a .venv, Scripts\python.exe is the venv redirector (255,200 B here; the real interpreter is 105,696), so the process that publishes the ready file sits one process below the pid Popen returned. The check ready.get("pid") == child.pid never matched, no probe was ever sent, _status() kept answering starting, the deadline ran out, and the updater deleted the staged engine with startup_wait_expired — although the engine had loaded completely and never received a request.

Fix: 72d0bf66 — "Fix #3683: the test start no longer waits out its 10 minutes when a Windows venv launcher sits above the server" (merged in 0788a91c). It accepts a ready pid within three parents of the host's child, Windows only. First release containing it: v0.2.3.

Evidence from a source checkout at v0.2.6 (RTX 3090, sm_86, driver 610.62):

  • Passed: test_ready_pid_may_be_a_child_of_the_launcher_on_windows_only and test_server_started_through_a_launcher_process_becomes_ready (the second starts the server through a launcher, asserts the ready pid differs from the host's child pid, and still reaches ready + generation_ready).

  • Passed: .\START-HERE.bat --update, engine test-started and switched to 0.1.50. The new test-start-0.1.50.log ends with:

    strata generate: session is up (engine 0.1.50)
    strata verify: capturing the 1-token window (1112 MiB of VRAM free)
    strata serve: prompt 53 tokens = ... ; 1 generated in 30 ms (33.3 tok/s)
    

    The failing test-start-0.1.47.log from 2026-10-21 stops at strata serve: 1144 MiB of VRAM free with everything loaded with no verify window after it — 7 strata verify lines in the new log, 1 in the old.

Not tested: I did not reproduce the original hang on the old code (that checkout is gone), and I did not run the desktop app.

For anyone still hitting this: pull a build from v0.2.3 or later and run UPDATE.bat / .\START-HERE.bat --update. There is nothing to move inside .venv\Scripts — the redirector can stay. If a version is already marked failed in <components>\.updates\state.json, strata update --force re-offers it; a stale partial download never resumes, since the file is named by the new package's SHA-256. Check <components>\.updates\logs\test-start-<version>.log: the tell is a load that reaches "everything loaded" and then no strata verify window. After the fix, the failure's phase field says loading, verifying_generation or ready_file_not_matched — attach the log with it.

<!-- gh-comment-id:6424806313 --> @rkarp commented on GitHub (Oct 26, 2026): I let DeepSeek-V4.1-Flash-1017 analyze this (after hitting it myself previously), it's already fixed: **Resolved — the Windows venv launcher broke the ready-file check; fixed in v0.2.3 and later** Same failure shape on a source install, matching @njcray2's analysis. With a `.venv`, `Scripts\python.exe` is the venv redirector (255,200 B here; the real interpreter is 105,696), so the process that publishes the ready file sits one process below the pid `Popen` returned. The check `ready.get("pid") == child.pid` never matched, no probe was ever sent, `_status()` kept answering `starting`, the deadline ran out, and the updater deleted the staged engine with `startup_wait_expired` — although the engine had loaded completely and never received a request. **Fix:** 72d0bf66 — *"Fix #3683: the test start no longer waits out its 10 minutes when a Windows venv launcher sits above the server"* (merged in 0788a91c). It accepts a ready pid within three parents of the host's child, Windows only. First release containing it: **v0.2.3**. **Evidence from a source checkout at v0.2.6 (RTX 3090, sm_86, driver 610.62):** - Passed: `test_ready_pid_may_be_a_child_of_the_launcher_on_windows_only` and `test_server_started_through_a_launcher_process_becomes_ready` (the second starts the server through a launcher, asserts the ready pid differs from the host's child pid, and still reaches `ready` + `generation_ready`). - Passed: `.\START-HERE.bat --update`, engine test-started and switched to **0.1.50**. The new `test-start-0.1.50.log` ends with: ``` strata generate: session is up (engine 0.1.50) strata verify: capturing the 1-token window (1112 MiB of VRAM free) strata serve: prompt 53 tokens = ... ; 1 generated in 30 ms (33.3 tok/s) ``` The failing `test-start-0.1.47.log` from 2026-10-21 stops at `strata serve: 1144 MiB of VRAM free with everything loaded` with no verify window after it — 7 `strata verify` lines in the new log, 1 in the old. **Not tested:** I did not reproduce the original hang on the old code (that checkout is gone), and I did not run the desktop app. **For anyone still hitting this:** pull a build from v0.2.3 or later and run `UPDATE.bat` / `.\START-HERE.bat --update`. There is nothing to move inside `.venv\Scripts` — the redirector can stay. If a version is already marked failed in `<components>\.updates\state.json`, `strata update --force` re-offers it; a stale partial download never resumes, since the file is named by the new package's SHA-256. Check `<components>\.updates\logs\test-start-<version>.log`: the tell is a load that reaches "everything loaded" and then no `strata verify` window. After the fix, the failure's `phase` field says `loading`, `verifying_generation` or `ready_file_not_matched` — attach the log with it.
Author
Owner

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

Thank you, and thanks to rkarp for the analysis. Fixed in 0.2.3: the test start of a new engine accepts a ready file whose process is up to three parents below the launcher, which is what a Windows .venv launcher creates. Update and run strata launch again.

Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.3

<!-- gh-comment-id:6491937042 --> @Niko1221 commented on GitHub (Oct 29, 2026): Thank you, and thanks to rkarp for the analysis. Fixed in 0.2.3: the test start of a new engine accepts a ready file whose process is up to three parents below the launcher, which is what a Windows `.venv` launcher creates. Update and run `strata launch` again. Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.3
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#1488
No description provided.