[GH-ISSUE #3724] [Benchmark] llama.cpp #30553 improves IQ3_S throughput on RTX 2080 Ti + RTX 4070 SUPER #1556

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

Originally created by @Chenj168 on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3724

What I measured

I compared two local runs on 2026-10-22, before and after backporting llama.cpp #30553: cap MMQ Stream-K blocks at available work. The only change between the two runs was this backport. The recorded benchmark parameters, machine metadata, server configuration and reported expert-cache capacities are identical.

Fresh-prompt throughput increased by 2.88% at 4K and 2.62% at 16K. Short-chat decode throughput increased by 12.66% in this comparison. I am sharing the results for consideration of a narrow backport to Strata's pinned MMQ dependency; the decode change needs further investigation before attributing it to this patch.

Reproduction status: Measured locally. All numbers below come from the two existing benchmark reports.

Hardware and software

  • GPUs: NVIDIA GeForce RTX 2080 Ti + NVIDIA GeForce RTX 4070 SUPER. The reports record 34,810 MiB aggregate VRAM; per-card capacities were not recorded.
  • CPU: Intel Core i5-14490F, 10 cores / 16 threads; RAM: 63.8 GiB.
  • OS: Windows 11, build 10.0.26300; NVIDIA driver: 617.42; Python: 3.12.9.
  • Both reports identify Strata/project and engine version as 0.1.47, source commit 011c9e60. These are local builds, not verified clean release builds.
  • llama.cpp dependency: 3cf03257f219afbe7334045ff7c6a06ac68c627d.
  • GPU stage order: [1, 0]; layer split: 25. The first stage is the RTX 4070 SUPER, followed by the RTX 2080 Ti.
  • Both runs report 11,703 total expert-cache slots, including 9,161 primary slots; total expert-cache allocation is 22,156 MiB.
  • CUDA toolkit version, background GPU load and power limits were not captured by the reports.

Configuration and method

Model: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S, using the two GGUF shards named below. Context: 262,144 tokens; one parallel slot; INT8 KV with 32,768 resident tokens; --prefill auto:8192; MTP enabled with --spec 4 --mtp rt.

The exact launch string recorded by both reports is:

strata.exe --pack iq3_s --native Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --ple-gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf --expert-profile expert-profile.bin --expert-cache auto --spec 4 --mtp rt --max-context 262144 --kv int8 --spec-min-p 0.5 --pool-workers 9 --prefill auto:8192 --vram-reserve-mib 1536 --vram-reserve-later-mib 1792 --trim-stage-weights --kv-resident 32768 --adapt-async 1 --pipeline-windows 2 --resident-experts --vision --pcie-frac 0.2 --resident-budget-gib 36

Additional server configuration, applied separately from that launch string:

{
  "gpu": [1, 0],
  "gpu_order": "as_given",
  "gpu_roles": {"0": "main", "1": "helper"},
  "layer_split": "25",
  "parallel": 1,
  "env": {
    "STRATA_PARTIAL_PIN": "1",
    "STRATA_PARTIAL_PIN_GIB": "16"
  }
}

Both suites were run with:

python tools/strata_bench.py

The benchmark started the server in each run. Model loading is excluded. A warm-up chat, calibration requests and a 1K prompt precede the measured tests. Thinking is off and temperature is zero. Prompt throughput and decode throughput use engine timings; time to first token (TTFT) is measured by the HTTP client.

  • Short chat: three questions, three repetitions each, 100 generated tokens per request.
  • Fresh prompts: three requests each at 4,019 and 16,058 actual prompt tokens, 24 generated tokens each. All six requests in each run report zero reused tokens. Fresh prompts carry unique tags.
  • Agent session: three sessions, each with an initial turn and five follow-up turns, up to 64 generated tokens per turn. Follow-up statistics below cover 15 turns per build.

Results

Values are median [minimum, maximum]. Change is (patched / baseline - 1) * 100; negative TTFT changes are improvements.

Metric Samples per build Before (-3) After (-4) Change
Short-chat decode, tok/s 9 63.2 [57.1, 76.5] 71.2 [64.3, 82.6] +12.66%
Short-chat TTFT, s 9 0.405 [0.353, 0.449] 0.368 [0.338, 0.392] -9.14%
4K fresh-prompt throughput, tok/s 3 628.0 [623.4, 628.0] 646.1 [645.8, 650.0] +2.88%
4K fresh-prompt TTFT, s 3 6.438 [6.427, 6.480] 6.257 [6.236, 6.269] -2.81%
16K fresh-prompt throughput, tok/s 3 1232.2 [1230.8, 1232.3] 1264.5 [1264.5, 1270.6] +2.62%
16K fresh-prompt TTFT, s 3 13.083 [13.066, 13.097] 12.756 [12.689, 12.762] -2.50%
Agent follow-up decode, tok/s 15 68.8 [58.4, 101.0] 73.1 [55.9, 85.4] +6.25%
Agent follow-up TTFT, s 15 5.837 [5.092, 6.309] 5.633 [4.851, 6.098] -3.49%

All three patched fresh-prompt throughput measurements exceed all three baseline measurements at each prompt length. The chat and agent decode ranges overlap. Total suite wall time decreased from 196.968 s to 189.410 s.

Agent cache-hit median was 69.554% before and 69.489% after. Median reread tokens per session increased from 3 [2, 144] to 74 [3, 74]. Agent conversations continue from generated replies, so their later inputs and token counts differ between runs; those results are not identical-workload comparisons.

Patch tested

The local backport uses the final merged formula from commit 4c1004c in the MMQ launcher:

const int nwork = ntiles_dst * ((args.ncols_x + config.K_vram - 1) / config.K_vram);
const dim3 block_nums_stream_k(GGML_CUDA_CC_IS_NVIDIA(cc) && tiles_efficiency_percent >= 90 ? ntiles_dst : std::min(nsm, nwork), 1, 1);

This caps the Stream-K grid at the useful compute-iteration count while preserving the existing NVIDIA tile-efficiency heuristic. The change was applied to the llama.cpp source header and the current generated ggml-tq-overlay/mmq.cuh copy. The dependency revision was otherwise kept fixed; no full llama.cpp upgrade was involved.

Validation and limits

  • Passed: all 33 measured requests in each suite returned successfully; both failures arrays are empty. The recorded benchmark parameters and full machine/configuration metadata match between runs.
  • Failed: no request failures were recorded. The agent reread-token metric was worse after the patch, as shown above.
  • Not run: output-equivalence or model-quality checks, numerical kernel tests, compute-sanitizer checks, concurrency tests, the optional long-prompt test, other GPUs/backends, and repeated suites with the A/B order reversed.

This is one before/after pair of suites, with repetitions inside each suite. It is a speed report under the community benchmark guide, not a run of the draft standard protocol. Binary hashes, full source snapshots, model revisions/hashes and compiler provenance were not captured in these result files.

The patch changes MMQ launch scheduling. These results do not establish a direct speedup of Strata's native decode kernels, explain the larger chat-decode difference, or establish an improvement on other hardware. No kernel-level timing comparison is included.

Evidence

The accompanying mmq-stream-k-30553-evidence.zip contains the original README.md, results.json and engine-log-excerpt.txt from each run, plus the applied MMQ patch:

  • baseline-3/: 2026-10-22-community-rtx-2080-ti-plus-rtx-4070-super-qwen3-8-flash-next-iq3-s-3.
  • patched-4/: 2026-10-22-community-rtx-2080-ti-plus-rtx-4070-super-qwen3-8-flash-next-iq3-s-4.
  • llama-cpp-30553.patch: the local dependency-header diff.

The JSON files preserve every measured request, including generated-token counts and speculative-decoding counters. The log excerpts establish startup, GPU stage order and the primary expert-cache allocation; they are not full execution logs.

mmq-stream-k-30553-evidence.zip

Originally created by @Chenj168 on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3724 ## What I measured I compared two local runs on 2026-10-22, before and after backporting [llama.cpp #30553: cap MMQ Stream-K blocks at available work](https://github.com/ggml-org/llama.cpp/pull/30553). The only change between the two runs was this backport. The recorded benchmark parameters, machine metadata, server configuration and reported expert-cache capacities are identical. Fresh-prompt throughput increased by **2.88% at 4K** and **2.62% at 16K**. Short-chat decode throughput increased by **12.66%** in this comparison. I am sharing the results for consideration of a narrow backport to Strata's pinned MMQ dependency; the decode change needs further investigation before attributing it to this patch. Reproduction status: **Measured locally**. All numbers below come from the two existing benchmark reports. ## Hardware and software - GPUs: NVIDIA GeForce RTX 2080 Ti + NVIDIA GeForce RTX 4070 SUPER. The reports record 34,810 MiB aggregate VRAM; per-card capacities were not recorded. - CPU: Intel Core i5-14490F, 10 cores / 16 threads; RAM: 63.8 GiB. - OS: Windows 11, build 10.0.26300; NVIDIA driver: 617.42; Python: 3.12.9. - Both reports identify Strata/project and engine version as `0.1.47`, source commit `011c9e60`. These are local builds, not verified clean release builds. - llama.cpp dependency: `3cf03257f219afbe7334045ff7c6a06ac68c627d`. - GPU stage order: `[1, 0]`; layer split: `25`. The first stage is the RTX 4070 SUPER, followed by the RTX 2080 Ti. - Both runs report 11,703 total expert-cache slots, including 9,161 primary slots; total expert-cache allocation is 22,156 MiB. - CUDA toolkit version, background GPU load and power limits were not captured by the reports. ## Configuration and method Model: `Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S`, using the two GGUF shards named below. Context: 262,144 tokens; one parallel slot; INT8 KV with 32,768 resident tokens; `--prefill auto:8192`; MTP enabled with `--spec 4 --mtp rt`. The exact launch string recorded by both reports is: ```text strata.exe --pack iq3_s --native Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --ple-gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf --expert-profile expert-profile.bin --expert-cache auto --spec 4 --mtp rt --max-context 262144 --kv int8 --spec-min-p 0.5 --pool-workers 9 --prefill auto:8192 --vram-reserve-mib 1536 --vram-reserve-later-mib 1792 --trim-stage-weights --kv-resident 32768 --adapt-async 1 --pipeline-windows 2 --resident-experts --vision --pcie-frac 0.2 --resident-budget-gib 36 ``` Additional server configuration, applied separately from that launch string: ```json { "gpu": [1, 0], "gpu_order": "as_given", "gpu_roles": {"0": "main", "1": "helper"}, "layer_split": "25", "parallel": 1, "env": { "STRATA_PARTIAL_PIN": "1", "STRATA_PARTIAL_PIN_GIB": "16" } } ``` Both suites were run with: ```text python tools/strata_bench.py ``` The benchmark started the server in each run. Model loading is excluded. A warm-up chat, calibration requests and a 1K prompt precede the measured tests. Thinking is off and temperature is zero. Prompt throughput and decode throughput use engine timings; time to first token (TTFT) is measured by the HTTP client. - Short chat: three questions, three repetitions each, 100 generated tokens per request. - Fresh prompts: three requests each at 4,019 and 16,058 actual prompt tokens, 24 generated tokens each. All six requests in each run report zero reused tokens. Fresh prompts carry unique tags. - Agent session: three sessions, each with an initial turn and five follow-up turns, up to 64 generated tokens per turn. Follow-up statistics below cover 15 turns per build. ## Results Values are **median [minimum, maximum]**. Change is `(patched / baseline - 1) * 100`; negative TTFT changes are improvements. | Metric | Samples per build | Before (`-3`) | After (`-4`) | Change | | --- | ---: | ---: | ---: | ---: | | Short-chat decode, tok/s | 9 | 63.2 [57.1, 76.5] | 71.2 [64.3, 82.6] | +12.66% | | Short-chat TTFT, s | 9 | 0.405 [0.353, 0.449] | 0.368 [0.338, 0.392] | -9.14% | | 4K fresh-prompt throughput, tok/s | 3 | 628.0 [623.4, 628.0] | 646.1 [645.8, 650.0] | +2.88% | | 4K fresh-prompt TTFT, s | 3 | 6.438 [6.427, 6.480] | 6.257 [6.236, 6.269] | -2.81% | | 16K fresh-prompt throughput, tok/s | 3 | 1232.2 [1230.8, 1232.3] | 1264.5 [1264.5, 1270.6] | +2.62% | | 16K fresh-prompt TTFT, s | 3 | 13.083 [13.066, 13.097] | 12.756 [12.689, 12.762] | -2.50% | | Agent follow-up decode, tok/s | 15 | 68.8 [58.4, 101.0] | 73.1 [55.9, 85.4] | +6.25% | | Agent follow-up TTFT, s | 15 | 5.837 [5.092, 6.309] | 5.633 [4.851, 6.098] | -3.49% | All three patched fresh-prompt throughput measurements exceed all three baseline measurements at each prompt length. The chat and agent decode ranges overlap. Total suite wall time decreased from 196.968 s to 189.410 s. Agent cache-hit median was 69.554% before and 69.489% after. Median reread tokens per session increased from 3 [2, 144] to 74 [3, 74]. Agent conversations continue from generated replies, so their later inputs and token counts differ between runs; those results are not identical-workload comparisons. ## Patch tested The local backport uses the final merged formula from [commit `4c1004c`](https://github.com/ggml-org/llama.cpp/commit/4c1004c49221b07c3b8108977e3d1991fc9f45cc) in the MMQ launcher: ```cpp const int nwork = ntiles_dst * ((args.ncols_x + config.K_vram - 1) / config.K_vram); const dim3 block_nums_stream_k(GGML_CUDA_CC_IS_NVIDIA(cc) && tiles_efficiency_percent >= 90 ? ntiles_dst : std::min(nsm, nwork), 1, 1); ``` This caps the Stream-K grid at the useful compute-iteration count while preserving the existing NVIDIA tile-efficiency heuristic. The change was applied to the llama.cpp source header and the current generated `ggml-tq-overlay/mmq.cuh` copy. The dependency revision was otherwise kept fixed; no full llama.cpp upgrade was involved. ## Validation and limits - **Passed:** all 33 measured requests in each suite returned successfully; both `failures` arrays are empty. The recorded benchmark parameters and full machine/configuration metadata match between runs. - **Failed:** no request failures were recorded. The agent reread-token metric was worse after the patch, as shown above. - **Not run:** output-equivalence or model-quality checks, numerical kernel tests, compute-sanitizer checks, concurrency tests, the optional long-prompt test, other GPUs/backends, and repeated suites with the A/B order reversed. This is one before/after pair of suites, with repetitions inside each suite. It is a speed report under the community benchmark guide, not a run of the draft standard protocol. Binary hashes, full source snapshots, model revisions/hashes and compiler provenance were not captured in these result files. The patch changes MMQ launch scheduling. These results do not establish a direct speedup of Strata's native decode kernels, explain the larger chat-decode difference, or establish an improvement on other hardware. No kernel-level timing comparison is included. ## Evidence The accompanying `mmq-stream-k-30553-evidence.zip` contains the original `README.md`, `results.json` and `engine-log-excerpt.txt` from each run, plus the applied MMQ patch: - `baseline-3/`: `2026-10-22-community-rtx-2080-ti-plus-rtx-4070-super-qwen3-8-flash-next-iq3-s-3`. - `patched-4/`: `2026-10-22-community-rtx-2080-ti-plus-rtx-4070-super-qwen3-8-flash-next-iq3-s-4`. - `llama-cpp-30553.patch`: the local dependency-header diff. The JSON files preserve every measured request, including generated-token counts and speculative-decoding counters. The log excerpts establish startup, GPU stage order and the primary expert-cache allocation; they are not full execution logs. [mmq-stream-k-30553-evidence.zip](https://github.com/user-attachments/files/33822004/mmq-stream-k-30553-evidence.zip)
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:6495755237 --> @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#1556
No description provided.