[GH-ISSUE #4416] [Benchmark] RTX 5080 + 2x Xeon 8176: IQ3_S, NVFP4-QAD and IQ3_XXS in the standard protocol, with quant quality #1966

Closed
opened 2026-11-04 01:55:39 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ShaggyDragon on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4416

Problem and result

Four arms measured on one machine — RTX 5080 16 GB, 2x Xeon Platinum 8176, 251 GB RAM, Unraid/Ubuntu 24.04, Strata 0.2.3-cuda13, engine 0.1.48 — one at a time, each in its own production launch, all inside one 12-minute window on 2026-10-28. Pull request: #4415, which adds bench/results/2026-10-28-community-rtx5080-dual8176/ with the tool-written README.md, results.json, outputs.jsonl and provenance/ for every arm.

1. Standard protocol (strata bench run), medians of 3:

Arm Prompt 4K tok/s Prompt 16K tok/s Decode short Decode 4K Decode 16K TTFT 16K s
IQ3_S (reference) 990.5 1,911.8 87.2 84.0 78.7 8.63
NVFP4-QAD 749.7 1,417.8 57.4 58.8 53.3 11.63
IQ3_XXS 1,216.1 2,245.3 99.3 93.0 97.6 7.36
Qwen3.6-35B-A3B (UD-Q4_K_XL) 710.3 1,008.7 143.3 122.5 112.2 16.23

Every decode figure is a time-to-cap number, not time-to-answer: 3/3 performance requests hit the protocol's 512-token cap on all arms except NVFP4's short prompts (0/3), because these are thinking models at reasoning_effort xhigh. Comparable to each other, not to a "decode until it stops" number.

2. Quant quality — fidelity to the reference, and the surprising ordering. tools/quant_quality.py, set v1, five segments x 999 teacher-forced positions, REF = IQ3_S, same engine minutes apart:

Arm top-1 agreement mean KL ppl (ref 4.103)
NVFP4-QAD 86.97% 0.1495 3.942
IQ3_XXS 85.23% 0.1737 4.146

The fast arm is the less faithful one: IQ3_XXS sits further from IQ3_S than the 4-bit NVIDIA format does (+16% mean KL, −1.7 points of agreement) while beating it on every speed axis. The damage is uneven — multilingual 91.99% and code 91.39% agreement hold up, docs falls to 75.48% (one differing next token in four on technical prose) and the agent transcript reaches KL 0.3085.

3. Cross-model quality scoring is blocked by an engine lineage, not by a quant. The Qwen3.6 pack runs on strata-q36, which cannot be scored:

  • no --short-read, no STRATA_LOGPOS — it prints ignoring --short-read 1064 (not an option of this engine) and takes the batched prompt path, so the harness reports code: 0 positions … (the prompt took the batched path?) and writes no TSV (same for --expert-cache, --adapt-every, --pcie-frac, --suffix-draft, --prompt-cache);
  • serve/server.py in 0.2.3 has no logprobs support, so there is no OpenAI-style prompt-logprob fallback;
  • --dump-full-logits works and is clean — float32 rows of 248,320 logits, 993,280 bytes each (verified 63,569,920 = 64 x 993,280) — but one row per generated token, i.e. its own continuation rather than the text to score; --force is the intended teacher-forcing hook and is undocumented (a probe with --tokens 9707 --force 11,1879,314 generated free tokens 13 321 25 279, not the forced ids).

3b. A packaging bug that probably explains the 35B's prefill column. The q36 engine logs on every start with the 0.2.3-cuda13 image:

strata: K-quant prompt kernels (STRATA_MMQ_KQ=1): libstrata_kq.so not found next to the engine
        - these experts take the FP16 prompt path

Prompt processing therefore runs the FP16 path — the most plausible cause of 710 tok/s at 4K against IQ3_S's 990, and of the 47% prefill deficit at 16K that makes the 35B a fast chat engine and a poor agent one.

The good news for whoever unblocks quality: the Qwen3.6-35B pack and the Qwen3.8 IQ3_S pack have byte-identical tokenizers (vocab.json 4ba64f033…, merges.txt 4ba698529…, 248,320 tokens each), so once a scoring path exists that pack scores the same positions on the same tokens as iq3s.tsv and its perplexity is directly comparable with the reference — no re-tokenisation, no cross-tokenizer caveat.

Not measured: 32K/128K prompts (the protocol corpus stops at 16K; the 35B runs 32,768-token context), concurrency, power and clocks, and any task-based evaluation. A quick non-standard suite (decode 512 tok / prefill 3,882 tok) is in the folder for comparison with older community reports, with the 35B's warm-up spread called out — 4.47 s to 3.08 s across three runs as its expert profile filled, so quote it as 115 to 166 tok/s, median 141.

Approach

Results only, no code changes: one dated folder in the layout the older community folders use, plus one row in bench/results/COMMUNITY.md. The speed numbers trace to each arm's committed results.json; the quality numbers travel with their configs and the tool's own compare output. The blocked 35B quality probe is kept as evidence (quality/cfg-qwen36.json and the command in the folder README) rather than described from memory.

Reproduction

# speed, per arm — the parent dir must exist, the arm dir must not
mkdir -p /data/bench/results/2026-10-28-community-rtx5080-dual8176
strata bench run --url http://127.0.0.1:9000 --credential-env STRATA_API_KEY \
  --out /data/bench/results/2026-10-28-community-rtx5080-dual8176/iq3_xxs

# quality, per arm (image 0.2.3-cuda13, engine 0.1.48)
docker run --rm --gpus all -v /mnt/cache/strata:/data \
  -e LD_LIBRARY_PATH=/opt/strata/components/engine/0.1.48-linux-x86_64-cuda-cuda13 \
  --entrypoint /opt/strata/terminal/python/bin/python3 ghcr.io/niko1221/strata:0.2.3-cuda13 \
  /data/quality-run/quant_quality.py run --config /data/quality-run/cfg-xxs.json \
  --out /data/quality-run/xxs.tsv --ids /data/.../quant_quality/v1/set.ids.json

# the blocked 35B probe: same command with cfg-qwen36.json -> "code: 0 positions"

Reconstruction notes that cost time here: ghcr.io/niko1221/strata:0.2.3-cuda13 has no python3 on PATH (use /opt/strata/terminal/python/bin/python3), and overriding the entrypoint drops the entrypoint's LD_LIBRARY_PATH, so the engine binary dies with libcudart.so.13: cannot open shared object file unless it is passed explicitly.

Originally created by @ShaggyDragon on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4416 ## Problem and result Four arms measured on one machine — **RTX 5080 16 GB, 2x Xeon Platinum 8176, 251 GB RAM, Unraid/Ubuntu 24.04**, Strata `0.2.3-cuda13`, engine `0.1.48` — one at a time, each in its own production launch, all inside one 12-minute window on 2026-10-28. Pull request: **#4415**, which adds `bench/results/2026-10-28-community-rtx5080-dual8176/` with the tool-written `README.md`, `results.json`, `outputs.jsonl` and `provenance/` for every arm. **1. Standard protocol (`strata bench run`), medians of 3:** | Arm | Prompt 4K tok/s | Prompt 16K tok/s | Decode short | Decode 4K | Decode 16K | TTFT 16K s | |---|---|---|---|---|---|---| | IQ3_S (reference) | 990.5 | 1,911.8 | 87.2 | 84.0 | 78.7 | 8.63 | | NVFP4-QAD | 749.7 | 1,417.8 | 57.4 | 58.8 | 53.3 | 11.63 | | IQ3_XXS | **1,216.1** | **2,245.3** | 99.3 | 93.0 | **97.6** | **7.36** | | Qwen3.6-35B-A3B (UD-Q4_K_XL) | 710.3 | 1,008.7 | **143.3** | **122.5** | 112.2 | 16.23 | Every decode figure is a **time-to-cap** number, not time-to-answer: 3/3 performance requests hit the protocol's 512-token cap on all arms except NVFP4's short prompts (0/3), because these are thinking models at `reasoning_effort xhigh`. Comparable to each other, not to a "decode until it stops" number. **2. Quant quality — fidelity to the reference, and the surprising ordering.** `tools/quant_quality.py`, set v1, five segments x 999 teacher-forced positions, REF = IQ3_S, same engine minutes apart: | Arm | top-1 agreement | mean KL | ppl (ref 4.103) | |---|---|---|---| | NVFP4-QAD | 86.97% | 0.1495 | 3.942 | | IQ3_XXS | 85.23% | 0.1737 | 4.146 | The fast arm is the less faithful one: **IQ3_XXS sits further from IQ3_S than the 4-bit NVIDIA format does** (+16% mean KL, −1.7 points of agreement) while beating it on every speed axis. The damage is uneven — multilingual 91.99% and code 91.39% agreement hold up, docs falls to **75.48%** (one differing next token in four on technical prose) and the agent transcript reaches KL 0.3085. **3. Cross-model quality scoring is blocked by an engine lineage, not by a quant.** The Qwen3.6 pack runs on `strata-q36`, which cannot be scored: - no `--short-read`, no `STRATA_LOGPOS` — it prints `ignoring --short-read 1064 (not an option of this engine)` and takes the batched prompt path, so the harness reports `code: 0 positions … (the prompt took the batched path?)` and writes no TSV (same for `--expert-cache`, `--adapt-every`, `--pcie-frac`, `--suffix-draft`, `--prompt-cache`); - `serve/server.py` in 0.2.3 has no `logprobs` support, so there is no OpenAI-style prompt-logprob fallback; - `--dump-full-logits` works and is clean — float32 rows of 248,320 logits, 993,280 bytes each (verified `63,569,920 = 64 x 993,280`) — but one row per **generated** token, i.e. its own continuation rather than the text to score; `--force` is the intended teacher-forcing hook and is undocumented (a probe with `--tokens 9707 --force 11,1879,314` generated free tokens `13 321 25 279`, not the forced ids). **3b. A packaging bug that probably explains the 35B's prefill column.** The q36 engine logs on every start with the `0.2.3-cuda13` image: ``` strata: K-quant prompt kernels (STRATA_MMQ_KQ=1): libstrata_kq.so not found next to the engine - these experts take the FP16 prompt path ``` Prompt processing therefore runs the FP16 path — the most plausible cause of 710 tok/s at 4K against IQ3_S's 990, and of the 47% prefill deficit at 16K that makes the 35B a fast chat engine and a poor agent one. **The good news for whoever unblocks quality:** the Qwen3.6-35B pack and the Qwen3.8 IQ3_S pack have **byte-identical tokenizers** (`vocab.json` `4ba64f033…`, `merges.txt` `4ba698529…`, 248,320 tokens each), so once a scoring path exists that pack scores the *same positions on the same tokens* as `iq3s.tsv` and its perplexity is directly comparable with the reference — no re-tokenisation, no cross-tokenizer caveat. Not measured: 32K/128K prompts (the protocol corpus stops at 16K; the 35B runs 32,768-token context), concurrency, power and clocks, and any task-based evaluation. A quick non-standard suite (decode 512 tok / prefill 3,882 tok) is in the folder for comparison with older community reports, with the 35B's warm-up spread called out — 4.47 s to 3.08 s across three runs as its expert profile filled, so quote it as 115 to 166 tok/s, median 141. ## Approach Results only, no code changes: one dated folder in the layout the older community folders use, plus one row in `bench/results/COMMUNITY.md`. The speed numbers trace to each arm's committed `results.json`; the quality numbers travel with their configs and the tool's own `compare` output. The blocked 35B quality probe is kept as evidence (`quality/cfg-qwen36.json` and the command in the folder README) rather than described from memory. ## Reproduction ```bash # speed, per arm — the parent dir must exist, the arm dir must not mkdir -p /data/bench/results/2026-10-28-community-rtx5080-dual8176 strata bench run --url http://127.0.0.1:9000 --credential-env STRATA_API_KEY \ --out /data/bench/results/2026-10-28-community-rtx5080-dual8176/iq3_xxs # quality, per arm (image 0.2.3-cuda13, engine 0.1.48) docker run --rm --gpus all -v /mnt/cache/strata:/data \ -e LD_LIBRARY_PATH=/opt/strata/components/engine/0.1.48-linux-x86_64-cuda-cuda13 \ --entrypoint /opt/strata/terminal/python/bin/python3 ghcr.io/niko1221/strata:0.2.3-cuda13 \ /data/quality-run/quant_quality.py run --config /data/quality-run/cfg-xxs.json \ --out /data/quality-run/xxs.tsv --ids /data/.../quant_quality/v1/set.ids.json # the blocked 35B probe: same command with cfg-qwen36.json -> "code: 0 positions" ``` Reconstruction notes that cost time here: `ghcr.io/niko1221/strata:0.2.3-cuda13` has **no `python3` on `PATH`** (use `/opt/strata/terminal/python/bin/python3`), and overriding the entrypoint drops the entrypoint's `LD_LIBRARY_PATH`, so the engine binary dies with `libcudart.so.13: cannot open shared object file` unless it is passed explicitly.
Author
Owner

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

Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.

<!-- gh-comment-id:6495618967 --> @Niko1221 commented on GitHub (Oct 29, 2026): Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.
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#1966
No description provided.