[GH-ISSUE #3269] [Other] 0.2.0 Linux control package: tools/iq_pack.py can't find gguf-py; the "run setup.py" hint doesn't fix it in a control-mode install #1326

Closed
opened 2026-11-04 01:50:22 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @talisp on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3269

Area

[Other] (anything else, including setup and installation)

Desktop app, Terminal or source?

Other

The Linux control package (strata-control-0.1.45.3-linux-x86_64.tar.gz), unpacked, with its bundled packer run by hand. No desktop app.

What happened

I ran the bundled packer by hand to make packs for six Unsloth Qwen3.8-Flash-Next GGUFs (UD-Q2_K_XL to Q8_0). It stops after listing the shards with:

llama.cpp's gguf-py was not found: run setup.py (it clones llama.cpp into third_party/), or set STRATA_GGUF_PY

Cause (from reading the code)

  • The package has no third_party/llama.cpp/gguf-py.
  • tools/_paths.py looks only in $STRATA_GGUF_PY, <control>/third_party/llama.cpp/gguf-py and the dev tree's .ref/llama.cpp/gguf-py.
  • In control mode (STRATA_CONTROL_INSTALL=1), setup.py writes third_party/ to home() (STRATA_INSTALL_DIR), not to ROOT. So the hint "run setup.py" doesn't help a tool run by hand: the tool never looks in home()/third_party.
  • setup.py itself is fine: it sets STRATA_GGUF_PY when it calls the tools (e.g. at step 6). Only a tool run directly from the package hits this.

Workaround (works)

Point STRATA_GGUF_PY at any llama.cpp gguf-py (I used the one from a 0.1.45 source install):

STRATA_GGUF_PY=<llama.cpp>/gguf-py python/bin/python3 tools/iq_pack.py --gguf ... --out ... --compat-bf16

With that, the UD-Q2_K_XL pack takes ~25 s. The engine starts in 39 s and serves normally on the 0.2.0 engine: ~125 tok/s decode at 8K and ~110 tok/s at 128K, with MTP on.

Suggestion

Any one of these would fix it:

  • ship gguf-py in the control package;
  • have _paths.py also check $STRATA_INSTALL_DIR/third_party/llama.cpp/gguf-py;
  • change the error message to name STRATA_GGUF_PY as the fix for packages.

Smallest steps or command that reproduce it

  1. Unpack strata-control-0.1.45.3-linux-x86_64.tar.gz (SHA-256 OK against SHA256SUMS.txt).
  2. Run:
cd <control> && python/bin/python3 tools/iq_pack.py --gguf <model>-00001-of-0000N.gguf --out <packs>/<m> --compat-bf16

Reproduction status

Reproduced locally

Strata version

0.2.0-beta (control and engine 0.1.45.3, Linux x86_64, engine package cuda12)

Graphics card, memory and system

NVIDIA L40S-48Q (vGPU, sm_89, 48 GB), driver 550.127.05; 251 GiB RAM; Xeon Platinum 8580 (32 vCPU); Ubuntu 22.04

Model, size and settings

unsloth/Qwen3.8-Flash-Next-GGUF UD-Q2_K_XL (73.5 GiB, revision 766911a), --compat-bf16

Logs

llama.cpp's gguf-py was not found: run setup.py (it clones llama.cpp into third_party/), or set STRATA_GGUF_PY
Originally created by @talisp on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3269 ### Area [Other] (anything else, including setup and installation) ### Desktop app, Terminal or source? Other The Linux control package (`strata-control-0.1.45.3-linux-x86_64.tar.gz`), unpacked, with its bundled packer run by hand. No desktop app. ### What happened I ran the bundled packer by hand to make packs for six Unsloth Qwen3.8-Flash-Next GGUFs (UD-Q2_K_XL to Q8_0). It stops after listing the shards with: ``` llama.cpp's gguf-py was not found: run setup.py (it clones llama.cpp into third_party/), or set STRATA_GGUF_PY ``` **Cause (from reading the code)** - The package has no `third_party/llama.cpp/gguf-py`. - `tools/_paths.py` looks only in `$STRATA_GGUF_PY`, `<control>/third_party/llama.cpp/gguf-py` and the dev tree's `.ref/llama.cpp/gguf-py`. - In control mode (`STRATA_CONTROL_INSTALL=1`), `setup.py` writes `third_party/` to `home()` (`STRATA_INSTALL_DIR`), not to `ROOT`. So the hint "run setup.py" doesn't help a tool run by hand: the tool never looks in `home()/third_party`. - `setup.py` itself is fine: it sets `STRATA_GGUF_PY` when it calls the tools (e.g. at step 6). Only a tool run directly from the package hits this. **Workaround (works)** Point `STRATA_GGUF_PY` at any llama.cpp `gguf-py` (I used the one from a 0.1.45 source install): ``` STRATA_GGUF_PY=<llama.cpp>/gguf-py python/bin/python3 tools/iq_pack.py --gguf ... --out ... --compat-bf16 ``` With that, the UD-Q2_K_XL pack takes ~25 s. The engine starts in 39 s and serves normally on the 0.2.0 engine: ~125 tok/s decode at 8K and ~110 tok/s at 128K, with MTP on. **Suggestion** Any one of these would fix it: - ship `gguf-py` in the control package; - have `_paths.py` also check `$STRATA_INSTALL_DIR/third_party/llama.cpp/gguf-py`; - change the error message to name `STRATA_GGUF_PY` as the fix for packages. ### Smallest steps or command that reproduce it 1. Unpack `strata-control-0.1.45.3-linux-x86_64.tar.gz` (SHA-256 OK against SHA256SUMS.txt). 2. Run: ``` cd <control> && python/bin/python3 tools/iq_pack.py --gguf <model>-00001-of-0000N.gguf --out <packs>/<m> --compat-bf16 ``` ### Reproduction status Reproduced locally ### Strata version 0.2.0-beta (control and engine 0.1.45.3, Linux x86_64, engine package cuda12) ### Graphics card, memory and system NVIDIA L40S-48Q (vGPU, sm_89, 48 GB), driver 550.127.05; 251 GiB RAM; Xeon Platinum 8580 (32 vCPU); Ubuntu 22.04 ### Model, size and settings unsloth/Qwen3.8-Flash-Next-GGUF UD-Q2_K_XL (73.5 GiB, revision 766911a), `--compat-bf16` ### Logs ``` llama.cpp's gguf-py was not found: run setup.py (it clones llama.cpp into third_party/), or set STRATA_GGUF_PY ```
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 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".
  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".
  • Fill in "Reproduction status".
  • Fill in "Strata version".
  • Fill in "Graphics card, memory and system".

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:6277419949 --> @github-actions[bot] commented on GitHub (Oct 19, 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". - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". - [ ] Fill in "Reproduction status". - [ ] Fill in "Strata version". - [ ] Fill in "Graphics card, memory and system". 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

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

Thanks, this follows the format now.

<!-- gh-comment-id:6277467289 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Thanks, this follows the format now.
Author
Owner

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

Found it, thanks for the clear write-up. In the Control package setup.py writes third_party/ into the install folder, while tools/_paths.py only looked next to the tools. In 0.2.1 _paths.py also looks in $STRATA_INSTALL_DIR/third_party/llama.cpp/gguf-py, in the app's install folder and in the Terminal's remembered installs, and the error now names STRATA_GGUF_PY as the way to point it anywhere (your workaround). We did not ship gguf-py in the package: it is the downloaded llama.cpp's, and setup already fetches it.

This is in Strata 0.2.1: https://github.com/Niko1221/Strata/releases/tag/v0.2.1

<!-- gh-comment-id:6286733274 --> @Niko1221 commented on GitHub (Oct 20, 2026): Found it, thanks for the clear write-up. In the Control package setup.py writes third_party/ into the install folder, while tools/_paths.py only looked next to the tools. In 0.2.1 _paths.py also looks in $STRATA_INSTALL_DIR/third_party/llama.cpp/gguf-py, in the app's install folder and in the Terminal's remembered installs, and the error now names STRATA_GGUF_PY as the way to point it anywhere (your workaround). We did not ship gguf-py in the package: it is the downloaded llama.cpp's, and setup already fetches it. This is in Strata 0.2.1: https://github.com/Niko1221/Strata/releases/tag/v0.2.1
Author
Owner

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

This is fixed in Strata 0.2.1. Please update to the latest release (in the Terminal: strata update; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.

<!-- gh-comment-id:6383463244 --> @Niko1221 commented on GitHub (Oct 24, 2026): This is fixed in Strata 0.2.1. Please update to the latest release (in the Terminal: `strata update`; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.
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#1326
No description provided.