mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#2719
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/608
Author: @MingShi350
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:200k-context📝 Commits (1)
601df08setup: a 200K context choice between the 128K rule and 256K (#406)📊 Changes
3 files changed (+17 additions, -3 deletions)
View changed files
📝
setup.py(+3 -1)📝
tools/strata_mcp.py(+1 -1)📝
tools/test_setup_risk.py(+13 -1)📄 Description
What
CONTEXTSjumps 131072 → 262144. #406 lets a PC below setup's 256K estimate keep 256K with a note, but there was nothing between the 128K recommendation and a size that PC may not hold — the only way to find out was to try 256K and watch the RAM.204800 (200K) is inside the trained 262144, so it needs no rope scaling, and with IQ3_S it costs ~2.8 GB of 8-bit KV against ~3.6 GB at 256K (13.7 KB per context token).
Measured
RTX 4080 16 GB, Ryzen 9 9950X3D, 62 GB usable, IQ3_XXS, engine 0.1.37, 8-bit KV. At this size setup turns KV streaming off (the experts need 47 GB), so the KV sits in VRAM and a longer context costs the expert cache:
So 200K keeps prefill and shallow decode within 10%, and reaches a depth (124K–203K) that 128K does not — at 203K tokens the model still answers at 68.6 t/s.
Files
setup.py—CONTEXTSgains 204800, with these numbers in the comment.tools/strata_mcp.py—FALLBACK_CONTEXTSmirrorsCONTEXTS, so a PC that cannot import setup sees the same menu.tools/test_setup_risk.py— the 256K menu pick is"6"now; a new test covers a 200K pick (kept, no rope scaling, the RAM note at 64 GB).python -m unittest tools.test_setup_risk→ 35 tests, OK.Notes
ram_ctx()(setup.py:2197) now recommends 200K on a PC where the 200K estimate fits and the 256K one does not — the intended middle step. On a 64 GB PC nothing changes:ctx_ram_need("IQ3_S", 204800)is 77.1 GB, so the rule still recommends 128K.tools/test_setup_*suite passes on this branch.tools/test_setup_golden.pyfails 46 times on this checkout before and after the change (identical failure list — an environment thing here), so this PR does not affect it.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.