[GH-ISSUE #892] Linux + RTX 50 (sm_120): an engine compiled with CUDA 13.2 answers garbage (IQ1_S/IQ2_S/IQ3_S miscompile); CUDA 13.0 works #389

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

Originally created by @Thanh-Huy1104 on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/892

What happens

On Linux, setup finds no ready-made engine and compiles one with whatever toolkit is installed. With CUDA 13.2 on an RTX 5070 Ti, the engine loads and serves normally, but every answer is wrong:

  • "What is 2+2?" -> 4+4=8.8.
  • "Translate 'good morning' into German." -> Good morning
  • Most other prompts end after 1-2 tokens or loop (primary colors are primary colors are ...).

There are no errors in the log. The benchmark script's warm-up fails with no text received.

Environment

  • RTX 5070 Ti 16 GB (sm_120), driver 580.178.04, Ubuntu 24.04 (kernel 6.8.0-142), Core Ultra 7 265K (AVX2, no AVX-512), 62 GB RAM (KVM VM, GPU passthrough)
  • Strata 6f32ec0 (engine 0.1.39), ./setup.sh --yes --family qwen --model IQ2_XS --no-start
  • Setup compiled with /usr/local/cuda-13.2/bin/nvcc (13.2.51)
  • Model GGUF SHA-256s match the published LFS hashes (same as the RTX 5090 community report)

Isolation

Run Result
Strata engine, CUDA 13.2 (any --pcie-frac, --expert-cache 0, 4K or 64K context) garbage
llama.cpp 3cf0325 (Strata's pinned commit), CUDA 13.2, GPU offload, same GGUF garbage (0/12 on a small task suite)
llama.cpp, same build, -ngl 0 --device none (CPU only) correct
llama.cpp test-backend-ops -b CUDA0, CUDA 13.2 MUL_MAT 44 FAIL, MUL_MAT_ID 22 FAIL: only iq1_s, iq2_s, iq3_s (ERR 0.4-0.66); every other type OK
Strata engine rebuilt with CUDA 13.0.88 (pip nvidia-cuda-nvcc==13.0.88), nothing else changed correct: 12/12 on the task suite

This matches the known nvcc 13.2 / sm_120 miscompile of the byte reads in the IQ1_S/IQ2_S/IQ3_S kernels (ggml-org/llama.cpp#21255, #28581; the fix PR ggml-org/llama.cpp#28784 was closed unmerged). Strata's own src/kernels/cuda/iq_kernels.cu uses the same pattern (const uint8_t* qs = (const uint8_t*) &qs_packed; then qs[l] into iq2s_grid / iq3s_grid / iq1s_grid_gpu, e.g. lines 156, 215, 242, 658, 719, 753). I have not tested which of Strata's kernels and ggml's kernels are affected separately.

A PTX-only build (120-virtual) with 13.2 is not a workaround on driver 580: the provided PTX was compiled with an unsupported toolchain.

Results with the CUDA 13.0 engine (for reference)

bench/results/2026-09-30-community-rtx-5090/benchmark.py, 3 runs, 256 output tokens, 0 reused:

Prompt tokens Prompt tok/s Decode tok/s
4,096 2,706 128
32,768 3,280 130
60,000 3,196 125

Suggestions

  1. Setup: when the toolkit is nvcc 13.2 and a card is sm_120, warn or stop. Alternatively, compile with pip's nvidia-cuda-nvcc==13.0.88 (plus nvidia-cuda-cccl, nvidia-nvvm, nvidia-cuda-crt, and the runtime/cuBLAS wheels setup already pins). That works without sudo.
  2. Kernels: replace the uint8_t* byte indexing with __byte_perm / shifts in the IQ*_S paths (what ggml-org/llama.cpp#28784 did).
  3. A one-line self-check after the first start (for example, "capital of France" -> contains "Paris") would catch a broken build before users rely on it.
Originally created by @Thanh-Huy1104 on GitHub (Oct 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/892 ## What happens On Linux, setup finds no ready-made engine and compiles one with whatever toolkit is installed. With CUDA 13.2 on an RTX 5070 Ti, the engine loads and serves normally, but every answer is wrong: - "What is 2+2?" -> `4+4=8.8.` - "Translate 'good morning' into German." -> `Good morning` - Most other prompts end after 1-2 tokens or loop (`primary colors are primary colors are ...`). There are no errors in the log. The benchmark script's warm-up fails with `no text received`. ## Environment - RTX 5070 Ti 16 GB (sm_120), driver 580.178.04, Ubuntu 24.04 (kernel 6.8.0-142), Core Ultra 7 265K (AVX2, no AVX-512), 62 GB RAM (KVM VM, GPU passthrough) - Strata `6f32ec0` (engine 0.1.39), `./setup.sh --yes --family qwen --model IQ2_XS --no-start` - Setup compiled with `/usr/local/cuda-13.2/bin/nvcc` (13.2.51) - Model GGUF SHA-256s match the published LFS hashes (same as the RTX 5090 community report) ## Isolation | Run | Result | | --- | --- | | Strata engine, CUDA 13.2 (any `--pcie-frac`, `--expert-cache 0`, 4K or 64K context) | garbage | | llama.cpp `3cf0325` (Strata's pinned commit), CUDA 13.2, GPU offload, same GGUF | garbage (0/12 on a small task suite) | | llama.cpp, same build, `-ngl 0 --device none` (CPU only) | correct | | llama.cpp `test-backend-ops -b CUDA0`, CUDA 13.2 | `MUL_MAT` 44 FAIL, `MUL_MAT_ID` 22 FAIL: **only** `iq1_s`, `iq2_s`, `iq3_s` (ERR 0.4-0.66); every other type OK | | **Strata engine rebuilt with CUDA 13.0.88** (pip `nvidia-cuda-nvcc==13.0.88`), nothing else changed | **correct**: 12/12 on the task suite | This matches the known nvcc 13.2 / sm_120 miscompile of the byte reads in the IQ1_S/IQ2_S/IQ3_S kernels (ggml-org/llama.cpp#21255, #28581; the fix PR ggml-org/llama.cpp#28784 was closed unmerged). Strata's own `src/kernels/cuda/iq_kernels.cu` uses the same pattern (`const uint8_t* qs = (const uint8_t*) &qs_packed;` then `qs[l]` into `iq2s_grid` / `iq3s_grid` / `iq1s_grid_gpu`, e.g. lines 156, 215, 242, 658, 719, 753). I have not tested which of Strata's kernels and ggml's kernels are affected separately. A PTX-only build (`120-virtual`) with 13.2 is not a workaround on driver 580: `the provided PTX was compiled with an unsupported toolchain`. ## Results with the CUDA 13.0 engine (for reference) `bench/results/2026-09-30-community-rtx-5090/benchmark.py`, 3 runs, 256 output tokens, 0 reused: | Prompt tokens | Prompt tok/s | Decode tok/s | | ---: | ---: | ---: | | 4,096 | 2,706 | 128 | | 32,768 | 3,280 | 130 | | 60,000 | 3,196 | 125 | ## Suggestions 1. Setup: when the toolkit is nvcc 13.2 and a card is sm_120, warn or stop. Alternatively, compile with pip's `nvidia-cuda-nvcc==13.0.88` (plus `nvidia-cuda-cccl`, `nvidia-nvvm`, `nvidia-cuda-crt`, and the runtime/cuBLAS wheels setup already pins). That works without sudo. 2. Kernels: replace the `uint8_t*` byte indexing with `__byte_perm` / shifts in the IQ*_S paths (what ggml-org/llama.cpp#28784 did). 3. A one-line self-check after the first start (for example, "capital of France" -> contains "Paris") would catch a broken build before users rely on it.
Author
Owner

@arisogmbh commented on GitHub (Oct 6, 2026):

Independent confirmation on a second sm_120 card, same commit, same quant — and the kernel pattern your issue cites is present verbatim in this tree.

Our environment

  • RTX PRO 4000 Blackwell, 24 GB — compute_cap 12.0 (sm_120), driver 595.71.05, Linux
  • Strata 6f32ec0 (2026-10-04), built with -DSTRATA_GGML_DIR=/home/ariso/Strata/third_party/llama.cpp -DCMAKE_CUDA_ARCHITECTURES=120
  • Model: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S, IQ3_S native pack (tools/iq_pack.py, index v3, 1079 tensors)
  • Both binaries are still on disk, and their embedded compiler strings identify them unambiguously:
    • engine/strata.cuda132 → cuda_13.2.r13.2/compiler.37434383_0
    • engine/strata → cuda_13.0.r13.0/compiler.36260728_0

So this is the same commit and the same quantisation family as your report, on a different card and a different driver branch.

The kernel pattern is here exactly as you describe it

src/kernels/cuda/iq_kernels.cu, the uint8_t* byte-indexing-into-a-packed-value pattern:

156:    const uint8_t* qs = (const uint8_t*) &qs_packed;
215:    const uint8_t* qs = (const uint8_t*) &qs_packed;
242:    const uint8_t* qs = (const uint8_t*) &qs_packed;
658:        const uint8_t* qs = (const uint8_t*) &qs_packed;
719:        const uint8_t* qs = (const uint8_t*) &qs_packed;
753:        const uint8_t* qs = (const uint8_t*) &qs_packed;

Your cited line numbers (156, 215, 242, 658, 719, 753) match this checkout exactly, plus two more instances at 2072 and 2139.

What we saw before the rebuild

Symptoms identical to yours: answers wrong with no errors in the log, and — the part I'd underline for anyone debugging — the same prompt gave three different answers inside one server process. That nondeterminism is what made this look like a sampling or cache bug rather than a miscompile.

The decisive control was the same GGUF in plain llama.cpp: 21/21 correct on CPU (-ngl 0 --device none), garbage on GPU with the 13.2 build. Model file proven intact by sha256 against the published HuggingFace LFS etags. That localises it to the CUDA kernels, exactly as your test-backend-ops table does.

After rebuilding against CUDA 13.0

nvcc release 13.0, V13.0.48, Build cuda_13.0.r13.0/compiler.36260728_0, installed from the official runfile (cuda_13.0.0_580.65.06_linux.run --silent --toolkit --toolkitpath=/usr/local/cuda-13.0 --override); build 225/225 targets, zero ptxas errors.

Four independent engine starts, 21/21 each round, byte-identical output every round. Under 13.2 the same battery scored 0/7–4/7 on most starts.

Engine-reported after the fix: prefill 2026–2034 tok/s at 16K/32K, decode median 93.8 tok/s, MTP draft acceptance 208–221 of 364–386.

The battery is seven probes at temperature 0.0, checking the reply for an expected substring: capital of France → Paris, capital of Japan → Tokyo, 12 plus 30 → 42, 7 times 6 → 42, who wrote Hamlet → Shakespeare, "Say hello." → hello, colour of a clear daytime sky → blue. Seven probes × three rounds per start = 21.

Two additions to your suggestions

1. setup.sh picks the newest toolkit it finds. With both 13.0 and 13.2 installed, find_nvcc() selects 13.2 — so a user who has already installed a good toolkit is silently rebuilt against the bad one. Forcing it works:

STRATA_NVCC=/usr/local/cuda-13.0/bin/nvcc ./setup.sh --build

A warning naming the toolkit and the arch when nvcc is 13.2 and the card is sm_120 would prevent this class of report entirely.

2. The pip-wheel route in your suggestion 1 does not link, at least not as-is. We tried nvidia-cuda-nvcc==13.0.88 plus the companion wheels: CMake configures fine (identifies NVIDIA 13.0.88, arch 120) but the build dies at 42/225 with

ptxas fatal   : Unresolved extern function '__nv_ldg_i_impl'
ptxas fatal   : Unresolved extern function '__nv_ldg_f_impl'
ptxas fatal   : Unresolved extern function '__nv_idp4a_s_s_impl'

The split wheels do not provide a coherent CCCL device library. The runfile toolkit works and needs no sudo changes beyond the install itself. Worth correcting in the issue so nobody spends an hour on the wheel path.

3. Your suggestion 3 (a post-start self-check) is the single highest-value change here. We now run one line after every engine change — "capital of France" must contain "Paris". It costs one request and would have caught this immediately. Given the nondeterminism, it should run twice and compare: a single correct answer can still come from a broken build.

One thing we could not do, stated plainly

We could not re-run the 13.2 binary against a freshly packed model to produce a clean A/B on this card, because the pack is bound to the compiler that produced it — repacking with the 13.2 toolchain would bake the defect into the pack and make the comparison meaningless. A clean second-card reproduction needs the full ~84 GB model on another sm_120 machine. So our contribution is the configuration match plus the four-start determinism result, not a new controlled experiment.

<!-- gh-comment-id:6014841909 --> @arisogmbh commented on GitHub (Oct 6, 2026): Independent confirmation on a second sm_120 card, same commit, same quant — and the kernel pattern your issue cites is present verbatim in this tree. ## Our environment - **RTX PRO 4000 Blackwell, 24 GB** — `compute_cap 12.0` (sm_120), driver **595.71.05**, Linux - Strata **`6f32ec0`** (2026-10-04), built with `-DSTRATA_GGML_DIR=/home/ariso/Strata/third_party/llama.cpp -DCMAKE_CUDA_ARCHITECTURES=120` - Model: `Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S`, IQ3_S native pack (`tools/iq_pack.py`, index v3, 1079 tensors) - Both binaries are still on disk, and their embedded compiler strings identify them unambiguously: - `engine/strata.cuda132` → `cuda_13.2.r13.2/compiler.37434383_0` - `engine/strata` → `cuda_13.0.r13.0/compiler.36260728_0` So this is the same commit and the same quantisation family as your report, on a different card and a different driver branch. ## The kernel pattern is here exactly as you describe it `src/kernels/cuda/iq_kernels.cu`, the `uint8_t*` byte-indexing-into-a-packed-value pattern: ``` 156: const uint8_t* qs = (const uint8_t*) &qs_packed; 215: const uint8_t* qs = (const uint8_t*) &qs_packed; 242: const uint8_t* qs = (const uint8_t*) &qs_packed; 658: const uint8_t* qs = (const uint8_t*) &qs_packed; 719: const uint8_t* qs = (const uint8_t*) &qs_packed; 753: const uint8_t* qs = (const uint8_t*) &qs_packed; ``` Your cited line numbers (156, 215, 242, 658, 719, 753) match this checkout exactly, plus two more instances at 2072 and 2139. ## What we saw before the rebuild Symptoms identical to yours: answers wrong with **no errors in the log**, and — the part I'd underline for anyone debugging — **the same prompt gave three different answers inside one server process.** That nondeterminism is what made this look like a sampling or cache bug rather than a miscompile. The decisive control was the same GGUF in plain llama.cpp: **21/21 correct** on CPU (`-ngl 0 --device none`), garbage on GPU with the 13.2 build. Model file proven intact by sha256 against the published HuggingFace LFS etags. That localises it to the CUDA kernels, exactly as your `test-backend-ops` table does. ## After rebuilding against CUDA 13.0 `nvcc release 13.0, V13.0.48`, `Build cuda_13.0.r13.0/compiler.36260728_0`, installed from the official runfile (`cuda_13.0.0_580.65.06_linux.run --silent --toolkit --toolkitpath=/usr/local/cuda-13.0 --override`); build 225/225 targets, zero ptxas errors. **Four independent engine starts, 21/21 each round, byte-identical output every round.** Under 13.2 the same battery scored 0/7–4/7 on most starts. Engine-reported after the fix: prefill **2026–2034 tok/s** at 16K/32K, decode median **93.8 tok/s**, MTP draft acceptance 208–221 of 364–386. The battery is seven probes at `temperature 0.0`, checking the reply for an expected substring: capital of France → Paris, capital of Japan → Tokyo, `12 plus 30` → 42, `7 times 6` → 42, who wrote Hamlet → Shakespeare, "Say hello." → hello, colour of a clear daytime sky → blue. Seven probes × three rounds per start = 21. ## Two additions to your suggestions **1. `setup.sh` picks the newest toolkit it finds.** With both 13.0 and 13.2 installed, `find_nvcc()` selects 13.2 — so a user who has already installed a good toolkit is silently rebuilt against the bad one. Forcing it works: ``` STRATA_NVCC=/usr/local/cuda-13.0/bin/nvcc ./setup.sh --build ``` A warning naming the toolkit and the arch when nvcc is 13.2 and the card is sm_120 would prevent this class of report entirely. **2. The pip-wheel route in your suggestion 1 does not link, at least not as-is.** We tried `nvidia-cuda-nvcc==13.0.88` plus the companion wheels: CMake configures fine (identifies `NVIDIA 13.0.88`, arch 120) but the build dies at 42/225 with ``` ptxas fatal : Unresolved extern function '__nv_ldg_i_impl' ptxas fatal : Unresolved extern function '__nv_ldg_f_impl' ptxas fatal : Unresolved extern function '__nv_idp4a_s_s_impl' ``` The split wheels do not provide a coherent CCCL device library. The **runfile** toolkit works and needs no sudo changes beyond the install itself. Worth correcting in the issue so nobody spends an hour on the wheel path. **3. Your suggestion 3 (a post-start self-check) is the single highest-value change here.** We now run one line after every engine change — "capital of France" must contain "Paris". It costs one request and would have caught this immediately. Given the nondeterminism, it should run **twice** and compare: a single correct answer can still come from a broken build. ## One thing we could not do, stated plainly We could not re-run the 13.2 binary against a freshly packed model to produce a clean A/B on this card, because the pack is bound to the compiler that produced it — repacking with the 13.2 toolchain would bake the defect into the pack and make the comparison meaningless. A clean second-card reproduction needs the full ~84 GB model on another sm_120 machine. So our contribution is the configuration match plus the four-start determinism result, not a new controlled experiment.
Author
Owner

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

Reproduced on our RTX 5070 (sm_120) with the same source built with nvcc 13.2.51 and 13.0.88. With 13.2 the IQ3_S MMVQ product (iq_multi_parity) and the IQ2_S / IQ3_S MMQ prompt path (prefill_fused_iq_test) are wrong (relative error 0.5 to 1.0); IQ2_XXS, IQ2_XS, IQ3_XXS and IQ4_NL stay bitwise equal, and 13.0 is right. In 0.1.40.2 setup takes an installed CUDA 13.0 / 13.1 over 13.2 for an sm_120 card (STRATA_NVCC still wins) and otherwise warns and says what to install. The ready-made engines are built with 13.0 and are not affected. We have not rewritten the byte-indexed reads, so a 13.2 source build stays at your own risk.

<!-- gh-comment-id:6037854290 --> @Niko1221 commented on GitHub (Oct 7, 2026): Reproduced on our RTX 5070 (sm_120) with the same source built with nvcc 13.2.51 and 13.0.88. With 13.2 the IQ3_S MMVQ product (iq_multi_parity) and the IQ2_S / IQ3_S MMQ prompt path (prefill_fused_iq_test) are wrong (relative error 0.5 to 1.0); IQ2_XXS, IQ2_XS, IQ3_XXS and IQ4_NL stay bitwise equal, and 13.0 is right. In 0.1.40.2 setup takes an installed CUDA 13.0 / 13.1 over 13.2 for an sm_120 card (STRATA_NVCC still wins) and otherwise warns and says what to install. The ready-made engines are built with 13.0 and are not affected. We have not rewritten the byte-indexed reads, so a 13.2 source build stays at your own risk.
Author
Owner

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

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6155980169 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
Author
Owner

@SimonShenhw commented on GitHub (Nov 6, 2026):

Still reproducible on engine 0.1.56 (Strata v0.2.10, ffa80d7) with a CUDA 13.2 build for sm_120, but the broken type has moved: in our build IQ3_XXS answers garbage while IQ3_S is correct, the reverse of the split in your comment above.

Setup

  • NVIDIA RTX PRO 6000 Blackwell Server Edition (compute capability 12.0), driver 595.58.03, Linux.
  • Built with CMake directly, not setup.sh, so its 13.2 guard never ran: -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON -DSTRATA_BUILD_TESTS=OFF -DSTRATA_Q6K_EXPERTS=ON -DSTRATA_MMQ_KQUANTS=ON -DCMAKE_CUDA_ARCHITECTURES=120 -DSTRATA_GGML_DIR=third_party/llama.cpp, target strata.
  • Two builds from the same source tree with the same flags; only the toolkit differs:
    • nvcc 13.2.51: cuda_13.2.r13.2/compiler.37434383_0 in both strata and libstrata_kq.so
    • nvcc 12.8.61: cuda_12.8.r12.8/compiler.35404655_0
  • Models: ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF at ed59f92, IQ3_XXS and IQ3_S, sha256-checked, packed once with tools/iq_pack.py. Both builds loaded the same pack directories, so the compiler is the only difference.
  • Engine flags: --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <dir> --max-context 131072 --kv int8 --kv-resident 32768, one slot.

Check: eight fixed requests, greedy (temperature 0, top_k 1): 47×86, 93×78, write and run a factorial function, the capital of Australia, a Chinese-to-English translation, and three steps replayed from a recorded coding-agent session (prompts of 1.7K, 30K and 60K tokens).

build pack right answers (of 5) agent steps with a proper tool call (of 3) MTP drafts accepted
13.2 IQ3_XXS 0 0 6.6%
13.2, STRATA_PF_FUSED=0 IQ3_XXS 0 0 28.3%
13.2 IQ3_S 5 2 81.5%
12.8 IQ3_XXS 5 2 85.0%
12.8, STRATA_PF_FUSED=0 IQ3_XXS 5 2 85.2%
12.8 IQ3_S 5 2 82.8%
  • The broken replies are fragments like ( 1as cor E( 6d -「 S 316 11 6 9中心.
  • Where a working build shows 2 of 3, the 30K step ran into the 512-token cap while still reasoning, the same in every working run.
  • In a longer replay (219 requests), IQ3_XXS drafts were accepted 2.6% of the time on the 13.2 build and 76.8% on the 12.8 build. On the 13.2 build, IQ3_S (76.3%), unsloth/Qwen3.8-Flash-Next-GGUF UD-Q4_K_XL (81.7%) and the GSQ-RCO Coder IQ1_M pack (78.1%) looked normal.
  • An sm_90 build with CUDA 12.8 on an H200 runs the same IQ3_XXS pack correctly (72.6% of drafts accepted).

Two suggestions

  1. A check in CMake as well as in setup.sh: warn or stop when the CUDA compiler is 13.2 and the architectures include 120. Anyone who builds with CMake directly (we did, on a cluster whose newest CUDA module is 13.2) gets no warning today.
  2. A warning when MTP acceptance stays very low: the collapse (2.6–6.6% against the usual 72–85%) is what flagged this for us before we read any output.

Not tried: CUDA 13.0, 13.3 or 13.4 on this card, and your parity tests (iq_multi_parity, prefill_fused_iq_test), so we can't say which kernel is wrong for IQ3_XXS. Related open report: #4879.

Engine log of the 13.2 IQ3_XXS run, up to the version line (paths shortened)
[strata] 2026-11-05 23:50:43 engine started: <home>/strata-sm120-cu132/src/build/strata --serve --pack <scratch>/strata/packs/qwen38-flash-next-gsq-iq3xxs --native <scratch>/models/qwen38-flash-next-gsq-iq3xxs/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf <scratch>/models/qwen38-flash-next-gsq-iq3xxs/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile <home>/strata-sm120-cu132/src/data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <scratch>/strata/mtp/rt --max-context 131072 --kv int8 --kv-resident 32768
strata generate: memory guard: limit 3022.4 GiB (source: meminfo), current 116.3 GiB, reclaimable cache credited 0.0 GiB; available 2906.1 GiB (MemAvailable 2906.1 GiB), floor 2560 MiB
strata generate: PCIe probe: 57.6 GB/s host->device (best of 57.6 57.6 57.6 57.6) -> pcie_frac 0.55 (default 0.55)
strata generate: native pack: <scratch>/strata/packs/qwen38-flash-next-gsq-iq3xxs experts (largest blob 2.33 MB), token embedding IQ3_S in mapped host memory (260 MiB, 0.1 s)
strata generate: 1466 MiB of weights loaded from <scratch>/strata/packs/qwen38-flash-next-gsq-iq3xxs in 0.3 s (302 canonical tensors skipped: served natively)
strata generate: 300 native projection matrices, 1781.11 MiB of weights, in 0.2 s
strata generate: --ple-io ram chosen by the residency policy (the table is 26.8 GiB, the expert arena still to fill 40.0 GiB and 2887.2 GiB of RAM is available; STRATA_PLE_AUTO_RAM=0 keeps the direct reads, --ple-io direct forces them)
strata generate: PLE table locked in RAM (--ple-io ram chosen by the residency policy) in 1.1 s
strata generate: profile <home>/strata-sm120-cu132/src/data/expert-profile.bin: 24576 ranked pairs, built for 24576 slots
strata generate: KV streaming: 32768 of 131072 cells per QSA layer in VRAM, the K/V in 1.55 GiB of pinned RAM
strata generate: PLE on, table 320001536 rows of <scratch>/models/qwen38-flash-next-gsq-iq3xxs/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf
strata mtp: draft layer loaded, 837 MiB of VRAM (experts 675, dense 111), files read in 0.16 s (4981 MiB/s)
strata generate: experimental native Q5_K head, 437043200 bytes, in 0.1 s
strata generate: GPU 0: NVIDIA RTX PRO 6000 Blackwell Server Edition, compute capability 12.0
strata generate: expert arena read through the file cache (buffered (not Windows))
strata generate: expert arena: cudaHostRegister PORTABLE ok; MAP_HUGETLB unavailable (needed 20464 2 MiB pages, vm.nr_hugepages=0); transparent huge pages are on for every mapping (THP always): MADV_HUGEPAGE not requested
strata generate: loaded 39.97 GiB at 37.44 GiB/s
strata generate: GPU host-callback thread started before host-core pinning
strata cpu pool: NUMA pool off: the pool's threads span 1 NUMA node(s), the NUMA split supports exactly 2 (2 NUMA nodes found), the pool runs as before
strata generate: CPU pool tasks/phase: 36 (automatic), participating threads: 12
strata generate: CPU pool: 11 workers by default (12 physical cores, 24 logical processors; bounded by every physical core but the host's)
strata generate: 11 pool workers on logical processors 7,12,13,30,33,34,35,36,37,38,39, the host thread on 6 (draining too) (--host-core first)
strata generate: CPU workers on logical processors 7,12,13,30,33,34,35,36,37,38,39 (11 workers, one per physical core; host on 6)
strata aux cpus: threads that are neither pool workers nor the host go to CPUs 102 (off at start; a request's aux_cpus=1 turns it on)
strata generate: expert cache auto: 88.88 GiB free, 700 MiB reserved (+186 MiB for the draft head, +256 MiB for what is allocated after the cache) -> 24576 slots
strata generate: expert cache 24576 slots, 39.97 GiB of VRAM; policy is
strata generate: the GPU computes the experts in the cache; it rounds differently from the CPU,
                 so a reply can differ slightly from a run without the cache (same quality:
                 bench/results/2026-09-27-cache-parity).
                 PROFILE, ranked by routing frequency, no eviction.
strata generate: pre-filled 24576 of 24576 slots from the profile in 0.9 s (45555 MB/s); slot 0 verified
strata generate: R4 hit path ON - resident experts are computed on the GPU
strata generate: 11 expert-pool workers + the host thread
strata generate: session is up (engine 0.1.56)
<!-- gh-comment-id:6684229485 --> @SimonShenhw commented on GitHub (Nov 6, 2026): Still reproducible on engine 0.1.56 (Strata v0.2.10, `ffa80d7`) with a CUDA 13.2 build for sm_120, but the broken type has moved: in our build **IQ3_XXS** answers garbage while **IQ3_S** is correct, the reverse of the split in your comment above. **Setup** - NVIDIA RTX PRO 6000 Blackwell Server Edition (compute capability 12.0), driver 595.58.03, Linux. - Built with CMake directly, not `setup.sh`, so its 13.2 guard never ran: `-DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON -DSTRATA_BUILD_TESTS=OFF -DSTRATA_Q6K_EXPERTS=ON -DSTRATA_MMQ_KQUANTS=ON -DCMAKE_CUDA_ARCHITECTURES=120 -DSTRATA_GGML_DIR=third_party/llama.cpp`, target `strata`. - Two builds from the same source tree with the same flags; only the toolkit differs: - nvcc 13.2.51: `cuda_13.2.r13.2/compiler.37434383_0` in both `strata` and `libstrata_kq.so` - nvcc 12.8.61: `cuda_12.8.r12.8/compiler.35404655_0` - Models: `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF` at `ed59f92`, IQ3_XXS and IQ3_S, sha256-checked, packed once with `tools/iq_pack.py`. Both builds loaded the same pack directories, so the compiler is the only difference. - Engine flags: `--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <dir> --max-context 131072 --kv int8 --kv-resident 32768`, one slot. **Check**: eight fixed requests, greedy (temperature 0, top_k 1): 47×86, 93×78, write and run a factorial function, the capital of Australia, a Chinese-to-English translation, and three steps replayed from a recorded coding-agent session (prompts of 1.7K, 30K and 60K tokens). | build | pack | right answers (of 5) | agent steps with a proper tool call (of 3) | MTP drafts accepted | |---|---|---|---|---| | 13.2 | IQ3_XXS | 0 | 0 | 6.6% | | 13.2, `STRATA_PF_FUSED=0` | IQ3_XXS | 0 | 0 | 28.3% | | 13.2 | IQ3_S | 5 | 2 | 81.5% | | 12.8 | IQ3_XXS | 5 | 2 | 85.0% | | 12.8, `STRATA_PF_FUSED=0` | IQ3_XXS | 5 | 2 | 85.2% | | 12.8 | IQ3_S | 5 | 2 | 82.8% | - The broken replies are fragments like `( 1as cor E( 6d -「 S 316 11 6 9中心`. - Where a working build shows 2 of 3, the 30K step ran into the 512-token cap while still reasoning, the same in every working run. - In a longer replay (219 requests), IQ3_XXS drafts were accepted 2.6% of the time on the 13.2 build and 76.8% on the 12.8 build. On the 13.2 build, IQ3_S (76.3%), `unsloth/Qwen3.8-Flash-Next-GGUF` UD-Q4_K_XL (81.7%) and the GSQ-RCO Coder IQ1_M pack (78.1%) looked normal. - An sm_90 build with CUDA 12.8 on an H200 runs the same IQ3_XXS pack correctly (72.6% of drafts accepted). **Two suggestions** 1. A check in CMake as well as in `setup.sh`: warn or stop when the CUDA compiler is 13.2 and the architectures include 120. Anyone who builds with CMake directly (we did, on a cluster whose newest CUDA module is 13.2) gets no warning today. 2. A warning when MTP acceptance stays very low: the collapse (2.6–6.6% against the usual 72–85%) is what flagged this for us before we read any output. Not tried: CUDA 13.0, 13.3 or 13.4 on this card, and your parity tests (`iq_multi_parity`, `prefill_fused_iq_test`), so we can't say which kernel is wrong for IQ3_XXS. Related open report: #4879. <details><summary>Engine log of the 13.2 IQ3_XXS run, up to the version line (paths shortened)</summary> ``` [strata] 2026-11-05 23:50:43 engine started: <home>/strata-sm120-cu132/src/build/strata --serve --pack <scratch>/strata/packs/qwen38-flash-next-gsq-iq3xxs --native <scratch>/models/qwen38-flash-next-gsq-iq3xxs/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf <scratch>/models/qwen38-flash-next-gsq-iq3xxs/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile <home>/strata-sm120-cu132/src/data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <scratch>/strata/mtp/rt --max-context 131072 --kv int8 --kv-resident 32768 strata generate: memory guard: limit 3022.4 GiB (source: meminfo), current 116.3 GiB, reclaimable cache credited 0.0 GiB; available 2906.1 GiB (MemAvailable 2906.1 GiB), floor 2560 MiB strata generate: PCIe probe: 57.6 GB/s host->device (best of 57.6 57.6 57.6 57.6) -> pcie_frac 0.55 (default 0.55) strata generate: native pack: <scratch>/strata/packs/qwen38-flash-next-gsq-iq3xxs experts (largest blob 2.33 MB), token embedding IQ3_S in mapped host memory (260 MiB, 0.1 s) strata generate: 1466 MiB of weights loaded from <scratch>/strata/packs/qwen38-flash-next-gsq-iq3xxs in 0.3 s (302 canonical tensors skipped: served natively) strata generate: 300 native projection matrices, 1781.11 MiB of weights, in 0.2 s strata generate: --ple-io ram chosen by the residency policy (the table is 26.8 GiB, the expert arena still to fill 40.0 GiB and 2887.2 GiB of RAM is available; STRATA_PLE_AUTO_RAM=0 keeps the direct reads, --ple-io direct forces them) strata generate: PLE table locked in RAM (--ple-io ram chosen by the residency policy) in 1.1 s strata generate: profile <home>/strata-sm120-cu132/src/data/expert-profile.bin: 24576 ranked pairs, built for 24576 slots strata generate: KV streaming: 32768 of 131072 cells per QSA layer in VRAM, the K/V in 1.55 GiB of pinned RAM strata generate: PLE on, table 320001536 rows of <scratch>/models/qwen38-flash-next-gsq-iq3xxs/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf strata mtp: draft layer loaded, 837 MiB of VRAM (experts 675, dense 111), files read in 0.16 s (4981 MiB/s) strata generate: experimental native Q5_K head, 437043200 bytes, in 0.1 s strata generate: GPU 0: NVIDIA RTX PRO 6000 Blackwell Server Edition, compute capability 12.0 strata generate: expert arena read through the file cache (buffered (not Windows)) strata generate: expert arena: cudaHostRegister PORTABLE ok; MAP_HUGETLB unavailable (needed 20464 2 MiB pages, vm.nr_hugepages=0); transparent huge pages are on for every mapping (THP always): MADV_HUGEPAGE not requested strata generate: loaded 39.97 GiB at 37.44 GiB/s strata generate: GPU host-callback thread started before host-core pinning strata cpu pool: NUMA pool off: the pool's threads span 1 NUMA node(s), the NUMA split supports exactly 2 (2 NUMA nodes found), the pool runs as before strata generate: CPU pool tasks/phase: 36 (automatic), participating threads: 12 strata generate: CPU pool: 11 workers by default (12 physical cores, 24 logical processors; bounded by every physical core but the host's) strata generate: 11 pool workers on logical processors 7,12,13,30,33,34,35,36,37,38,39, the host thread on 6 (draining too) (--host-core first) strata generate: CPU workers on logical processors 7,12,13,30,33,34,35,36,37,38,39 (11 workers, one per physical core; host on 6) strata aux cpus: threads that are neither pool workers nor the host go to CPUs 102 (off at start; a request's aux_cpus=1 turns it on) strata generate: expert cache auto: 88.88 GiB free, 700 MiB reserved (+186 MiB for the draft head, +256 MiB for what is allocated after the cache) -> 24576 slots strata generate: expert cache 24576 slots, 39.97 GiB of VRAM; policy is strata generate: the GPU computes the experts in the cache; it rounds differently from the CPU, so a reply can differ slightly from a run without the cache (same quality: bench/results/2026-09-27-cache-parity). PROFILE, ranked by routing frequency, no eviction. strata generate: pre-filled 24576 of 24576 slots from the profile in 0.9 s (45555 MB/s); slot 0 verified strata generate: R4 hit path ON - resident experts are computed on the GPU strata generate: 11 expert-pool workers + the host thread strata generate: session is up (engine 0.1.56) ``` </details>
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#389
No description provided.