[GH-ISSUE #3640] [Engine] Gyro-Coder (agentionai): catalog support request — TQ2_T experts + 256-expert qwen4exp, both already supported #1502

Closed
opened 2026-11-04 01:51:46 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @pjgmobile on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3640

Filed on behalf of a user by their AI coding agent (disclosed per repo norms; no personal details).

Request: add setup-catalog support for agentionai's new coding Gyro variant: https://huggingface.co/agentionai/Qwen3.8-Flash-Next-Gyro-Coder-GGUF

What it is (from the card + a header parse of the GGUF):

  • Qwen3.8-Flash-Next pruned for code by agentionai (their own derivative, encoder string source pruned-q8-run10.gguf): 256 of each layer's 512 experts kept (evolutionary search), 65B params, 2.125 bpw, 262k context.
  • One 70.59 GiB GGUF; the n-gram/PLE table (~50.7 GiB) stays on disk, same read pattern as Gyro-S/M.
  • Card: "Strata: support is coming. Strata 0.2.2 does not know this file yet (Gyro-S and Gyro-M already run there); we will update this card when it does."

Why this looks like catalog plumbing, not kernel work:

  • Expert tensors are 144x TQ2_T (GGUF type 144) — the type Gyro-S/M already use, covered by the Gyro kernels on CUDA, HIP, SYCL, Metal and CPU per docs/GYRO.md.
  • The file is 256-expert qwen4exp, a shape the engine already handles as a first-class configuration: the GSQ-RCO Coder family ships the same 256-of-512 layout, and src/prefill/kernels.cu branches explicitly on n_expert == 256.
  • The only soft spot spotted: the fast router paths key on (512,10)/(256,8), so (256,10) takes the generic router — a perf note, not a blocker.

What appears missing: GYRO_FILES/MODELS catalog entries + revision pin, an expert profile, and a validation pass.

Vendor-measured quality (self-reported, method disclosed): Python KL 0.165 / 93.1% top-1 vs the full model; 13/16 in-house coding tasks (15/16 with the same experts at 8 bits); general/knowledge degradation is larger (held-out KL 0.579). ⚠ The card labels the file a PoC and warns files will be re-published if format/kernels change — worth pinning the revision accordingly.

Questions:

  1. Does the current engine (0.1.47) already decode this file as-is via the manual path (GYRO.md: tools/iq_pack.py --compat-bf16 + --native + MTP draft), or is anything engine-side actually missing for (256,10) TQ2_T?
  2. If it's catalog-only: any appetite to add it, and should the pin track the PoC re-publish risk?

Happy to report back test results on a single-3090 rig once a supported path exists.

Originally created by @pjgmobile on GitHub (Oct 21, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3640 Filed on behalf of a user by their AI coding agent (disclosed per repo norms; no personal details). **Request:** add setup-catalog support for agentionai's new coding Gyro variant: https://huggingface.co/agentionai/Qwen3.8-Flash-Next-Gyro-Coder-GGUF **What it is** (from the card + a header parse of the GGUF): - Qwen3.8-Flash-Next pruned for code by agentionai (their own derivative, encoder string `source pruned-q8-run10.gguf`): **256 of each layer's 512 experts kept** (evolutionary search), 65B params, 2.125 bpw, 262k context. - One 70.59 GiB GGUF; the n-gram/PLE table (~50.7 GiB) stays on disk, same read pattern as Gyro-S/M. - Card: *"Strata: support is coming. Strata 0.2.2 does not know this file yet (Gyro-S and Gyro-M already run there); we will update this card when it does."* **Why this looks like catalog plumbing, not kernel work:** - Expert tensors are **144x TQ2_T** (GGUF type 144) — the type Gyro-S/M already use, covered by the Gyro kernels on CUDA, HIP, SYCL, Metal and CPU per docs/GYRO.md. - The file is **256-expert `qwen4exp`**, a shape the engine already handles as a first-class configuration: the GSQ-RCO Coder family ships the same 256-of-512 layout, and `src/prefill/kernels.cu` branches explicitly on `n_expert == 256`. - The only soft spot spotted: the fast router paths key on `(512,10)`/`(256,8)`, so `(256,10)` takes the generic router — a perf note, not a blocker. **What appears missing:** `GYRO_FILES`/`MODELS` catalog entries + revision pin, an expert profile, and a validation pass. **Vendor-measured quality (self-reported, method disclosed):** Python KL 0.165 / 93.1% top-1 vs the full model; 13/16 in-house coding tasks (15/16 with the same experts at 8 bits); general/knowledge degradation is larger (held-out KL 0.579). ⚠ The card labels the file a **PoC** and warns files will be re-published if format/kernels change — worth pinning the revision accordingly. **Questions:** 1. Does the current engine (0.1.47) already decode this file as-is via the manual path (GYRO.md: `tools/iq_pack.py --compat-bf16` + `--native` + MTP draft), or is anything engine-side actually missing for `(256,10)` TQ2_T? 2. If it's catalog-only: any appetite to add it, and should the pin track the PoC re-publish risk? Happy to report back test results on a single-3090 rig once a supported path exists.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 21, 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:6324918147 --> @github-actions[bot] commented on GitHub (Oct 21, 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

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

Thanks, this follows the format now.

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

@pjgmobile commented on GitHub (Oct 21, 2026):

Update: the manual path already works on engine 0.1.47 (Strata 0.2.2 from source) — no engine-side changes needed, which confirms the issue body's read that this is catalog plumbing only. (Still via an AI agent on the user's behalf.)

Recipe that worked (single RTX 3090 24 GB, 64 GB host RAM, stock source build):

  1. hf download agentionai/Qwen3.8-Flash-Next-Gyro-Coder-GGUF — one 70.59 GiB GGUF.
  2. tools/iq_pack.py --gguf models/gyro-coder/Qwen3.8-Flash-Next-Gyro-Coder-TQ2_0.gguf --out packs/gyro-coder --compat-bf16 — clean run: 48 layers Hadamard-folded, native_experts.txt v5, 1.32 GiB arena, tokenizer built, 363 tensors compat-bf16 (max |err| 0.0144).
  3. Lane config (paths relative to the repo root):
{
  "args": [
    "--pack", "packs/gyro-coder",
    "--native", "models/gyro-coder/Qwen3.8-Flash-Next-Gyro-Coder-TQ2_0.gguf",
    "--expert-profile", "data/expert-profile-coder.bin",
    "--expert-cache", "auto",
    "--prefill", "auto",
    "--spec", "4", "--spec-min-p", "0.5",
    "--mtp", "mtp/rt",
    "--max-context", "65536",
    "--kv", "int8"
  ]
}

Two things the docs didn't cover:

  • --max-context 65536, not 131072: at 131k the verify tier found no VRAM left for the expert cache ("no VRAM was left for the expert cache" at load). Matches the card's own 24 GB target: "21.1 GiB with 64k context, q8_0 KV".
  • An --expert-profile is required for the MTP verify tier — with --expert-cache auto and no profile, serve refuses: "verify: needs the profile-filled VRAM expert tier". I used the GSQ-RCO Coder profile: structurally valid (same 256-expert shape) but its ordering predates the current index (#3448), so a proper Gyro-Coder expert profile should ship with catalog support.

Results (smoke-level, not a benchmark):

  • Boots and serves; expert tier 99.1% VRAM-resident (the 256-expert prune doing its job); ~470 MiB VRAM free with everything loaded — the usual #2065 warning class on a 24 GB card.
  • Decode 119 tok/s with the MTP draft at 90.5% acceptance (122/135) on a short prompt; prompt prefix cache reuse works.
  • Output check: a small O(n)/O(1) "second largest distinct value" task came back correct on all edge cases (duplicates of the max, single element, all-equal → None), clean stop, no repetition. Small token budgets go to thinking first (as with the other Qwen3.8-Flash-Next lanes) — 1500 max_tokens was plenty.

One doc note: the native_expert_parity --load-check PACK GGUF syntax in the manual-install section is the Gyro authors' fork's CLI (Strata rc2); upstream 0.1.47's native_expert_parity doesn't accept --load-check (it parses the flag as a file path and core-dumps on mmap). Might be worth syncing the doc or the tool.

Nothing engine-side blocked the (256,10) TQ2_T file — so the remaining task looks like exactly what the issue suspected: GYRO_FILES/MODELS catalog entries, a Gyro-Coder expert profile, and a validation pass.

<!-- gh-comment-id:6325900292 --> @pjgmobile commented on GitHub (Oct 21, 2026): Update: **the manual path already works on engine 0.1.47 (Strata 0.2.2 from source)** — no engine-side changes needed, which confirms the issue body's read that this is catalog plumbing only. (Still via an AI agent on the user's behalf.) **Recipe that worked (single RTX 3090 24 GB, 64 GB host RAM, stock source build):** 1. `hf download agentionai/Qwen3.8-Flash-Next-Gyro-Coder-GGUF` — one 70.59 GiB GGUF. 2. `tools/iq_pack.py --gguf models/gyro-coder/Qwen3.8-Flash-Next-Gyro-Coder-TQ2_0.gguf --out packs/gyro-coder --compat-bf16` — clean run: 48 layers Hadamard-folded, `native_experts.txt` v5, 1.32 GiB arena, tokenizer built, 363 tensors compat-bf16 (max |err| 0.0144). 3. Lane config (paths relative to the repo root): ```json { "args": [ "--pack", "packs/gyro-coder", "--native", "models/gyro-coder/Qwen3.8-Flash-Next-Gyro-Coder-TQ2_0.gguf", "--expert-profile", "data/expert-profile-coder.bin", "--expert-cache", "auto", "--prefill", "auto", "--spec", "4", "--spec-min-p", "0.5", "--mtp", "mtp/rt", "--max-context", "65536", "--kv", "int8" ] } ``` **Two things the docs didn't cover:** - `--max-context 65536`, not 131072: at 131k the verify tier found no VRAM left for the expert cache ("no VRAM was left for the expert cache" at load). Matches the card's own 24 GB target: "21.1 GiB with 64k context, q8_0 KV". - **An `--expert-profile` is required for the MTP verify tier** — with `--expert-cache auto` and no profile, serve refuses: "verify: needs the profile-filled VRAM expert tier". I used the GSQ-RCO Coder profile: structurally valid (same 256-expert shape) but its ordering predates the current index (#3448), so a proper Gyro-Coder expert profile should ship with catalog support. **Results (smoke-level, not a benchmark):** - Boots and serves; expert tier **99.1% VRAM-resident** (the 256-expert prune doing its job); ~470 MiB VRAM free with everything loaded — the usual #2065 warning class on a 24 GB card. - Decode **119 tok/s with the MTP draft at 90.5% acceptance (122/135)** on a short prompt; prompt prefix cache reuse works. - Output check: a small O(n)/O(1) "second largest distinct value" task came back **correct on all edge cases** (duplicates of the max, single element, all-equal → None), clean stop, no repetition. Small token budgets go to thinking first (as with the other Qwen3.8-Flash-Next lanes) — 1500 `max_tokens` was plenty. **One doc note:** the `native_expert_parity --load-check PACK GGUF` syntax in the manual-install section is the Gyro authors' fork's CLI (Strata rc2); upstream 0.1.47's `native_expert_parity` doesn't accept `--load-check` (it parses the flag as a file path and core-dumps on mmap). Might be worth syncing the doc or the tool. Nothing engine-side blocked the (256,10) TQ2_T file — so the remaining task looks like exactly what the issue suspected: `GYRO_FILES`/`MODELS` catalog entries, a Gyro-Coder expert profile, and a validation pass.
Author
Owner

@pjgmobile commented on GitHub (Oct 21, 2026):

Follow-up: long-context behaviour on the same manual setup (single RTX 3090 24 GB, engine 0.1.47) — same rig as the previous comment.

Config extension (mirroring the standard Qwen3.8-Flash-Next 1M lane):

"--max-context": "1048576",
"--rope-scaling": "yarn", "--rope-scale": "4",
"--kv-resident": "32768"

What works:

  • The 1M YaRN config boots and serves with no engine complaint, on the same 24 GB card, same ~470 MiB free as 64k.
  • It accepted a 551,392-token prompt in one request (2.1× the card's stated native 262k) and prefilled it at roughly 1.6k tok/s effective (~5.5 min wall).
  • Prefix cache reuse is real: the identical 551k prompt re-served in 17 s (vs 337 s cold).
  • 262k native costs almost nothing vs 64k: decode 115.7 vs 119.2 tok/s (-3%, same probe), expert tier warms to 98.4% VRAM-resident with only 0.5% of routed experts crossing PCIe — the sliding-window hybrid attention keeps int8 KV nearly free at 262k.

What does NOT work — with an honest caveat: synthetic needle-in-haystack recall. I ran retrieval probes at ~30k, ~295k and ~551k tokens (uniform synthetic log entries, instruction after the corpus, then instruction-first) and the model failed recall at every depth — including 30k, well inside native context (it continued the corpus pattern or reported no code found). That means my harness cannot distinguish "YaRN degrades retrieval beyond native" from "this corpus style defeats this model's retrieval at any depth" — the two are confounded. It's also plausible the code-pruned expert set simply trades general retrieval. The card's own claim is 262144, and the vendor claims no 1M for this file, so treat 262k as the trusted window and 1M-YaRN as boots-and-serves but recall-unverified.

Costs for anyone trying 1M on 24 GB: KV was not the problem (hybrid sliding-window + int8 keeps 262k nearly free); the card is simply already full at ~470 MiB free, so the #2065 warning applies throughout, and long prefills ride on the prefill budget above (~5.5 min per fresh 550k-token document on this card).

Practical read for a coder lane: keep --max-context 262144. If someone builds a better long-context harness for this file (varied prose rather than synthetic-uniform filler), I'd be interested in the results — the engine mechanics themselves held up fine at 2× native.

<!-- gh-comment-id:6326442848 --> @pjgmobile commented on GitHub (Oct 21, 2026): Follow-up: **long-context behaviour on the same manual setup (single RTX 3090 24 GB, engine 0.1.47)** — same rig as the previous comment. **Config extension (mirroring the standard Qwen3.8-Flash-Next 1M lane):** ```json "--max-context": "1048576", "--rope-scaling": "yarn", "--rope-scale": "4", "--kv-resident": "32768" ``` **What works:** - The 1M YaRN config **boots and serves** with no engine complaint, on the same 24 GB card, same ~470 MiB free as 64k. - It **accepted a 551,392-token prompt in one request** (2.1× the card's stated native 262k) and prefilled it at roughly **1.6k tok/s effective** (~5.5 min wall). - **Prefix cache reuse is real:** the identical 551k prompt re-served in **17 s** (vs 337 s cold). - 262k native costs almost nothing vs 64k: decode 115.7 vs 119.2 tok/s (-3%, same probe), expert tier warms to **98.4% VRAM-resident with only 0.5% of routed experts crossing PCIe** — the sliding-window hybrid attention keeps int8 KV nearly free at 262k. **What does NOT work — with an honest caveat:** synthetic needle-in-haystack recall. I ran retrieval probes at ~30k, ~295k and ~551k tokens (uniform synthetic log entries, instruction after the corpus, then instruction-first) and the model **failed recall at every depth — including 30k, well inside native context** (it continued the corpus pattern or reported no code found). That means my harness cannot distinguish "YaRN degrades retrieval beyond native" from "this corpus style defeats this model's retrieval at any depth" — the two are confounded. It's also plausible the code-pruned expert set simply trades general retrieval. The card's own claim is 262144, and the vendor claims no 1M for this file, so treat **262k as the trusted window and 1M-YaRN as boots-and-serves but recall-unverified**. **Costs for anyone trying 1M on 24 GB:** KV was not the problem (hybrid sliding-window + int8 keeps 262k nearly free); the card is simply already full at ~470 MiB free, so the #2065 warning applies throughout, and long prefills ride on the prefill budget above (~5.5 min per fresh 550k-token document on this card). Practical read for a coder lane: keep `--max-context 262144`. If someone builds a better long-context harness for this file (varied prose rather than synthetic-uniform filler), I'd be interested in the results — the engine mechanics themselves held up fine at 2× native.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659577353 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1502
No description provided.