mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4891] [Engine] Models with vision show as not installed after the engine update prunes the old engine folder (vision.exe in the run config vs. the doctor check) #2242
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#2242
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 @beastrobin on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4891
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Desktop app (Models page), checked with the
strataCLIWhat happened
After going 0.2.7 → 0.2.8 → 0.2.9 (engine 0.1.52 → 0.1.54 → 0.1.55), the Models page showed every installed model as not installed and offered "Download and prepare 128 GB" again. The model files are fine: all packs are on disk with their shards and
pack/prepared.This is a follow-up to #4658. That report was about the runtime still starting the reader from the old engine folder (fixed in 0.2.9 and closed). This one is the case where the old engine folder has since been pruned, so the stale path stops resolving at all and the model list breaks.
The run configs still name the picture reader and the expert profile as absolute paths into one engine/control folder:
components\enginenow holds only0.1.54-windows-x86_64-cuda-cuda13and0.1.55-windows-x86_64-cuda-cuda13, andcomponents\controlno longer has0.1.53. Sovision.exeand--expert-profilepoint at folders the updater deleted.The chain that turns that into "this model is not installed":
strata_control/doctor.py:210-218addsvision/exe(andvision/mmproj,vision/model) as required components, and_item()(doctor.py:45-54) reportsmissingwhenpath.is_file()is false;strata_control/doctor.py:225-227turns every required missing/invalid component into aCOMPONENT_<STATUS>error, anddoctor.py:238setsreport["ok"] = False;strata_control/models.py:169maps that tocomponent_status: "missing_or_invalid";host/server/native-control.mjs:125setsready: m.component_status === 'present' && ..., so the card falls back to the download offer.The 0.2.9 fix covers the runtime (the reader is started from the engine folder in use), but the config is never rewritten and the doctor check still reads the stale absolute path — so the two now disagree about which file the picture reader is.
strata models list --installedon a copy of the brokenstrata-nvfp4-nvfp4.json(identical to the real one before I edited it):Before the fix, 4 of 6 models were in that state (
iq3_s,nvfp4-nvfp4,unsloth-q8_0,unsloth-ud-iq4_xs);unsloth-ud-iq4_xsadditionally missed--expert-profile. Pointing every stale path at the active 0.1.55 folders made all 6presentagain withmissing: [], without touching a single model file.Expected:
vision.exe,--expert-profileandcwdshould follow the active component the wayexealready does ("exe": "component:strata-engine"). Either the updater rewrites them in run configs that point into the old folders, or they are resolved against the active component at load and in the doctor check, somodels listcannot report a model as missing because the updater moved the engine.Smallest steps or command that reproduce it
vision.exeundercomponents\engine\0.1.52-...(same for--expert-profileundercomponents\control\0.1.53).strata models list --installed --install-dir <app install dir>→component_status: "missing_or_invalid",COMPONENT_MISSING,part: vision/exe.Reproduction status
Reproduced locally
Strata version
0.2.9, Control 0.1.55, engine 0.1.55-windows-x86_64-cuda-cuda13 (updated from 0.2.7 / Control 0.1.53 / engine 0.1.52)
Graphics card, memory and system
RTX PRO 6000 Blackwell Workstation Edition 96 GB (driver 610.74), 256 GB RAM, Windows 11 Pro
Model, size and settings
Qwen3.8-Flash-Next NVFP4 GPTQ (also IQ3_S, Unsloth Q8_0, Unsloth UD-IQ4_XS), vision on,
--max-context 262144,--kv int8,--spec 6,--spec-min-p 0.5, expert cache 24576 slotsLogs
@Amuras-75 commented on GitHub (Nov 1, 2026):
Second face of the same root cause:
strata launchdies before the engine says anything (NotADirectoryError,WinError 267), and the launcher shows the vision reader's CUDA line insteadWindows 11, RTX 5080 (16 GB), driver 615.78.05 (CUDA UMD 13.4). Updated to Control 0.1.55 / engine 0.1.55-windows-x86_64-cuda-cuda13; the run configs were written while Control 0.1.47 / engine 0.1.47 were in use.
Reproduction chain:
install\strata-<model>.json(and the per-launch copies inlaunch\, andinstall\run-<model>.bat) getcwd,--expert-profileandvision.exewritten as absolute paths intocomponents\control\0.1.47/components\engine\0.1.47-....0.1.47is pruned (only the two newest component folders remain:0.1.53,0.1.55).strata launch— the engine exe resolves fine (component:strata-engine), butCreateProcessdies on the config'scwd:The cause line the launcher shows is the vision reader's
ggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detected(the reader is configured for the CPU), so a person with a healthy GPU reads "No CUDA Device found" and goes down the wrong trail.Workaround that works: rebase the
0.1.47paths ininstall\strata-<model>.json,launch\<profile>.jsonandinstall\run-<model>.batto the active component — every control package ships the same data files, so the same path of the control in use stands in. But it breaks again at the next update that prunes the folder the config points into.Fix (patch available): rebase at load time, the way the vision reader already does —
serve/server.py:with_current_control_paths()insidewith_component_engine()— acwdor an engine argument (--expert-profile) that points into a control component folder that is not the one in use is answered by the same path of the control in use, printed like the reader's rebases are;strata_control/doctor.py:_location()answers a component path that is gone with the same file of the control/engine in use, sostrata models listand the Models page keep answering "installed" (the first half of this issue).Tests: new
serve/test_control_paths_follow_control.py(5 tests) andIssue4891StaleComponentPathsintests/terminal/test_issues_022.py(4 tests); the existingserve.test_reader_follows_engine,tests.terminal.test_issues_022,test_component_start,test_profilesandtest_hipblaslt_tuningall pass.Fix for both faces in #4899: https://github.com/Niko1221/Strata/pull/4899