[GH-ISSUE #4879] [Engine]: Locally compiled engine binary silently degrades IQ-quant generations (CUDA 13.2 / sm_120); official prebuilt 0.1.55 is clean on the same host #2241

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

Originally created by @NerdyShawn on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4879

Symptom

An engine binary compiled from source on the host (app checkout at the v0.2.9 tag, CUDA arch sm_120 only, distro nvcc Build cuda_13.2.r13.2, Fedora) produces severely degraded generations on IQ-quant packs — while the official prebuilt 0.1.55 linux-x86_64-cuda-cuda13 package is clean on the same machine, same model files, same environment, minutes apart.

The degradation is silent: services are healthy, finish_reason: stop, no engine journal errors, decode timings look normal.

What the broken local build did

Two Qwen3.8-Flash-Next servers on an RTX 5090 Laptop 24 GB (one GPU-resident quant at a time, streamed experts with --resident-budget-gib 28 on the IQ3_S side):

workload locally compiled 0.1.55 prebuilt 0.1.55
agent-style <tool_call> JSON markup prompt (IQ3_S) 0/10 emits: off-task confabulation (answers to prompts nobody sent, literal special-token names as text, base-model identity leaks) 10/10, 97/100 on a 100-case tool-shaped bench
same bench (IQ1_M) 33/70 markup (skips tool calls on multi-turn/parallel cases) 70/70, 99/100

The same broken build served short factual prompts perfectly (a finish: stop smoke passes) — the damage only shows on tool-call-shaped prompts, which is why it survived the local 30-min soak + 61-task-style checks we ran at upgrade time.

A/B chain that isolated the binary (2026-10-31, one evening)

  1. Suspected app defaults first: STRATA_GDN_TC=0, STRATA_GDN_CONVL2=0 (server-injected QUAL-GDN stack), --conversation-cache-mib 0, even STRATA_DEFAULTS=026 — no change, still confabulating.
  2. Swapped only exe to the official prebuilt 0.1.50: 4/5 clean strict-markup probes.
  3. Swapped to the official prebuilt 0.1.55 with all defaults on (GDN stack active): 4/4 clean.
  4. Installed 0.1.55 prebuilt via strata components install-file (signature-checked, test-started): both servers re-scored 97/100 and 99/100 on the full core bench minutes apart.

Everything else (model GGUFs from Oct 3/9, tokenizer, expert profile, MTP drafts, configs, env, host libraries) was identical across arms. The binary is the only variable.

Questions

  1. Which toolchain/flags does the official cuda13 build use (nvcc minor version, optimization flags, any -use_fast_math-class flags)? Our distro's 13.2 local compile is BUILD.json source: local, archs: [120] — is a single-arch sm_120 build a qualified configuration for IQ packs?
  2. Could a local compile silently pick a different numerical path on Blackwell (the mixed-precision tier in docs/GDN_CONTRACT.md mentions sm_80/sm_90 for the TC scan) that produces coherent-but-wrong text rather than an error?
  3. Would you gate setup.sh's local-recompile path with a tool-call-shaped quality check (short factual smokes demonstrably do not catch this), or document "prebuilt packages are the qualified build; local compiles are best-effort"?

We kept the broken binary + the reproducing bench (a strict-markup probe loop: ~5 requests is enough) if it helps to diff.

Originally created by @NerdyShawn on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4879 ## Symptom An engine binary **compiled from source on the host** (app checkout at the v0.2.9 tag, CUDA arch `sm_120` only, distro nvcc `Build cuda_13.2.r13.2`, Fedora) produces **severely degraded generations on IQ-quant packs** — while the **official prebuilt 0.1.55 `linux-x86_64-cuda-cuda13` package is clean on the same machine, same model files, same environment, minutes apart**. The degradation is silent: services are healthy, `finish_reason: stop`, no engine journal errors, decode timings look normal. ## What the broken local build did Two Qwen3.8-Flash-Next servers on an RTX 5090 Laptop 24 GB (one GPU-resident quant at a time, streamed experts with `--resident-budget-gib 28` on the IQ3_S side): | workload | locally compiled 0.1.55 | prebuilt 0.1.55 | |---|---|---| | agent-style `<tool_call>` JSON markup prompt (IQ3_S) | 0/10 emits: off-task confabulation (answers to prompts nobody sent, literal special-token names as text, base-model identity leaks) | 10/10, 97/100 on a 100-case tool-shaped bench | | same bench (IQ1_M) | 33/70 markup (skips tool calls on multi-turn/parallel cases) | 70/70, 99/100 | The same broken build served *short factual prompts perfectly* (a `finish: stop` smoke passes) — the damage only shows on tool-call-shaped prompts, which is why it survived the local 30-min soak + 61-task-style checks we ran at upgrade time. ## A/B chain that isolated the binary (2026-10-31, one evening) 1. Suspected app defaults first: `STRATA_GDN_TC=0`, `STRATA_GDN_CONVL2=0` (server-injected QUAL-GDN stack), `--conversation-cache-mib 0`, even `STRATA_DEFAULTS=026` — **no change**, still confabulating. 2. Swapped only `exe` to the official **prebuilt 0.1.50**: 4/5 clean strict-markup probes. 3. Swapped to the official **prebuilt 0.1.55 with all defaults on (GDN stack active)**: **4/4 clean**. 4. Installed 0.1.55 prebuilt via `strata components install-file` (signature-checked, test-started): both servers re-scored 97/100 and 99/100 on the full core bench minutes apart. Everything else (model GGUFs from Oct 3/9, tokenizer, expert profile, MTP drafts, configs, env, host libraries) was identical across arms. The binary is the only variable. ## Questions 1. Which toolchain/flags does the official cuda13 build use (nvcc minor version, optimization flags, any `-use_fast_math`-class flags)? Our distro's 13.2 local compile is `BUILD.json` `source: local`, `archs: [120]` — is a single-arch sm_120 build a qualified configuration for IQ packs? 2. Could a local compile silently pick a different numerical path on Blackwell (the mixed-precision tier in `docs/GDN_CONTRACT.md` mentions sm_80/sm_90 for the TC scan) that produces coherent-but-wrong text rather than an error? 3. Would you gate `setup.sh`'s local-recompile path with a tool-call-shaped quality check (short factual smokes demonstrably do not catch this), or document "prebuilt packages are the qualified build; local compiles are best-effort"? We kept the broken binary + the reproducing bench (a strict-markup probe loop: ~5 requests is enough) if it helps to diff.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 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:6554827955 --> @github-actions[bot] commented on GitHub (Nov 1, 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

@AdrinalinNS commented on GitHub (Nov 1, 2026):

Я слышал что версия CUDA 13.2 крайне не рекомендуется, надо или 13.0 или 13.3 в llama.cpp, может тут тоже так же?

<!-- gh-comment-id:6555548267 --> @AdrinalinNS commented on GitHub (Nov 1, 2026): Я слышал что версия CUDA 13.2 крайне не рекомендуется, надо или 13.0 или 13.3 в llama.cpp, может тут тоже так же?
Author
Owner

@Tsury commented on GitHub (Nov 1, 2026):

One data point from the same GPU, in case it helps narrow this down. It does not rule anything out.

RTX 5090 Laptop 24 GB, Ubuntu, Strata v0.2.9 / engine 0.1.55 compiled from source for sm_120 only with CUDA 13.4.92 nvcc. This is a patched tree, not a clean tag. The model is an IQ3_S GSQ-RCO Qwen3.8-Flash-Next fine-tune, not stock weights.

  • Tool-call check on the running server: 8/8 correct.
  • Five longer Claude Code tasks with file and tool work: 5/5 correct first deliveries.

So a local sm_120 compile is not always broken on this GPU. The difference from your failing build that stands out is nvcc 13.2 against 13.4.92, though our patches and weights also differ. I did not run your bench, and I have not tried 13.2.

<!-- gh-comment-id:6558715015 --> @Tsury commented on GitHub (Nov 1, 2026): One data point from the same GPU, in case it helps narrow this down. It does not rule anything out. RTX 5090 Laptop 24 GB, Ubuntu, Strata v0.2.9 / engine 0.1.55 compiled from source for `sm_120` only with CUDA 13.4.92 nvcc. This is a patched tree, not a clean tag. The model is an IQ3_S GSQ-RCO Qwen3.8-Flash-Next fine-tune, not stock weights. - Tool-call check on the running server: 8/8 correct. - Five longer Claude Code tasks with file and tool work: 5/5 correct first deliveries. So a local `sm_120` compile is not always broken on this GPU. The difference from your failing build that stands out is nvcc 13.2 against 13.4.92, though our patches and weights also differ. I did not run your bench, and I have not tried 13.2.
Author
Owner

@NerdyShawn commented on GitHub (Nov 1, 2026):

Thanks on Nobara linux and latest for those repo's is 13.2 it seems, also on an Asus ROG rtx5090 laptop 24GB as well. Will keep an eye to try this after Nobara's branch gets the new CUDA in.

<!-- gh-comment-id:6560599595 --> @NerdyShawn commented on GitHub (Nov 1, 2026): Thanks on Nobara linux and latest for those repo's is 13.2 it seems, also on an Asus ROG rtx5090 laptop 24GB as well. Will keep an eye to try this after Nobara's branch gets the new CUDA in.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 7, 2026):

Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.

To bring it back: fix the title (area prefix) and the missing parts, then comment /reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.

<!-- gh-comment-id:6702196599 --> @github-actions[bot] commented on GitHub (Nov 7, 2026): Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection. To bring it back: fix the title (area prefix) and the missing parts, then comment `/reopen`. A check runs and reopens it, or tells you what is still missing. See [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#2241
No description provided.