mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #974] Missing --kv-resident in generated args when --resident-budget-gib is set (tools/test_setup_unsloth.py) #425
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#425
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 @AmjedMVP on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/974
Summary
On
main(6f32ec0), twotools/test_setup_unsloth.pytests fail: when--resident-budget-gibis set, the generated engine args do not include--kv-resident, although the KV-streaming flag should be kept/implied (per DETAILS.md, KV streaming in WSL-capable setups comes out of the resident budget).Environment
6f32ec0Reproduce
Two failures total; the rest of the suite (37 tests) passes.
Notes
The generated args do include
--kv int8and--resident-budget-gib 40, so only the--kv-residentflag goes missing in this path. Looks like a regression in the budget-flag handling (the flag was likely dropped when the budget override was wired in). Related context: on WSL we observed startup correctly printsWSL: KV streaming off (the driver pins only about 1 GB of RAM)— so the WSL off-path works; this failure is the non-WSL on-path.@talisp commented on GitHub (Oct 5, 2026):
A data point from a real (non-test) run: a 0.1.39 setup on Linux (UD-IQ4_XS, 251 GB RAM, KV streaming on,
--context 262144 --kv int8) wrote both--kv-resident 32768and--resident-budget-gib 55into the generated args. So this may be specific to the test's environment (e.g. how the test decides KV streaming / RAM) rather than the generator itself.@Niko1221 commented on GitHub (Oct 6, 2026):
Fixed in 0.1.40 (test only): inside WSL setup correctly leaves KV streaming off (the driver pins about 1 GB), and the two tests did not mock that. They run as on a normal PC now. Setup's behaviour is unchanged.
@AmjedMVP commented on GitHub (Oct 6, 2026):
Confirmed fixed — reran
tools/test_setup_unsloth.pyon82f46a8(WSL2 Ubuntu 26.04, Python 3.14.4): all 37 tests OK. Matches talisp's data point: the generator was fine, the two tests just weren't mocking the WSL KV-streaming-off detection. Thanks.