[GH-ISSUE #4813] [Benchmark] RTX 4090 48 GB + Qwen3.8-Flash-Next IQ3_S: sustained prefill 4.5-4.8k tok/s on a 3.5M-token code-review workload #2208

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

Originally created by @wangminle on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4813

What this is

A speed record from a real workload, not the standard benchmark protocol. I used one local server to statically
review a public Python/TypeScript repository in batches (330 files, 183,982 lines) and kept the engine timings of
every request. This issue reports only the prefill and decode numbers; the review's output is not part of it.

Same machine, same model and the same tuned launch as #4768. That issue measured long-output decode; this is a
prefill-dominated workload: 162 sequential requests, 3,508,409 prompt tokens and 125,127 generated tokens
in about 25 minutes of request time.

Hardware and software

  • GPU: NVIDIA GeForce RTX 4090, 49,140 MiB VRAM, driver 595.91.07, PCIe gen4 x16, power limit 450 W
  • CPU: AMD EPYC 9B14, 96 cores / 192 threads; RAM 282.8 GiB; NVMe storage
  • OS: Linux 7.0.0-42-generic; CUDA 13.2 (driver)
  • Strata Terminal 0.2.7 (build 0.1.53), engine 0.1.52, Linux CUDA build
  • Model: Qwen3.8-Flash-Next, ISTA-DASLab GSQ-RCO IQ3_S (two GGUF shards, 84.5 GB / 78 GiB on disk), MTP draft layer
  • Context 131,072 tokens, KV int8, kv-resident 32768, temperature 0 throughout

Command

The tuned launch from #4768 (text only):

strata launch --family qwen --model iq3_s --context 128k \
  --vision off --parallel 1 \
  --set spec=6 --set spec-min-p=0.70 --set pcie-frac=0.35 \
  --set vram-reserve-mib=1024 --set prefill=auto:32768 \
  --set STRATA_HC_Q8=1 \
  --yes --no-tui

The engine reported: parallel_slots=1, spec=6 / mtp_max=6, spec_min_p=0.70, pcie_frac=0.35,
prefill_cap=32768 (prompt chunk 32,768 tokens, a 384-slot ring), expert cache 20,930 slots / 39.88 GiB, and
"the prompt path borrows 6,910 CUDA0 cache slots (13.27 GiB)". No image was sent.

Workload and method

  • 162 sequential /v1/chat/completions requests through the OpenAI-compatible API, streaming:
    • fast pass: 130 requests, thinking off (reasoning_effort=none), max_tokens=2000;
    • deep pass: 32 requests, thinking on (reasoning_effort=high), max_tokens=3200, plus a concurrency/resource/path
      checklist in the prompt.
  • Batches are 1,200-line windows with 80-line overlap of the same repository. Prompt size 3.1K–24.3K tokens;
    22.5K on average over the fast pass's cold batches, 18.4K over the deep pass.
  • Speeds are the engine's own timings (prompt_per_second, predicted_per_second); draft acceptance is
    accepted/offered from timings; TTFT is measured by the client and includes queueing, prefill and first-token
    overhead.
  • Cold prefill only: 2 fast-pass requests reused 40,506 cached prompt tokens (conversation cache). The engine's
    prompt_per_second counts only uncached tokens, so those two are excluded from the prefill column (their TTFT,
    0.2–0.3 s, is still in the TTFT median).
  • Weighted decode = total generated tokens / sum of per-request decode time (generated / predicted_per_second).
  • One run per pass, no repeats.

Results

Pass Requests Prompt tokens Generated tokens Prefill, cold, weighted Prefill, median per request (p10–p90) Decode, weighted Decode, median TTFT, median MTP acceptance, median Summed request time
fast, no thinking 130 2,920,974 (2,880,454 cold) 29,561 4,773.2 tok/s 4,774.0 (4,517.0–4,922.4) 171.0 tok/s 167.4 tok/s (57 requests ≥100 tokens) 4.63 s 73.4 % (85 requests) 13.0 min
deep, thinking 32 587,435 95,566 4,485.1 tok/s 4,665.5 (3,913.8–4,805.2) 161.6 tok/s 161.8 tok/s (147.1–182.5) 4.07 s 80.3 % (32 requests) 12.0 min
both 162 3,508,409 125,127 — — — — — — ~25 min

Notes:

  • The fast pass's cold prefill per-request range is 3,158–5,029 tok/s; the minimum is a single 3,135-token batch, and
    its p10 is 4,517 tok/s.
  • The deep pass has one 2,921 tok/s outlier (an 8,136-token batch); without it the weighted figure would be
    4,519.0 tok/s. The weighted number is given as measured, outlier included.
  • TTFT p10–p90: fast 2.95–6.27 s, deep 2.64–4.77 s. Prompt sizes differ between batches, so TTFT tracks batch size
    more than anything else.
  • The deep pass generated 3.2× the fast pass's tokens in about the same request time (95,566 vs 29,561): thinking
    mode writes long outputs, and its 161.8 tok/s median is the sustained speed to use for that.
  • Two fast-pass requests hit the conversation cache (40,506 tokens reused). That is the only cache reuse in the
    whole run; everything else was cold.

What I take from it

  1. Cold prefill held 4.5–4.9K tok/s across 3K–24K-token prompts with the 32K prefill cap: p10–p90 4,517–4,922
    tok/s in the fast pass. I did not A/B the prefill cap, so this does not show that 32K is better than the default;
    it shows what the tuned launch sustained on this workload.
  2. Sustained real-workload speed is lower than the short-prompt benchmark numbers: ~4,700 tok/s prefill and
    ~165 tok/s decode, because each request carries its own TTFT and a 3–5 s wait before the first token.
  3. Decode did not follow MTP acceptance alone: the deep pass had higher acceptance (80.3 % vs 73.4 %) but a
    lower median decode speed (161.8 vs 167.4 tok/s). A plausible cause is the longer context re-read per verify step
    in thinking mode, but I did not isolate it.

Not tested / limits

  • Not the standard benchmark protocol: no fixed prompts, no twelve sanity checks, no repeats, no fresh-engine
    control, sequential requests only (no concurrency or batch throughput).
  • One machine, one model file, one day. Background load was not recorded; GPU clocks and power were not captured.
  • Release build 0.1.52, no source commit; not compared against another engine version.
  • The prompt mix is code and test files, not chat; the numbers should not be read as chat throughput.
  • Prompt sizes vary per request; the weighted figures dominate by token count, the medians treat each request alike.
  • The review's findings and the model's answer quality are outside this report.
  • Raw per-request records exist (162 rows: prompt tokens, cached tokens, generated tokens, TTFT, engine prefill and
    decode tok/s, draft acceptance). I can paste or attach them if they are useful.
Originally created by @wangminle on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4813 ## What this is A speed record from a real workload, not the standard benchmark protocol. I used one local server to statically review a public Python/TypeScript repository in batches (330 files, 183,982 lines) and kept the engine timings of every request. This issue reports only the prefill and decode numbers; the review's output is not part of it. Same machine, same model and the same tuned launch as #4768. That issue measured long-output decode; this is a prefill-dominated workload: 162 sequential requests, **3,508,409 prompt tokens** and **125,127 generated tokens** in about 25 minutes of request time. ## Hardware and software - GPU: NVIDIA GeForce RTX 4090, 49,140 MiB VRAM, driver 595.91.07, PCIe gen4 x16, power limit 450 W - CPU: AMD EPYC 9B14, 96 cores / 192 threads; RAM 282.8 GiB; NVMe storage - OS: Linux 7.0.0-42-generic; CUDA 13.2 (driver) - Strata Terminal 0.2.7 (build 0.1.53), engine 0.1.52, Linux CUDA build - Model: Qwen3.8-Flash-Next, ISTA-DASLab GSQ-RCO IQ3_S (two GGUF shards, 84.5 GB / 78 GiB on disk), MTP draft layer - Context 131,072 tokens, KV int8, `kv-resident 32768`, temperature 0 throughout ## Command The tuned launch from #4768 (text only): ```sh strata launch --family qwen --model iq3_s --context 128k \ --vision off --parallel 1 \ --set spec=6 --set spec-min-p=0.70 --set pcie-frac=0.35 \ --set vram-reserve-mib=1024 --set prefill=auto:32768 \ --set STRATA_HC_Q8=1 \ --yes --no-tui ``` The engine reported: `parallel_slots=1`, `spec=6` / `mtp_max=6`, `spec_min_p=0.70`, `pcie_frac=0.35`, `prefill_cap=32768` (prompt chunk 32,768 tokens, a 384-slot ring), expert cache 20,930 slots / 39.88 GiB, and "the prompt path borrows 6,910 CUDA0 cache slots (13.27 GiB)". No image was sent. ## Workload and method - 162 sequential `/v1/chat/completions` requests through the OpenAI-compatible API, streaming: - fast pass: 130 requests, thinking off (`reasoning_effort=none`), `max_tokens=2000`; - deep pass: 32 requests, thinking on (`reasoning_effort=high`), `max_tokens=3200`, plus a concurrency/resource/path checklist in the prompt. - Batches are 1,200-line windows with 80-line overlap of the same repository. Prompt size 3.1K–24.3K tokens; 22.5K on average over the fast pass's cold batches, 18.4K over the deep pass. - Speeds are the engine's own timings (`prompt_per_second`, `predicted_per_second`); draft acceptance is accepted/offered from `timings`; TTFT is measured by the client and includes queueing, prefill and first-token overhead. - **Cold prefill only**: 2 fast-pass requests reused 40,506 cached prompt tokens (conversation cache). The engine's `prompt_per_second` counts only uncached tokens, so those two are excluded from the prefill column (their TTFT, 0.2–0.3 s, is still in the TTFT median). - Weighted decode = total generated tokens / sum of per-request decode time (generated / `predicted_per_second`). - One run per pass, no repeats. ## Results | Pass | Requests | Prompt tokens | Generated tokens | Prefill, cold, weighted | Prefill, median per request (p10–p90) | Decode, weighted | Decode, median | TTFT, median | MTP acceptance, median | Summed request time | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | fast, no thinking | 130 | 2,920,974 (2,880,454 cold) | 29,561 | **4,773.2 tok/s** | 4,774.0 (4,517.0–4,922.4) | **171.0 tok/s** | 167.4 tok/s (57 requests ≥100 tokens) | 4.63 s | 73.4 % (85 requests) | 13.0 min | | deep, thinking | 32 | 587,435 | 95,566 | **4,485.1 tok/s** | 4,665.5 (3,913.8–4,805.2) | **161.6 tok/s** | 161.8 tok/s (147.1–182.5) | 4.07 s | 80.3 % (32 requests) | 12.0 min | | **both** | **162** | **3,508,409** | **125,127** | — | — | — | — | — | — | **~25 min** | Notes: - The fast pass's cold prefill per-request range is 3,158–5,029 tok/s; the minimum is a single 3,135-token batch, and its p10 is 4,517 tok/s. - The deep pass has one 2,921 tok/s outlier (an 8,136-token batch); without it the weighted figure would be 4,519.0 tok/s. The weighted number is given as measured, outlier included. - TTFT p10–p90: fast 2.95–6.27 s, deep 2.64–4.77 s. Prompt sizes differ between batches, so TTFT tracks batch size more than anything else. - The deep pass generated 3.2× the fast pass's tokens in about the same request time (95,566 vs 29,561): thinking mode writes long outputs, and its 161.8 tok/s median is the sustained speed to use for that. - Two fast-pass requests hit the conversation cache (40,506 tokens reused). That is the only cache reuse in the whole run; everything else was cold. ## What I take from it 1. **Cold prefill held 4.5–4.9K tok/s across 3K–24K-token prompts** with the 32K prefill cap: p10–p90 4,517–4,922 tok/s in the fast pass. I did not A/B the prefill cap, so this does not show that 32K is better than the default; it shows what the tuned launch sustained on this workload. 2. **Sustained real-workload speed is lower than the short-prompt benchmark numbers**: ~4,700 tok/s prefill and ~165 tok/s decode, because each request carries its own TTFT and a 3–5 s wait before the first token. 3. **Decode did not follow MTP acceptance alone**: the deep pass had higher acceptance (80.3 % vs 73.4 %) but a lower median decode speed (161.8 vs 167.4 tok/s). A plausible cause is the longer context re-read per verify step in thinking mode, but I did not isolate it. ## Not tested / limits - **Not the standard benchmark protocol**: no fixed prompts, no twelve sanity checks, no repeats, no fresh-engine control, sequential requests only (no concurrency or batch throughput). - One machine, one model file, one day. Background load was not recorded; GPU clocks and power were not captured. - Release build 0.1.52, no source commit; not compared against another engine version. - The prompt mix is code and test files, not chat; the numbers should not be read as chat throughput. - Prompt sizes vary per request; the weighted figures dominate by token count, the medians treat each request alike. - The review's findings and the model's answer quality are outside this report. - Raw per-request records exist (162 rows: prompt tokens, cached tokens, generated tokens, TTFT, engine prefill and decode tok/s, draft acceptance). I can paste or attach them if they are useful.
Author
Owner

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

Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.

The Strata project

<!-- gh-comment-id:6658957876 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report. The Strata project
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#2208
No description provided.