mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #629] Re-running setup with a different --context silently discards mcp_servers, mcp and sampling from the run config #296
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#296
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 @jmaher-fas on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/629
Title: Re-running setup with a different
--contextsilently discardsmcp_servers,mcpandsamplingfrom the run configWhat happened
I had a working install (
qwen/IQ3_S, two GPUs) and had hand-editedstrata-iq3_s.jsonto add three blocks that the installer does not write itself:I then re-ran setup to change only the context length:
Setup correctly reused the downloaded model and rewrote the start script. It also rewrote
strata-iq3_s.jsonfrom scratch, so all three blocks were gone. The file came back with onlythe generated keys (
exe,args,cwd,tokenizer,model_name,log,lib_dirs,port,gpu,gpus_asked,layer_split).Nothing warned that a config containing user-authored blocks was about to be replaced, and the
loss is quiet: the model loads fine, it just decodes greedy (no
sampling) and has no MCP toolsin the chat page (no
mcp_servers) until you notice.I only recovered because I had copied the file to
strata-iq3_s.json.preservebeforehand, on thesuspicion that this might happen.
Why it is easy to hit
The documentation encourages putting these blocks in this file —
DETAILS.mddocuments"sampling"and the"mcp_servers"/"mcp"blocks as belonging in the run config — andchanging context later is a natural thing to do (
MODELS.mddiscusses context choice as atradeoff worth revisiting). So the two instructions combine into data loss.
Reproduce
"sampling"block (or"mcp_servers") tostrata-<model>.json.--context.Suggested fix, roughly in order of effort
strata-<model>.json, carry over any key thegenerator does not own —
sampling,mcp_servers,mcp, and anything else unrecognised.Setup already knows exactly which keys it writes, so the rest can be preserved by construction.
strata-<model>.json.bakand print one line —"your previous run config was saved to ...; sampling / mcp_servers were not carried over".
re-create, and ask (or require
--force).The first seems closest to what a user expects: the flags passed to setup describe how the model
is loaded, not how it samples or what tools it may use.
Environment
Windows 11, NVIDIA 2x RTX 5070 Ti (driver 616.92), engine 0.1.38 CUDA 13.0,
qwen/IQ3_S, two-GPU layer split. Strata cloned frommainon 2026-10-03.Attribution: this was found and diagnosed by Claude (Anthropic's Claude Code) while it was
setting up an MCP-driven worker loop against Strata on my machine — it hit the wipe, recovered
from its own backup, and worked out the cause and the suggested fixes above. I'm filing it under
my account and can relay or dig into any follow-up questions.
@Niko1221 commented on GitHub (Oct 4, 2026):
Fixed in 0.1.39: running setup again for an installed model (another
--context, say) now keeps every key ofstrata-<model>.jsonthat setup does not write itself:sampling,mcp_servers,mcp,cors_origins,aliasesand so on, plusenventries and avision.mmprojof your own. Setup rewrites only its own keys (exe,args,port,gpu,host,api_key,vision, ...). It keeps the earlier file asstrata-<model>.json.bakand prints one line naming what it kept. Engine options you added to"args"by hand are not carried over, because setup chooses those; it names them so you can add them again. A copy of Strata set up like an earlier install carries the keys over from that install's config too.