mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #388] Incorrect --max-context flag in configuration #181
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#181
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 @robinat13 on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/388
During intial setup I have selected 256k as context length. Once the Startup script finished setting up the system, in the configuration file "strata-iq3_xxs.json" I can see the following as max context ->
This is missleading
@satwareAG-ironMike commented on GitHub (Oct 12, 2026):
Same symptom on Linux/CUDA (RTX 3060 12G, Strata build
7695859), observed 2026-10-11:./setup.sh --context 131072 ...and a later./setup.sh --calibrate --yesboth silently wrote--max-context 32768intostrata-iq3_xxs.json(free-RAM auto-sizing), while/healthreportedmax_context: 131072. The config and the health report disagree, and--max-contextis a hard request cap (HTTP 400 above it), so the silent downgrade silently caps live traffic - a harness sending 100K-token prompts starts getting 400s with no log line explaining why.Workaround in use: force
--max-context 131072back into the config after every setup/calibration run and verify via/health. RAM cost of 131072 vs 32768 was zero on this box (48 GiB resident either way - int8 KV on the hybrid model is cheap), so the auto-sizing heuristic mispredicted the constraint here.Suggestion: print the chosen value and the sizing rationale at the end of setup/calibration, or gate the downgrade behind an explicit flag. Cross-ref: the 256K preallocation tax is measurable too (
--max-context 262144boots but steals ~3 GiB from the expert cache, 2856 -> 924 experts, -29% short-ctx decode).