mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3181] [CLOSED] [Other] setup: pass the family's pack args to the low-RAM experts.bin run (Gyro needs --compat-bf16) #4491
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#4491
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/3181
Author: @victoralcazardev
Created: 10/19/2026
Status: ❌ Closed
Base:
main← Head:fix-setup-gyro-lowram-pack-args📝 Commits (1)
897e000setup: pass the family's pack args to the low-RAM experts.bin run (Gyro needs --compat-bf16)📊 Changes
2 files changed (+25 additions, -1 deletions)
View changed files
📝
setup.py(+1 -1)📝
tools/test_setup_gyro.py(+24 -0)📄 Description
Problem and result: on a PC where setup picks the low-RAM mode, a Gyro install (
--family gyro) stops at the second pack run. Setup packs twice: firstiq_pack.py ... --compat-bf16(with the family'spack_args), theniq_pack.py ... --experts-binfor low-RAM mode. The second call does not passpack_args, soiq_pack.pyrejects Gyro's non-BF16 hc tensors and exits 1:The first run has already written
native_experts.txt, so a rerun skips it and fails at the same point every time; the install cannot finish. With this change both runs pass the family'spack_args.Approach: one-line change in
setup.py: the--experts-binrun also gets*fam.get("pack_args", []), like the pack run just above it. Families withoutpack_argsget the same command as before.Validation:
Passed: reproduced on hardware: RX 7900 XTX (gfx1100), Linux, 31 GiB RAM, clone at v0.2.0-beta-4-g4caf857c,
./setup.sh --setup --family gyro --model Gyro-S --backend hip --vision no --yes --no-start --context 262144 --kv int8 --vram-reserve-mib 3072: stopped with the error above. Ran the same command setup uses, with--compat-bf16added (tools/iq_pack.py --gguf <Gyro-S gguf> --out <pack> --experts-bin --compat-bf16): wroteexperts.bin: 48 layers, 24.02 GiB. A rerun of setup then finished ("All set", start script written).Passed:
python -m unittest tools.test_setup_gyro(13 tests OK). The newGyroLowRamPacktest fails on main ('--compat-bf16' not found in [... '--experts-bin']) and passes with this change.Passed:
python -m unittest discover -s tools -p 'test_setup_*.py': 687 tests. The same 50 failures occur on main (3fa1b524) without this change (48 intest_setup_golden, 2 intest_setup_engine_hash); the list of failures is identical with and without it.Not run: setup.py with this patch end to end on hardware (only the patched command, run by hand, as above); Gyro-S inference on gfx1100; no engine or backend code changed, so no GPU builds.
Limits: none known. The Unsloth family also has
pack_args, but it does not reach this branch.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.