[GH-ISSUE #3873] Unofficial helper: build packs and run configs from GGUFs you downloaded yourself #1653

Closed
opened 2026-11-04 01:52:55 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @CipherCloak on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3873

Unofficial helper: build packs and run configs from GGUFs you downloaded yourself

Claude wrote a small script, strata_model_prep.py, for people who download Qwen3.8-Flash-Next GGUFs themselves (fine-tunes, other quants) instead of through ./setup.sh. It is not part of Strata and not affiliated with the project.

It uses Strata's own tools and follows setup.py's rules (steps 6 and 7):

  • checks that every shard is complete (header vs size, as check_shards does) and finds the shard with
    per_layer_token_embd.weight;
  • builds the pack with tools/iq_pack.py (--compat-bf16 only when the file needs it);
  • builds the MTP draft layer with tools/mtp_fetch.py / mtp_pack.py / mtp_rt.py, or copies one that another model
    already has;
  • writes .done marks, the JSON config for serve/server.py and a run-<model>.sh;
  • --verify checks every path and that the engine binary knows every option; --verify-load loads the model.

Each model gets its own folder: artifacts/<model>/packs, artifacts/<model>/mtp/rt.

What I checked, on Linux with an RTX PRO 5000 Laptop (24 GB), Core Ultra 7 265HX and 123 GB of RAM (engine 0.1.45):

  • Swift 1.5 IQ2_XS: the pack is byte-identical to the one ./setup.sh built (dense.bin, index.txt, native_experts.txt,
    conversions.json, tokenizer), and the config is identical to setup's for the same choices.
  • A fine-tune (DavidAU IQ3_S, PLE table in shard 2), mradermacher's IQ3_M (one file, needed --compat-bf16), Unsloth
    UD-Q4_K_XL (4 shards): packed and configured; DavidAU and IQ3_M loaded in the engine.

Not tested: AMD (HIP), Windows, images (my engine is built without them), the NVFP4 ready-made packs.

Repo: https://github.com/CipherCloak/strata-model-prep/
Feedback and reports from other hardware are welcome.

Originally created by @CipherCloak on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3873 **Unofficial helper: build packs and run configs from GGUFs you downloaded yourself** Claude wrote a small script, `strata_model_prep.py`, for people who download Qwen3.8-Flash-Next GGUFs themselves (fine-tunes, other quants) instead of through `./setup.sh`. It is not part of Strata and not affiliated with the project. It uses Strata's own tools and follows `setup.py`'s rules (steps 6 and 7): - checks that every shard is complete (header vs size, as `check_shards` does) and finds the shard with `per_layer_token_embd.weight`; - builds the pack with `tools/iq_pack.py` (`--compat-bf16` only when the file needs it); - builds the MTP draft layer with `tools/mtp_fetch.py` / `mtp_pack.py` / `mtp_rt.py`, or copies one that another model already has; - writes `.done` marks, the JSON config for `serve/server.py` and a `run-<model>.sh`; - `--verify` checks every path and that the engine binary knows every option; `--verify-load` loads the model. Each model gets its own folder: `artifacts/<model>/packs`, `artifacts/<model>/mtp/rt`. What I checked, on Linux with an RTX PRO 5000 Laptop (24 GB), Core Ultra 7 265HX and 123 GB of RAM (engine 0.1.45): - Swift 1.5 IQ2_XS: the pack is byte-identical to the one `./setup.sh` built (dense.bin, index.txt, native_experts.txt, conversions.json, tokenizer), and the config is identical to setup's for the same choices. - A fine-tune (DavidAU IQ3_S, PLE table in shard 2), mradermacher's IQ3_M (one file, needed `--compat-bf16`), Unsloth UD-Q4_K_XL (4 shards): packed and configured; DavidAU and IQ3_M loaded in the engine. Not tested: AMD (HIP), Windows, images (my engine is built without them), the NVFP4 ready-made packs. Repo: https://github.com/CipherCloak/strata-model-prep/ Feedback and reports from other hardware are welcome.
bsakaguchi 2026-11-04 01:52:55 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 23, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6370942326 --> @github-actions[bot] commented on GitHub (Oct 23, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@Niko1221 commented on GitHub (Oct 26, 2026):

Thank you for sharing it. This script is not part of Strata and we have not reviewed it, so we cannot recommend it or link to it. Users who try it do so at their own risk.

<!-- gh-comment-id:6424407857 --> @Niko1221 commented on GitHub (Oct 26, 2026): Thank you for sharing it. This script is not part of Strata and we have not reviewed it, so we cannot recommend it or link to it. Users who try it do so at their own risk.
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#1653
No description provided.