[GH-ISSUE #388] Incorrect --max-context flag in configuration #181

Closed
opened 2026-11-04 01:40:43 +07:00 by bsakaguchi · 1 comment
Owner

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 ->

 "--max-context",
  "131072",

This is missleading

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 -> ``` "--max-context", "131072", ``` This is missleading
Author
Owner

@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 --yes both silently wrote --max-context 32768 into strata-iq3_xxs.json (free-RAM auto-sizing), while /health reported max_context: 131072. The config and the health report disagree, and --max-context is 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 131072 back 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 262144 boots but steals ~3 GiB from the expert cache, 2856 -> 924 experts, -29% short-ctx decode).

<!-- gh-comment-id:6117591548 --> @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 --yes` both silently wrote `--max-context 32768` into `strata-iq3_xxs.json` (free-RAM auto-sizing), while `/health` reported `max_context: 131072`. The config and the health report disagree, and `--max-context` is 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 131072` back 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 262144` boots but steals ~3 GiB from the expert cache, 2856 -> 924 experts, -29% short-ctx decode).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#181
No description provided.