[GH-ISSUE #4463] [Engine] strata update on a source install targets the per-user store by default, and its busy-check misses an app-launched engine - the test start then loads a second copy of the model into a nearly-full machine #1994

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

Originally created by @udqe on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4463

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Source (START-HERE.bat, setup.sh or a build)

What happened

Note

AI-assisted report — model: Qwen3.8-Flash-Next (Unsloth UD-Q4_K_XL) served by this repo's own engine 0.1.52, driven by a DeepSeek-based harness; both behaviors below were reproduced locally by the maintainer today with the exact commands shown; logs sanitized (paths shortened, no credentials).

Environment: Windows 11, source install (checkout with its own engine-feed store used by the app), 2x RTX 4090 24 GiB, 128 GiB RAM, engine 0.1.50 -> 0.1.52, UD-Q4_K_XL (arena ~115 GiB), app serving on port 8080.

Gap 1 — store divergence. update_cmd.run() takes --components-dir or falls back to ec.components_dir() (the per-user folder). The app/Control for this install updates the checkout's engine-feed store; a plain python strata.py update --force in the same checkout silently targeted ~\AppData\Local\Strata\components instead, downloaded ~620 MB, and after the run was interrupted left an orphan .updates\partial\*.part (372 MB, never resumed or GC'd). Re-running with --components-dir <checkout>\engine-feed re-downloaded the whole package because the partial lived in the other store, and the per-user store kept a half-written state.json the app never reads.

$ python strata.py update --force --components-dir "$root\engine-feed" --model-config <the live profile>
  downloading engine 0.1.52: 1%...100%     # again, from zero

Gap 2 — busy-check miss, then a contended test start. updater.serving_now() returned empty while the app-launched engine was serving and holding ~93 GiB, so --wait had nothing to wait for and the update went straight to the engine test start, which loaded a second copy and was refused by the new engine's own memory guard:

memory guard: limit 127.9 GiB, current 93.0 GiB, available 34.9 GiB
expert load was refused: short unbuffered read of layer 15 ... error 1450

The user-facing result was NOT changed: ... did not start correctly on this computer ... Run strata update --force to try again — and the identical retry fails identically for the same reason (the advice blames the package, not the still-running model). After stopping the model for real (verified ~120 GiB free), the same command updated cleanly (tested: started, answered one token, stopped, exit 0).

Related open threads (the "update test start" area, different layers): #4267 proposes skipping DeepSeek profiles when choosing the model to test with; #4440/#4443 show that selection failing concretely (the saved dsv41 config is passed to the general binary - unknown argument: --eos; the reported workaround is passing --model-config with a working general profile); #3842 (test start fails with a device out-of-memory), #3666 (loads fully, never answers) and #3605 (hangs while testing) each show one machine's symptom of Gap 2's contention. None of them mentions serving_now, the busy-check, or Gap 1's store targeting (search: "serving_now" - 0 issues) - this report is the root-cause thread for that family: the check never sees the app-launched engine, so --wait waits for nothing, and the advice tells the user to retry the identical failing command.

Expected: a source install defaults to the checkout's store (or warns when one exists and cleans abandoned .part on store switch); a model-sized RSS already resident is treated as Busy-with-hint ("stop the serving model first", exit 7 with names), not "engine defective".

Smallest steps or command that reproduce it

Gap 1: in a source checkout that has its own engine-feed store (used by the app), run python strata.py update --force WITHOUT --components-dir: the download targets the per-user store (%LocalAppData%\Strata\components), an interrupted run leaves an orphan .updates\partial\*.part (372 MB here, never resumed or cleaned), and re-running with --components-dir <checkout>\engine-feed downloads the whole package again from zero.
Gap 2: with the app's model serving (engine resident ~93 GiB), run strata update --force --wait: serving_now() reports nothing, --wait waits for nothing, and the test start loads a second copy - the new engine's own memory guard refuses it ("limit 127.9 GiB, current 93.0 GiB, available 34.9 GiB ... error 1450"). The advice then tells the user to retry the identical failing command. Control: stop the model (verified ~120 GiB free) and re-run the same command: "tested: started, answered one token, stopped", exit 0.

Reproduction status

reproduced locally (both gaps, same day, commands and logs above; the successful third run is the control). Sibling threads showing parts of Gap 2 from other machines: #3842, #3666, #3605; profile selection around the same test start: #4440/#4443, #4267. None of them mentions the busy-check or the store targeting.

Strata version

Terminal/app and updater from the v0.2.7 source checkout (strata_cli/update_cmd.py), engine update 0.1.50 -> 0.1.52 (windows-x86_64-cuda-cuda13 store build).

Graphics card, memory and system

2x RTX 4090 24 GiB (both PCIe 4.0 x16), Threadripper 3970X, 128 GiB RAM, Windows 11 (WDDM), driver 610.88.

Model, size and settings

Serving profile: Qwen3.8-Flash-Next Unsloth UD-Q4_K_XL, arena ~115 GiB, --max-context 307200 --layer-split auto (K=22), app serving on port 8080. The checkout also holds a second, dsv41 profile (relevant to the profile-selection sibling #4440); the update was run with --model-config naming the serving profile explicitly, so Gap 2 reproduces even when the right profile is chosen.

Originally created by @udqe on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4463 ### Area [Engine] (speed, kernels, models, the server and API) ### Desktop app, Terminal or source? Source (START-HERE.bat, setup.sh or a build) ### What happened > [!NOTE] > AI-assisted report — model: **Qwen3.8-Flash-Next (Unsloth UD-Q4_K_XL)** served by this repo's own engine 0.1.52, driven by a DeepSeek-based harness; both behaviors below were reproduced locally by the maintainer today with the exact commands shown; logs sanitized (paths shortened, no credentials). Environment: Windows 11, source install (checkout with its own `engine-feed` store used by the app), 2x RTX 4090 24 GiB, 128 GiB RAM, engine 0.1.50 -> 0.1.52, UD-Q4_K_XL (arena ~115 GiB), app serving on port 8080. **Gap 1 — store divergence.** `update_cmd.run()` takes `--components-dir` or falls back to `ec.components_dir()` (the per-user folder). The app/Control for this install updates the **checkout's `engine-feed` store**; a plain `python strata.py update --force` in the same checkout silently targeted `~\AppData\Local\Strata\components` instead, downloaded ~620 MB, and after the run was interrupted left an orphan `.updates\partial\*.part` (372 MB, never resumed or GC'd). Re-running with `--components-dir <checkout>\engine-feed` re-downloaded the whole package because the partial lived in the other store, and the per-user store kept a half-written `state.json` the app never reads. ``` $ python strata.py update --force --components-dir "$root\engine-feed" --model-config <the live profile> downloading engine 0.1.52: 1%...100% # again, from zero ``` **Gap 2 — busy-check miss, then a contended test start.** `updater.serving_now()` returned empty while the app-launched engine was serving and holding ~93 GiB, so `--wait` had nothing to wait for and the update went straight to the engine test start, which loaded a second copy and was refused by the new engine's own memory guard: ``` memory guard: limit 127.9 GiB, current 93.0 GiB, available 34.9 GiB expert load was refused: short unbuffered read of layer 15 ... error 1450 ``` The user-facing result was `NOT changed: ... did not start correctly on this computer ... Run strata update --force to try again` — and the identical retry fails identically for the same reason (the advice blames the package, not the still-running model). After stopping the model for real (verified ~120 GiB free), the same command updated cleanly (`tested: started, answered one token, stopped`, exit 0). Related open threads (the "update test start" area, different layers): **#4267** proposes skipping DeepSeek profiles when choosing the model to test with; **#4440/#4443** show that selection failing concretely (the saved dsv41 config is passed to the general binary - `unknown argument: --eos`; the reported workaround is passing `--model-config` with a working general profile); **#3842** (test start fails with a device out-of-memory), **#3666** (loads fully, never answers) and **#3605** (hangs while testing) each show one machine's symptom of Gap 2's contention. None of them mentions `serving_now`, the busy-check, or Gap 1's store targeting (search: "serving_now" - 0 issues) - this report is the root-cause thread for that family: the check never sees the app-launched engine, so `--wait` waits for nothing, and the advice tells the user to retry the identical failing command. Expected: a source install defaults to the checkout's store (or warns when one exists and cleans abandoned `.part` on store switch); a model-sized RSS already resident is treated as Busy-with-hint ("stop the serving model first", exit 7 with names), not "engine defective". ### Smallest steps or command that reproduce it Gap 1: in a source checkout that has its own engine-feed store (used by the app), run `python strata.py update --force` WITHOUT `--components-dir`: the download targets the per-user store (`%LocalAppData%\Strata\components`), an interrupted run leaves an orphan `.updates\partial\*.part` (372 MB here, never resumed or cleaned), and re-running with `--components-dir <checkout>\engine-feed` downloads the whole package again from zero. Gap 2: with the app's model serving (engine resident ~93 GiB), run `strata update --force --wait`: `serving_now()` reports nothing, `--wait` waits for nothing, and the test start loads a second copy - the new engine's own memory guard refuses it ("limit 127.9 GiB, current 93.0 GiB, available 34.9 GiB ... error 1450"). The advice then tells the user to retry the identical failing command. Control: stop the model (verified ~120 GiB free) and re-run the same command: "tested: started, answered one token, stopped", exit 0. ### Reproduction status reproduced locally (both gaps, same day, commands and logs above; the successful third run is the control). Sibling threads showing parts of Gap 2 from other machines: #3842, #3666, #3605; profile selection around the same test start: #4440/#4443, #4267. None of them mentions the busy-check or the store targeting. ### Strata version Terminal/app and updater from the v0.2.7 source checkout (strata_cli/update_cmd.py), engine update 0.1.50 -> 0.1.52 (windows-x86_64-cuda-cuda13 store build). ### Graphics card, memory and system 2x RTX 4090 24 GiB (both PCIe 4.0 x16), Threadripper 3970X, 128 GiB RAM, Windows 11 (WDDM), driver 610.88. ### Model, size and settings Serving profile: Qwen3.8-Flash-Next Unsloth UD-Q4_K_XL, arena ~115 GiB, --max-context 307200 --layer-split auto (K=22), app serving on port 8080. The checkout also holds a second, dsv41 profile (relevant to the profile-selection sibling #4440); the update was run with --model-config naming the serving profile explicitly, so Gap 2 reproduces even when the right profile is chosen.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Hello udqe,

Thank you for the analysis. Both gaps are closed in Strata 0.2.11. A server started by running serve/server.py (the app's source mode) now holds the shared activity lease, so strata update sees it and waits or refuses. With no folder named and no STRATA_COMPONENTS_DIR, a checkout that has an engine-feed with a package uses it when the per-user folder holds no engine. If an update still starts a second copy of the model on 0.2.11, please send the update output.

The Strata project

<!-- gh-comment-id:6658462072 --> @Niko1221 commented on GitHub (Nov 5, 2026): Hello udqe, Thank you for the analysis. Both gaps are closed in Strata 0.2.11. A server started by running `serve/server.py` (the app's source mode) now holds the shared activity lease, so `strata update` sees it and waits or refuses. With no folder named and no `STRATA_COMPONENTS_DIR`, a checkout that has an `engine-feed` with a package uses it when the per-user folder holds no engine. If an update still starts a second copy of the model on 0.2.11, please send the update output. The Strata project
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#1994
No description provided.