mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4726] [GUI] A model loaded from existing files ("use files I have") is never registered — no autostart, local importer refuses qwen4exp, native load says "not installed" #2164
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#2164
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 @lucapug on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4726
Area
[GUI] (the desktop app)
Desktop app, Terminal or source?
Desktop app (Windows, Linux or Mac)
What happened
Model files (shards +
.donemarkers), prepared pack, MTP draft layer and mmproj all live in the data folder (C:\Strata-data), downloaded by the source-install setup before installing the desktop app. The wizard's "use files I have" loads and serves the model perfectly (262144 context, vision, ~90 tok/s) — but nothing is persisted, so the model never comes back and cannot be loaded programmatically. Four findings:No persistence. After a successful load, the host store has
loaded: null,current: null,installed: {}; nolocal-models.jsonis created. The server's autostart (STRATA_REAL_ENGINE+store.get().loaded ?? store.get().current, plus theisOnDiskguard) therefore has nothing to load: after every restart/v1/modelsis empty, with no error and no log line (the autostart guard exits silently).The local-model importer refuses the architecture.
POST /api/local-models/inspecton the shard returns: "The declared architecture qwen4exp is not supported by this importer. This model type isn't supported by the Strata engine; add it as a Custom model API (llama-server) instead." — but the Strata engine runs this architecture fine (it's the app's own flagship family). The importer's architecture set (qwen2…qwen35moe, llama, gemma*, phi3) predatesqwen4exp, so file-based Qwen3.8 can never be registered as a local model.The native load refuses it too.
POST /api/native/operations {"kind":"load","args":{"model":"qwen3.8-flash-next-iq2_xs"}}fails with "This model is not installed. Download and prepare it first." — even though shards,.donemarkers, prepared pack, draft layer and mmproj are all present. (Clicking Load in the app works, so the model loads — it just cannot be reached programmatically or persisted.)Changing the Models Directory wipes the registration.
setModelsDirresetsinstalled/current/loadedwhen the folder changes, so moving a data folder erases whatever was registered under the old path.Net effect: for models whose weights were downloaded outside the app, the desktop app cannot autostart them — one manual load after every boot.
Smallest steps or command that reproduce it
<data>\models\<quant>(as the source setup lays them out)<data>/v1/modelsis empty, with no error and no log linestate.jsonshowsloaded: null,current: null,installed: {};local-models.jsonabsentPOST /api/local-models/inspect→ qwen4exp refusal;POST /api/native/operations kind:load→ "not installed" refusalReproduction status
Reproduced locally
Strata version
Strata 0.2.7 · Terminal 0.1.54 · Control 0.1.54 · engine 0.1.52 → 0.1.54
Graphics card, memory and system
RTX 3090 24 GB (Thunderbolt eGPU) · 64 GB RAM · Windows 11 Pro 26H2
Model, size and settings
Qwen3.8-Flash-Next IQ2_XS · 262144 context · pictures on
Logs
After a fresh start, the app log contains only:
(no autostart attempt is logged — the guard exits before logging). The two API refusals:
Details and workaround
qwen4exp).strata launch --model-path … --no-tui(or a saved preset) serves the same files headlessly and persists the preset; otherwise one manual load per boot.@github-actions[bot] commented on GitHub (Oct 30, 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:
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
@github-actions[bot] commented on GitHub (Oct 31, 2026):
Thanks, this follows the format now.
@Niko1221 commented on GitHub (Oct 31, 2026):
Thanks for the detailed write-up. Where we are, part by part:
setModelsDir; the folder change isPOST /api/storage/models-directory. If you saw something else, tell us where.strata-<model>.jsonrun config exists in the installation folder. To find where it goes wrong, we need:strata-<model>.jsonexist in the folder the app uses, after the model has loaded once?state.jsonbefore and after pressing Prepare and load (remove anything private).@tangd commented on GitHub (Nov 1, 2026):
Reproducing part 3 ('native load says not installed') on 0.2.9, with the mechanism.
Setup. Windows 11 (10.0.26300), RTX 5090 D 32 GB, 254 GB RAM. App 0.2.9, control 0.1.55, engine 0.1.55
(build 99866a47a2b8+cuda13.0). Model: Unsloth DeepSeek-V4.1-Flash UD-IQ1_M (5 shards + Engram + dSpark + mmproj),
downloaded with modelscope into
C:\Users\<me>\.cache\modelscope\models\unsloth--DeepSeek-V4.1-Flash-1017-GGUF\snapshots\master\(the set in a
UD-IQ1_M/subfolder, dspark and mmproj beside it), context 128K.What I did. Models -> 'Use local GGUF' -> picked
...\snapshots\master(the folder above the set's own folder).The app identified it correctly: 'DeepSeek-V4.1-Flash - UD-IQ1_M - 5 files - 233 GiB', 'all 4 model files are here,
and the n-gram table'. Then 'Prepare and load'.
Result. The prepare succeeds, then the job fails with the 'not installed' message:
At that moment the model IS installed, so the message is false (same as #4511 part 2):
Where it goes wrong. After the install job,
loadEngine(job, args)inhost/server/native-control.mjscalls
recordFile(args.model). For a model prepared from local files,args.modelis the catalog/setup key(
"UD-IQ1_M"), whilesnapshot.installed.models[].modelis the run-config id derived from the config file name(
deepseek-v4.1-flash-ud-iq1_m= family tagdeepseek-v4.1-flash-+ud-iq1_m).recordFileonly does an exactcomparison:
So the lookup misses and the app reports the model as not installed, right after it wrote and verified it.
Loading the same model from the Models list works (that path passes the config id), which matches #4726.
Fix (either):
knows the model it installed) and pass that to
loadEngine, instead of the raw catalog key; orrecordFilea fallback that matchesi.model.toLowerCase().endsWith('-' + model.toLowerCase())(
UD-IQ1_M->deepseek-v4.1-flash-ud-iq1_m).I applied (2) locally as a workaround and 'Prepare and load' then starts the model. Worth also saying 'the fresh config
was not found' instead of 'not installed': the current text sends people to re-download 233 GB.