[GH-ISSUE #3683] [Engine] 0.1.47 test-start times out after the model reaches ready on Windows/CUDA #1522

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

Originally created by @YifanShi on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3683

Title: Engine 0.1.47 update test-start times out after the model reaches ready on Windows/CUDA

Summary

The signed-feed updater downloads, unpacks, and verifies engine 0.1.47 successfully. The staged engine loads the model and publishes a ready file with both api_state and model_state set to "ready", but the updater's one-token generation probe does not complete. After exactly 600 seconds the updater reports startup_wait_expired and correctly leaves the current engine unchanged.

This reproduces with both a two-GPU layer split and a minimal single-GPU configuration. The minimal single-GPU run had ample system memory and 1609 MiB of free VRAM after the model was fully loaded.

Environment

  • OS: Windows 11
  • Strata source/control: strata 0.2.2 (build 0.1.47)
  • Currently installed engine: 0.1.45, CUDA 13.0 release build
  • Target engine: 0.1.47 windows-x86_64-cuda-cuda13
  • Update feed sequence: 107
  • CPU: AMD Ryzen 9 9950X, 16 physical cores / 32 logical processors
  • RAM: 64 GB (61.6 GiB reported by the engine)
  • GPU 0: NVIDIA GeForce RTX 5070 Ti 16 GB, compute capability 12.0
  • GPU 1: NVIDIA GeForce RTX 5060 Ti 16 GB, compute capability 12.0
  • Model used for the minimal reproduction: Qwen3.8-Flash-Next IQ3_XXS native pack
  • The test configuration has no API key and binds only to 127.0.0.1.

Reproduction

  1. Close all running Strata model instances.

  2. Use a separate components directory so the currently working engine cannot be changed:

    $env:STRATA_COMPONENTS_DIR = "<STRATA_ROOT>\engine-feed"

  3. Run the updater with a valid minimal IQ3_XXS configuration:

    ..venv\Scripts\python.exe .\strata.py update --no-control --force --model-config "\strata-iq3_xxs-update-test.json"

  4. Relevant model arguments in the minimal configuration:

    --expert-cache auto
    --prefill 4096
    --spec 4
    --mtp
    --max-context 8192
    --kv int8
    --mmap-experts
    --vram-reserve-mib 2000

    Top-level GPU setting: 0
    No layer split, vision, control vector, API key, or remote bind.

Observed result

The updater reports that download, unpacking, and signature/file verification succeeded:

downloading engine 0.1.47 windows-x86_64-cuda-cuda13: 100% (554 of 554 MiB)
Unpacking 0.1.47 windows-x86_64-cuda-cuda13
Checking the package signature and every file
Test-starting engine 0.1.47 windows-x86_64-cuda-cuda13 before switching to it

The staged server then reaches ready normally. Its ready JSON was:

{"api_state":"ready","api_url":"http://127.0.0.1:63699","bound_host":"127.0.0.1","bound_port":63699,"model_id":"qwen3.8-flash-next-iq3_xxs-update-test","model_state":"ready","schema_version":1}

Relevant engine log lines:

strata generate: session is up (engine 0.1.47)
strata serve: Windows commit: 58.3 GiB left of a 91.6 GiB limit (RAM + page file)
strata serve: 1609 MiB of VRAM free with everything loaded

No prompt or generation request appears in the engine log after the session becomes ready. At the 600-second timeout the updater reports:

Engine none NOT changed: The new engine 0.1.47 did not pass its test start
(it did not answer a one-token probe (startup_wait_expired)).
It was not installed; your current engine is unchanged.

The staged process and staging directory are then cleaned up normally.

Additional reproduction

The same timeout occurred in valid two-GPU tests using GPU 0 + GPU 1 with layer_split auto. In one lightweight 32K IQ3_XXS mmap test, engine 0.1.47 reached "session is up" and still had 1114 MiB free on CUDA0 and 1242 MiB free on CUDA1, but the updater again ended with startup_wait_expired.

Expected result

After the staged server reaches ready, the updater should send the one-token generation probe, receive at least one generated token, stop the staged server, and install engine 0.1.47.

Notes

  • The existing 0.1.45 engine continues to start and serve the installed models normally.
  • Repeating the update with more VRAM/RAM headroom, an 8K context, one GPU, mmap experts, and no vision did not change the outcome.
  • This appears to be in the update/runtime readiness path rather than model loading or resource exhaustion, because the staged server is ready in a few seconds and remains alive until the updater's 600-second deadline.
  • Local diagnostic log: <STRATA_ROOT>\engine-feed.updates\logs\test-start-0.1.47.log

github-upload-strata-iq3_xxs-update-test.sanitized.json
github-upload-test-start-0.1.47.sanitized.log

Originally created by @YifanShi on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3683 Title: Engine 0.1.47 update test-start times out after the model reaches ready on Windows/CUDA Summary ======= The signed-feed updater downloads, unpacks, and verifies engine 0.1.47 successfully. The staged engine loads the model and publishes a ready file with both api_state and model_state set to "ready", but the updater's one-token generation probe does not complete. After exactly 600 seconds the updater reports startup_wait_expired and correctly leaves the current engine unchanged. This reproduces with both a two-GPU layer split and a minimal single-GPU configuration. The minimal single-GPU run had ample system memory and 1609 MiB of free VRAM after the model was fully loaded. Environment =========== - OS: Windows 11 - Strata source/control: strata 0.2.2 (build 0.1.47) - Currently installed engine: 0.1.45, CUDA 13.0 release build - Target engine: 0.1.47 windows-x86_64-cuda-cuda13 - Update feed sequence: 107 - CPU: AMD Ryzen 9 9950X, 16 physical cores / 32 logical processors - RAM: 64 GB (61.6 GiB reported by the engine) - GPU 0: NVIDIA GeForce RTX 5070 Ti 16 GB, compute capability 12.0 - GPU 1: NVIDIA GeForce RTX 5060 Ti 16 GB, compute capability 12.0 - Model used for the minimal reproduction: Qwen3.8-Flash-Next IQ3_XXS native pack - The test configuration has no API key and binds only to 127.0.0.1. Reproduction ============ 1. Close all running Strata model instances. 2. Use a separate components directory so the currently working engine cannot be changed: $env:STRATA_COMPONENTS_DIR = "<STRATA_ROOT>\engine-feed" 3. Run the updater with a valid minimal IQ3_XXS configuration: .\.venv\Scripts\python.exe .\strata.py update --no-control --force --model-config "<path>\strata-iq3_xxs-update-test.json" 4. Relevant model arguments in the minimal configuration: --expert-cache auto --prefill 4096 --spec 4 --mtp <existing MTP directory> --max-context 8192 --kv int8 --mmap-experts --vram-reserve-mib 2000 Top-level GPU setting: 0 No layer split, vision, control vector, API key, or remote bind. Observed result =============== The updater reports that download, unpacking, and signature/file verification succeeded: downloading engine 0.1.47 windows-x86_64-cuda-cuda13: 100% (554 of 554 MiB) Unpacking 0.1.47 windows-x86_64-cuda-cuda13 Checking the package signature and every file Test-starting engine 0.1.47 windows-x86_64-cuda-cuda13 before switching to it The staged server then reaches ready normally. Its ready JSON was: {"api_state":"ready","api_url":"http://127.0.0.1:63699","bound_host":"127.0.0.1","bound_port":63699,"model_id":"qwen3.8-flash-next-iq3_xxs-update-test","model_state":"ready","schema_version":1} Relevant engine log lines: strata generate: session is up (engine 0.1.47) strata serve: Windows commit: 58.3 GiB left of a 91.6 GiB limit (RAM + page file) strata serve: 1609 MiB of VRAM free with everything loaded No prompt or generation request appears in the engine log after the session becomes ready. At the 600-second timeout the updater reports: Engine none NOT changed: The new engine 0.1.47 did not pass its test start (it did not answer a one-token probe (startup_wait_expired)). It was not installed; your current engine is unchanged. The staged process and staging directory are then cleaned up normally. Additional reproduction ======================= The same timeout occurred in valid two-GPU tests using GPU 0 + GPU 1 with layer_split auto. In one lightweight 32K IQ3_XXS mmap test, engine 0.1.47 reached "session is up" and still had 1114 MiB free on CUDA0 and 1242 MiB free on CUDA1, but the updater again ended with startup_wait_expired. Expected result =============== After the staged server reaches ready, the updater should send the one-token generation probe, receive at least one generated token, stop the staged server, and install engine 0.1.47. Notes ===== - The existing 0.1.45 engine continues to start and serve the installed models normally. - Repeating the update with more VRAM/RAM headroom, an 8K context, one GPU, mmap experts, and no vision did not change the outcome. - This appears to be in the update/runtime readiness path rather than model loading or resource exhaustion, because the staged server is ready in a few seconds and remains alive until the updater's 600-second deadline. - Local diagnostic log: <STRATA_ROOT>\engine-feed\.updates\logs\test-start-0.1.47.log [github-upload-strata-iq3_xxs-update-test.sanitized.json](https://github.com/user-attachments/files/33799488/github-upload-strata-iq3_xxs-update-test.sanitized.json) [github-upload-test-start-0.1.47.sanitized.log](https://github.com/user-attachments/files/33799487/github-upload-test-start-0.1.47.sanitized.log)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 22, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6332506166 --> @github-actions[bot] commented on GitHub (Oct 22, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@bigolokevin-bit commented on GitHub (Oct 22, 2026):

Confirmed on a different architecture, and via the ordinary update path (not only the isolated --force repro).

Environment

  • OS: Windows 11, driver 610.88
  • GPU: single NVIDIA RTX 4070 12 GB, compute capability 8.9 (Ada) — this report covers sm_120
  • RAM: 64 GB; Strata 0.2.2 source install; installed engine 0.1.45 (CUDA 13)
  • Feed sequence 107, target 0.1.47 windows-x86_64-cuda-cuda13

What I ran

setup.py --yes --update — i.e. exactly what UPDATE.bat runs for a git-clone install. No --force, no separate components dir. This is the path a normal user takes.

Result

Download, unpack and "Checking the package signature and every file" pass. The staged engine loads and reports ready, then the probe never completes:

strata generate: session is up (engine 0.1.47)
strata generate: expert cache 2735 slots, 3.52 GiB of VRAM
strata serve: 581 MiB of VRAM free with everything loaded
... (log ends here; nothing after it)

it did not answer a one-token probe (startup_wait_expired)

test_timeout defaults to 600 s and is clamped to 600, so this is a full 600 s with zero tokens — consistent with your conclusion that this is the readiness path rather than loading or resource exhaustion.

Model arguments (relevant, since they differ from the minimal case):

--max-context 204800 --kv int8 --kv-resident 32768 --vram-reserve-mib 1280
--expert-cache auto --prefill auto --spec 4 --mtp <dir>

plus a configured api_key and trusted_origins. Engine 0.1.45 serves this exact config fine (12/12 greedy checks, tool calls, /health, remote access all OK).

Things I ruled out, to save maintainer time

  • API key: strata_control/readiness.py sends Authorization: Bearer when a key is present, and the sandbox profile has none — not the cause.
  • Local proxy: readiness.py uses http.client.HTTPConnection(host, port), which does not consult HTTP_PROXY; clearing the proxy env vars and re-running produced a byte-identical failure.
  • VRAM headroom: your run had 1609 MiB free and still timed out; mine had 581 MiB. Same outcome, so headroom is not the variable.

Two things that did work as intended, for the record

  • components/.updates/state.json records engine.failed."0.1.47" with the manifest sha256 and the reason, so the 600 s test is not repeated on every run.
  • serve/server.py never invokes the updater, so a start through the server directly does not stall; only START-HERE.bat / UPDATE.bat do the (failing) test start.

Happy to retest a candidate build or capture anything specific — say what to collect.

<!-- gh-comment-id:6337662811 --> @bigolokevin-bit commented on GitHub (Oct 22, 2026): Confirmed on a different architecture, and via the ordinary update path (not only the isolated `--force` repro). **Environment** - OS: Windows 11, driver 610.88 - GPU: single NVIDIA RTX 4070 12 GB, compute capability **8.9 (Ada)** — this report covers sm_120 - RAM: 64 GB; Strata 0.2.2 source install; installed engine 0.1.45 (CUDA 13) - Feed sequence 107, target `0.1.47 windows-x86_64-cuda-cuda13` **What I ran** `setup.py --yes --update` — i.e. exactly what `UPDATE.bat` runs for a git-clone install. No `--force`, no separate components dir. This is the path a normal user takes. **Result** Download, unpack and "Checking the package signature and every file" pass. The staged engine loads and reports ready, then the probe never completes: ``` strata generate: session is up (engine 0.1.47) strata generate: expert cache 2735 slots, 3.52 GiB of VRAM strata serve: 581 MiB of VRAM free with everything loaded ... (log ends here; nothing after it) it did not answer a one-token probe (startup_wait_expired) ``` `test_timeout` defaults to 600 s and is clamped to 600, so this is a full 600 s with zero tokens — consistent with your conclusion that this is the readiness path rather than loading or resource exhaustion. **Model arguments** (relevant, since they differ from the minimal case): ``` --max-context 204800 --kv int8 --kv-resident 32768 --vram-reserve-mib 1280 --expert-cache auto --prefill auto --spec 4 --mtp <dir> ``` plus a configured `api_key` and `trusted_origins`. Engine 0.1.45 serves this exact config fine (12/12 greedy checks, tool calls, `/health`, remote access all OK). **Things I ruled out, to save maintainer time** - **API key**: `strata_control/readiness.py` sends `Authorization: Bearer` when a key is present, and the sandbox profile has none — not the cause. - **Local proxy**: `readiness.py` uses `http.client.HTTPConnection(host, port)`, which does not consult `HTTP_PROXY`; clearing the proxy env vars and re-running produced a byte-identical failure. - **VRAM headroom**: your run had 1609 MiB free and still timed out; mine had 581 MiB. Same outcome, so headroom is not the variable. **Two things that did work as intended, for the record** - `components/.updates/state.json` records `engine.failed."0.1.47"` with the manifest sha256 and the reason, so the 600 s test is not repeated on every run. - `serve/server.py` never invokes the updater, so a start through the server directly does not stall; only `START-HERE.bat` / `UPDATE.bat` do the (failing) test start. Happy to retest a candidate build or capture anything specific — say what to collect.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 22, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6341973915 --> @github-actions[bot] commented on GitHub (Oct 22, 2026): Thanks, this follows the format now.
Author
Owner

@YifanShi commented on GitHub (Oct 22, 2026):

@bigolokevin-bit Thank you for independently reproducing this through the normal UPDATE.bat path on a different GPU setup. Your results help rule out my dual-GPU configuration, API key, proxy settings, and VRAM headroom as the cause.

I’m happy to test a candidate build or collect any additional logs the maintainers may need.

<!-- gh-comment-id:6342038336 --> @YifanShi commented on GitHub (Oct 22, 2026): @bigolokevin-bit Thank you for independently reproducing this through the normal UPDATE.bat path on a different GPU setup. Your results help rule out my dual-GPU configuration, API key, proxy settings, and VRAM headroom as the cause. I’m happy to test a candidate build or collect any additional logs the maintainers may need.
Author
Owner

@ergotone commented on GitHub (Oct 22, 2026):

test-start-0.1.47.log

Same here, adding a third architecture: single NVIDIA RTX A3000 12GB Laptop GPU
(sm_86, Ampere), Windows 11, driver 597.16, i7-12700, 64 GB RAM. Zip install of
0.2.2, installed engine 0.1.43, target 0.1.47 cuda13, feed sequence 107.
Model IQ3_XXS: --max-context 32768 --kv int8 --spec 4 --mtp, vision on (CPU encoder).

Ran strata.py update --no-control --force three times. After raising the page file
(commit-limit warning) and --vram-reserve-mib 700 -> 1536, the staged engine loads
fully (session is up (engine 0.1.47), 1302 MiB VRAM free) and the log stops there;
startup_wait_expired after 600 s. Engine 0.1.43 serves the same config normally
through serve/server.py. Test-start log attached.

PS: the same 0.1.47 package runs fine when started directly through server.py

<!-- gh-comment-id:6348109367 --> @ergotone commented on GitHub (Oct 22, 2026): [test-start-0.1.47.log](https://github.com/user-attachments/files/33835570/test-start-0.1.47.log) Same here, adding a third architecture: single NVIDIA RTX A3000 12GB Laptop GPU (sm_86, Ampere), Windows 11, driver 597.16, i7-12700, 64 GB RAM. Zip install of 0.2.2, installed engine 0.1.43, target 0.1.47 cuda13, feed sequence 107. Model IQ3_XXS: --max-context 32768 --kv int8 --spec 4 --mtp, vision on (CPU encoder). Ran `strata.py update --no-control --force` three times. After raising the page file (commit-limit warning) and --vram-reserve-mib 700 -> 1536, the staged engine loads fully (`session is up (engine 0.1.47)`, 1302 MiB VRAM free) and the log stops there; startup_wait_expired after 600 s. Engine 0.1.43 serves the same config normally through serve/server.py. Test-start log attached. PS: the same 0.1.47 package runs fine when started directly through server.py
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#1522
No description provided.