mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1994
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Environment: Windows 11, source install (checkout with its own
engine-feedstore 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-diror falls back toec.components_dir()(the per-user folder). The app/Control for this install updates the checkout'sengine-feedstore; a plainpython strata.py update --forcein the same checkout silently targeted~\AppData\Local\Strata\componentsinstead, 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-feedre-downloaded the whole package because the partial lived in the other store, and the per-user store kept a half-writtenstate.jsonthe app never reads.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--waithad 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: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-configwith 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 mentionsserving_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--waitwaits 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
.parton 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 --forceWITHOUT--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-feeddownloads 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,--waitwaits 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.
@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, sostrata updatesees it and waits or refuses. With no folder named and noSTRATA_COMPONENTS_DIR, a checkout that has anengine-feedwith 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