[GH-ISSUE #172] RuntimeError: the engine exited before it was ready #89

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

Originally created by @perronemirko on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/172

bash ./setup.sh --family swift --model Q2_0 --context 262144 --vision no --yes --models-dir /home/<MYACCOUNT/llm_models/models --port 4332

=== Step 7: writing the start script ===
[ok] KV streaming on: the context's KV cache lives in RAM (3.6 GB), more experts fit in VRAM
[ok] start script: run-swift-q2_0.sh

All set.
API (OpenAI): http://127.0.0.1:4332/v1 (any API key; model name: anything)
API (Anthropic): http://127.0.0.1:4332/v1/messages
Next time: just run ./setup.sh (or run-swift-q2_0.sh) - it starts right away
[ok] GPU: GPU 0 (NVIDIA GeForce RTX 4090, 24 GB)


Starting swift-1.5-q2_0: it loads about 40 GB into RAM and locks part of it for the GPU.
While it does, YOUR PC CAN BE SLOW OR STOP RESPONDING FOR 1-3 MINUTES (longer the first time after a
restart). That is normal: please wait and don't close this window - the browser opens when it is ready.
Later, closing this window stops the model.

loading the model (the first start takes a minute or two) ...
[strata] starting the engine: reading the model's weights ...
Traceback (most recent call last):
File "/home//workspaces/AI/Strata/serve/server.py", line 1776, in
sys.exit(main())
File "/home//workspaces/AI/Strata/serve/server.py", line 1708, in main
engine = StrataEngine(cfg["exe"], engine_args(cfg), cwd=cfg.get("cwd"), log=cfg.get("log"), env=env)
File "/home//workspaces/AI/Strata/serve/server.py", line 189, in init
raise RuntimeError("the engine exited before it was ready" + (f" (see {log})" if log else ""))
RuntimeError: the engine exited before it was ready (see /home//workspaces/AI/Strata/strata-swift-q2_0.log)

cat /home//workspaces/AI/Strata/strata-swift-q2_0.log
"""
strata generate: native_experts.txt: layer 13 is missing or not contiguous
"""

Originally created by @perronemirko on GitHub (Sep 29, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/172 bash ./setup.sh --family swift --model Q2_0 --context 262144 --vision no --yes --models-dir /home/<MYACCOUNT/llm_models/models --port 4332 === Step 7: writing the start script === [ok] KV streaming on: the context's KV cache lives in RAM (3.6 GB), more experts fit in VRAM [ok] start script: run-swift-q2_0.sh All set. API (OpenAI): http://127.0.0.1:4332/v1 (any API key; model name: anything) API (Anthropic): http://127.0.0.1:4332/v1/messages Next time: just run ./setup.sh (or run-swift-q2_0.sh) - it starts right away [ok] GPU: GPU 0 (NVIDIA GeForce RTX 4090, 24 GB) ---------------------------------------------------------------------------------------------------- Starting swift-1.5-q2_0: it loads about 40 GB into RAM and locks part of it for the GPU. While it does, YOUR PC CAN BE SLOW OR STOP RESPONDING FOR 1-3 MINUTES (longer the first time after a restart). That is normal: please wait and don't close this window - the browser opens when it is ready. Later, closing this window stops the model. ---------------------------------------------------------------------------------------------------- loading the model (the first start takes a minute or two) ... [strata] starting the engine: reading the model's weights ... Traceback (most recent call last): File "/home/<MYACCOUNT>/workspaces/AI/Strata/serve/server.py", line 1776, in <module> sys.exit(main()) File "/home/<MYACCOUNT>/workspaces/AI/Strata/serve/server.py", line 1708, in main engine = StrataEngine(cfg["exe"], engine_args(cfg), cwd=cfg.get("cwd"), log=cfg.get("log"), env=env) File "/home/<MYACCOUNT>/workspaces/AI/Strata/serve/server.py", line 189, in __init__ raise RuntimeError("the engine exited before it was ready" + (f" (see {log})" if log else "")) RuntimeError: the engine exited before it was ready (see /home/<MYACCOUNT>/workspaces/AI/Strata/strata-swift-q2_0.log) cat /home/<MYACCOUNT>/workspaces/AI/Strata/strata-swift-q2_0.log """ strata generate: native_experts.txt: layer 13 is missing or not contiguous """
Author
Owner

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

This is #171: Swift 1.5's Q2_0 files split layer 13's experts across the two shards. The first setup run stopped there but left a partial native_experts.txt, so the next run skipped the pack step and the engine found only layers 0-12. 0.1.28 no longer offers Q2_0 for Swift. Please delete <data>/packs/swift-q2_0 and run-swift-q2_0.sh, then run ./setup.sh --family swift --model IQ2_XS (similar speed). We'll also make the pack tool leave no partial file behind. Closing as a duplicate of #171.

<!-- gh-comment-id:5910281824 --> @Niko1221 commented on GitHub (Sep 30, 2026): This is #171: Swift 1.5's Q2_0 files split layer 13's experts across the two shards. The first setup run stopped there but left a partial `native_experts.txt`, so the next run skipped the pack step and the engine found only layers 0-12. 0.1.28 no longer offers Q2_0 for Swift. Please delete `<data>/packs/swift-q2_0` and `run-swift-q2_0.sh`, then run `./setup.sh --family swift --model IQ2_XS` (similar speed). We'll also make the pack tool leave no partial file behind. Closing as a duplicate of #171.
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#89
No description provided.