Skip to content

[Qwen3.5 & Qwen3.8][Tokenizer] Enable fastokens to reduce host overhead during prefill - #116

Merged
sammysun0711 merged 5 commits into
apinge:qwen4_v0.5.21from
sammysun0711:fix/qwen35-fastokens-tokenizer-components
Dec 2, 2026
Merged

sammysun0711 merged 5 commits into
apinge:qwen4_v0.5.21from
sammysun0711:fix/qwen35-fastokens-tokenizer-components

Conversation

@sammysun0711

@sammysun0711 sammysun0711 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

This PR add --tokenizer-backend fastokens to preserve Qwen3.5's checkpoint tokenization and reduce TTFT CPU host overhead during long context prefill.

Root cause:

  • Previous branch: Qwen3.5_v0.5.9 pined Transformers 4.57.1, the HF tokenizer fast loader preserves tokenizer.json.
  • Current branch: qwen4_v0.5.21 pined transformers 5.12.1 uses Qwen2's default regex instead of Qwen3.5's combining-mark-aware regex. The transformers v5 refactor transformers#42563 rebuilds Qwen2 from vocabulary/merges without restoring the checkpoint pre-tokenizer, so current base. Fastokens wraps that altered backend, so the flag alone cannot recover the checkpoint IDs.

On 256 frozen prompt texts, this produces 4.33% more input tokens: 25,671.61 instead of 24,606.54 on average.

The fix restores the checkpoint components when Fastokens is selected. The default Hugging Face backend keeps its existing behavior.

Modifications

  • Enable four Qwen3.5 35B/397B evaluation launchers via --tokenizer-backend fastokens, covering target-only and DFlash configurations.
  • Qwen3.8 launchers continue to use HF tokenizer; local checks found no token-ID change for the current Qwen3.8 models.
  • Update python/pyproject_other.toml to install fastokens 0.3.6 through sglang installation

The diagram shows the Fastokens loading path. Token counts are means over the same 256 prompt texts.

flowchart LR
    CK["Checkpoint<br/>tokenizer.json"] --> HF["Transformers v5<br/>rebuilds Qwen2 components"]
    HF --> FK["Fastokens wraps<br/>the loaded backend"]
    FK --> OLD["Before: altered components<br/>25,671.61 input tokens"]
    FK --> FIX["This PR<br/>Compare component contents"]
    CK -. "checkpoint components" .-> FIX
    FIX --> NEW["Rebuild Fastokens if different<br/>Preserve live vocabulary and state<br/>24,606.54 checkpoint input tokens"]
Loading
  • Compare serialized component contents: both pre-tokenizers can be Sequence while containing different regexes.
  • Rebuild the Fastokens backend because its component setters are ignored, preserving the live vocabulary and processing state.
  • Apply the repair through both get_tokenizer and get_processor, using the same checkpoint revision for loading and repair.

Upstream #49393 adds an existing repair-helper call to processor loading for default huggingface tokenzier.

This PR implements fix for a separate fastokens-specific backend rebuild.

Speed Tests and Profiling

CPU encoding

Validation with Transformers 5.12.1, tokenizers 0.22.2, fastokens 0.3.6. Each round encodes the same 256 prompts with the server's batch-of-one call after warmup. Ranges cover fresh-process rounds; validation and hashing are outside the timed calls.

Configuration Mean CPU encoding, ms/prompt Mean input tokens Exact checkpoint-ID matches per round
HF tokenizer --tokenizer-backend huggingface 100.27–104.12 25,671.61 0/256
Fastokens tokenizer --tokenizer-backend fastokens 3.15–3.16 25,671.61 0/256
Fastokens + checkpoint-component repair 3.08–3.49 24,606.54 256/256

Fastokens supplies the encoding speedup; the component repair restores the checkpoint token IDs.

TTFT diagnostic

Setup: 8 × MI308X (80CU), PTL 256 frozen prompt texts, nominal 24K input, C1 / output 1, zero shared prefix, radix cache disabled, 32K chunk prefill budgets and stock GEMM/MoE dispatch. All three runs completed 256/256 requests with zero errors.

Model / TP HF baseline Requests compared HF mean TTFT, ms Fastokens mean TTFT, ms TTFT reduction
Qwen3.5 397B / TP8 Stock HF tokenizer 256 1102.50 964.30 138.20 ms / 12.54%
Qwen3.5 397B / TP8 HF tokenizer + checkpoint repair 256 1046.44 964.30 82.14 ms / 7.85%
Qwen3.5 35B / TP2 Stock HF tokenizer 256 757.89 712.58 45.31 ms / 5.98%
  • The 397B/TP8 Fastokens configuration includes checkpoint-component repair. Its 12.54% gain combines that correction with the backend switch; the 7.85% control holds input token IDs constant.
  • The 35B/TP2 Fastokens configuration includes checkpoint-component repair to reach 5.98% TTFT reduction.

Accuracy Tests

Add pytest to check CPU validation of token IDs and loader behavior:

python3 -m unittest discover \
  -s test/registered/unit/utils \
  -p 'test_hf_transformers*.py' -v
  • 77 tokenizer/loader tests passed. The new regression cases fail on the unmodified base. Tests use a local Qwen-style tokenizer.
  • 397B checkpoint: each loader matches checkpoint IDs for all 256 frozen prompts with Fastokens (512 checks). Both HF loaders retain the original stock IDs (512 controls).
Qwen3.8 compatibility and state-preservation checks

Both loaders were compared before/after on ten short probes and sixteen long texts per checkpoint:

Checkpoint group Fastokens behavior with the repair
Qwen3.8 Flash-Next PTPC-FP8, PLE-BF16 and PLE-FP8 IDs unchanged on all 26 texts per loader
Original Qwen3.8 Flash-Next, Flash-Next-FP8 and 27B Restores checkpoint IDs on all 26 texts per loader
Qwen3.5-35B-A3B-PTPC-FP8 Restores checkpoint IDs on all 26 texts per loader

The export groups have different tokenizer assets. Hugging Face IDs remain unchanged for every tested group. These checks establish tokenization behavior, not full model-accuracy equivalence.

Unit coverage includes runtime-added vocabulary, post-processing, padding/truncation, special-token mode, PCRE2 options, revision handling and repeated repair.

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

- Restore Qwen checkpoint components only for Fastokens.
- Preserve runtime state and checkpoint revisions in both loading paths.
- Require Fastokens >=0.3.6,<0.4.0; retain Hugging Face behavior.
- Validate 77 CPU tests, 512 canonical matches and 512 unchanged HF matches.

Signed-off-by: Xiake Sun <[email protected]>
@sammysun0711 sammysun0711 changed the title [Qwen3.5][Tokenizer] Enable fastokens for Qwen3.5 to reduce host overhead in prefill [Qwen3.5][Tokenizer] Enable fastokens to reduce host overhead during prefill Nov 25, 2026
- Enable Fastokens in the four Qwen3.5 launchers.
- Declare the Fastokens 0.3.6 pin once in HIP dependency metadata.
- Share the dependency across HIP variants, CI and the evaluation setup.
- Validate launch arguments, dependency resolution and 72 CI tests.

Signed-off-by: Xiake Sun <[email protected]>
@sammysun0711
sammysun0711 force-pushed the fix/qwen35-fastokens-tokenizer-components branch from c625fde to a51a4bf Compare November 25, 2026 07:35
@sammysun0711
sammysun0711 requested a balanced review from Copilot November 25, 2026 07:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The primary fastokens extra still allows versions missing required APIs, which can abort tokenizer or processor loading, and the test base-class change bypasses required CI retry handling.

2 open issues
What changed in this PR

This PR enables Fastokens for Qwen3.5 evaluation to reduce CPU tokenization overhead during prefill while preserving checkpoint token IDs.

Changes:

  • Rebuild Fastokens backends when checkpoint components differ, preserving live state and aligning tokenizer loading and repair revisions.
  • Enable Fastokens in four Qwen3.5 launchers and add the pinned dependency to alternate HIP installation extras.
  • Add local regression coverage and document the tokenizer choices; Qwen3.8 launchers remain unchanged.
File Description
test/​registered/​unit/​utils/​test_hf_transformers_fastokens.py Adds local fixtures and regression tests for checkpoint IDs, loaders, revisions, and state preservation.
python/​sglang/​srt/​utils/​hf_transformers/​tokenizer.py Adds Fastokens component rebuilding and revision alignment.
python/​sglang/​srt/​utils/​hf_transformers/​processor.py Applies Fastokens repair and forwards backend selection through tokenizer routes.
python/​pyproject_other.toml Pins Fastokens 0.3.6 and includes it in HIP extras.
evaluation/​Qwen4_Evaluation_Guide.md Documents Qwen3.5 and Qwen3.8 tokenizer choices.
evaluation/​launch_qwen3.5-397B-fp8_tp8_disable_prefix_cache.sh Enables Fastokens for 397B target-only evaluation.
evaluation/​launch_qwen3.5-397B-fp8_tp8_dflash_with_prefix_cache.sh Enables Fastokens for 397B DFlash evaluation.
evaluation/​launch_qwen3.5-35B-fp8_tp4_disable_prefix_cache.sh Enables Fastokens for 35B target-only evaluation.
evaluation/​launch_qwen3.5-35B-fp8_tp1_dflash_with_prefix_cache_mfs0.7_bs32.sh Enables Fastokens for 35B DFlash evaluation.

Review effort: Balanced

- Retain the registered test base and its CI retry handling.
- Call the base setUp method to preserve CI test logging.

Signed-off-by: Xiake Sun <[email protected]>
- Enable Fastokens in TP1, multi-TP and long-context launchers.
- Document CI and R-Fork inheritance from the shared launcher.

Validation: 72 CPU tests and 11 captured launch scenarios.
Signed-off-by: Xiake Sun <[email protected]>
@sammysun0711 sammysun0711 changed the title [Qwen3.5][Tokenizer] Enable fastokens to reduce host overhead during prefill [Qwen3.5 & Qwen3.8][Tokenizer] Enable fastokens to reduce host overhead during prefill Nov 26, 2026
Signed-off-by: Xiake Sun <[email protected]>
@sammysun0711

sammysun0711 commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator Author

[Performance Benchmark Run 1]: PR #116 MI308X CI comparison with PR #117

Performance deltas are 100 × (#116 / #117 − 1). GSM8K changes are in percentage points (pp).

Accuracy and latency

Case GSM8K (Δ pp) Mean TTFT, ms (Δ) Mean TPOT, ms (Δ) Mean end-to-end latency, ms/request (Δ)
Qwen3.8-Flash-TP2-Base 98.5% → 98.0% (−0.5 pp) 516.560 → 498.814 (−3.44%) 6.745 → 6.569 (−2.61%) 2,870.487 → 2,791.332 (−2.76%)
Qwen3.8-Flash-TP2-MTP 97.5% → 98.5% (+1.0 pp) 546.631 → 530.046 (−3.03%) 3.130 → 3.178 (+1.54%) 1,638.901 → 1,639.181 (+0.02%)
Qwen3.5-35B-TP2-Base 97.5% → 96.5% (−1.0 pp) 1,235.743 → 1,217.960 (−1.44%) 8.695 → 8.553 (−1.64%) 5,574.728 → 5,485.831 (−1.59%)
Qwen3.5-35B-TP1-DFlash 96.5% → 97.0% (+0.5 pp) 299.624 → 295.258 (−1.46%) 2.931 → 2.887 (−1.49%) 1,762.193 → 1,736.048 (−1.48%)
Qwen3.5-397B-TP8-Base 99.0% → 98.5% (−0.5 pp) 325.60 → 320.169 (−1.67%) 6.00 → 6.142 (+2.36%) 3,318.64 → 3,384.784 (+1.99%)
Qwen3.5-397B-TP8-DFlash 99.0% → 98.5% (−0.5 pp) 347.18 → 359.186 (+3.46%) 2.95 → 2.880 (−2.39%) 1,817.11 → 1,796.109 (−1.16%)

Throughput and speculative decoding

Case Output tokens/s (Δ) Requests/s (Δ) Mean speculative accept length (Δ)
Qwen3.8-Flash-TP2-Base 121.897 → 125.355 (+2.84%) 0.3483 → 0.3582 (+2.84%) —
Qwen3.8-Flash-TP2-MTP 213.464 → 213.423 (−0.02%) 0.6099 → 0.6098 (−0.02%) 3.519 → 3.522 (+0.07%)
Qwen3.5-35B-TP2-Base 717.063 → 728.680 (+1.62%) 1.4341 → 1.4574 (+1.62%) —
Qwen3.5-35B-TP1-DFlash 283.620 → 287.866 (+1.50%) 0.5672 → 0.5757 (+1.50%) 5.837 → 5.960 (+2.10%)
Qwen3.5-397B-TP8-Base 150.63 → 147.682 (−1.96%) 0.30 → 0.2954 —
Qwen3.5-397B-TP8-DFlash 275.01 → 278.251 (+1.18%) 0.55 → 0.5565 7.79 → 8.094 (+3.91%)

Takeway

  • Qwen3.8 Flash TP2. reduced mean TTFT by 17.75 ms (3.44%) for Base and by 16.58 ms (3.03%) for MTP. Base output throughput increased by 2.84%. For MTP, mean TPOT increased by 1.54% and mean end-to-end latency increased by 0.28 ms per request.
  • Qwen3.5-35B. Output throughput rose 1.62% for TP2 Base at concurrency 8 and 1.50% for TP1 DFlash at concurrency 1. GSM8K change 97.5% → 96.5% within run-to-run variance.
  • Qwen3.5-397B TP8. Base reduced mean TTFT by 1.67%, while output throughput fell by 1.96%. DFlash reduced mean TPOT by 2.39% and mean E2E latency by 1.16%, while mean TTFT increased by 3.46%, output throughput increased by 1.18%. GSM8K change 99.0% → 98.5% within run-to-run variance

@sammysun0711

sammysun0711 commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator Author

[Performance Benchmark Run 2] AITER #12 → AITER #12 + AITER #13 + AITER #14 on SGLang #PR116

All six cases passed on both builds. This Run2 mainly focus on BF16 PTPC and FP8 GEMM tuning for Qwen3.8 TP2 (not hit by CI con=1 settings), Qwen3.5 35B TP2 and Qwen3.5 397B TP8.

For Qwen3.5-35B TP2 Base at concurrency 8, adding AITER #13 and #14 reduced mean TTFT by 3.39%, mean TPOT by 9.15%, and mean end-to-end latency by 7.87%. QPS increase from 1.4574 to 1.5819 (+8.54%).
For Qwen3.5-397B TP8 Base at concurrency 1, the same changes reduced mean TTFT by 4.93%, mean TPOT by 5.51%, and mean end-to-end latency by 5.46%. QPS increase from 0.2954 to 0.3124 (+5.77%).

  • Before. SGLang PR [Qwen3.5 & Qwen3.8][Tokenizer] Enable fastokens to reduce host overhead during prefill #116 b3b8a26 with AITER 1cf6209 + AITER #12. The baseline is the after value from Run 1 for each case, including attempt 3 for 397B Base and attempt 5 for 397B DFlash. · Baseline CI summary
  • After. The same SGLang commit with AITER 7e9c20c. This revision adds two commits to the baseline, AITER #13 for the Qwen3.8 TP2 MTP BF16 router and AITER #14 for MI308X FP8 PTPC preshuffled GEMMs.
  • Matched workload. For each pair, the input and output token counts matched request by request. Qwen3.8 used 12,000/350 tokens and Qwen3.5 used 8,000/500. The 35B TP2 Base runs served 256 requests at concurrency 8. All other cases served 128 at concurrency 1. Each run used seed 42 and 10 warmups.

Values run from Run1 → Run2. Deltas use unrounded CI artifact values. Each GSM8K score covers 200 examples. Both AITER changes were present in every attempt 6 measurement, so the individual contribution of either PR cannot be inferred.

Accuracy and latency

Case GSM8K (Δ pp) Mean TTFT, ms (Δ) Mean TPOT, ms (Δ) Mean end-to-end latency, ms/request (Δ)
Qwen3.8-Flash-TP2-Base 98.0% → 98.5% (+0.5 pp) 498.814 → 501.288 (+0.50%) 6.569 → 6.725 (+2.38%) 2,791.332 → 2,848.348 (+2.04%)
Qwen3.8-Flash-TP2-MTP 98.5% → 98.5% (0.0 pp) 530.046 → 529.981 (−0.01%) 3.178 → 3.173 (−0.16%) 1,639.181 → 1,637.381 (−0.11%)
Qwen3.5-35B-TP2-Base 96.5% → 98.0% (+1.5 pp) 1,217.960 → 1,176.729 (−3.39%) 8.553 → 7.770 (−9.15%) 5,485.831 → 5,053.877 (−7.87%)
Qwen3.5-35B-TP1-DFlash 97.0% → 97.0% (0.0 pp) 295.258 → 295.555 (+0.10%) 2.887 → 2.857 (−1.04%) 1,736.048 → 1,721.404 (−0.84%)
Qwen3.5-397B-TP8-Base 98.5% → 99.0% (+0.5 pp) 320.169 → 304.381 (−4.93%) 6.142 → 5.803 (−5.51%) 3,384.784 → 3,200.129 (−5.46%)
Qwen3.5-397B-TP8-DFlash 98.5% → 99.5% (+1.0 pp) 359.186 → 340.515 (−5.20%) 2.880 → 2.872 (−0.27%) 1,796.109 → 1,773.551 (−1.26%)

Throughput and speculative decoding

Case Output tokens/s (Δ) Requests/s (Δ) Mean speculative accept length (Δ)
Qwen3.8-Flash-TP2-Base 125.355 → 122.841 (−2.01%) 0.3582 → 0.3510 (−2.01%) —
Qwen3.8-Flash-TP2-MTP 213.423 → 213.667 (+0.11%) 0.6098 → 0.6105 (+0.11%) 3.522 → 3.538 (+0.46%)
Qwen3.5-35B-TP2-Base 728.680 → 790.943 (+8.54%) 1.4574 → 1.5819 (+8.54%) —
Qwen3.5-35B-TP1-DFlash 287.866 → 290.322 (+0.85%) 0.5757 → 0.5806 (+0.85%) 5.960 → 6.000 (+0.67%)
Qwen3.5-397B-TP8-Base 147.682 → 156.207 (+5.77%) 0.2954 → 0.3124 (+5.77%) —
Qwen3.5-397B-TP8-DFlash 278.251 → 281.791 (+1.27%) 0.5565 → 0.5636 (+1.27%) 8.094 → 7.988 (−1.32%)

Takeway

  • Qwen3.8 Flash TP2. Base mean TPOT increased by 2.38%. For MTP at concurrency 1, mean TPOT fell by 0.16% and output throughput increased by 0.11%.
  • Qwen3.5-35B. TP2 Base reduced mean TTFT by 3.39% and mean TPOT by 9.15%. Output throughput rose from 728.680 to 790.943 tokens/s, and GSM8K rose from 193/200 to 196/200. TP1 DFlash reduced mean end-to-end latency by 0.84%.
  • Qwen3.5-397B TP8. Base reduced mean TTFT by 4.93%, mean TPOT by 5.51%, and mean end-to-end latency by 5.46%. Output throughput rose from 147.682 to 156.207 tokens/s (+5.77%). DFlash reduced mean TTFT by 5.20% and mean end-to-end latency by 1.26%.

@sammysun0711

sammysun0711 commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

[Performance Benchmark Run 3] AITER #12 + AITER #13 + AITER #14 → +AITER #12 + AITER #13 + AITER #14 + AITER #15 on SGLang #PR116

All six model cases passed on both builds. This benchmark run focus on valid AITER #15 that tunes Qwen3.5 TP2 MoE and optimizes FlyDSL intermediate quantization.
For Qwen3.5-35B TP2 Base at concurrency 8, adding AITER #15 reduced mean TTFT by 7.85%, mean TPOT by 6.33%, and mean end-to-end latency by 6.69%. QPS increase from 1.5819 to 1.6949 by 7.14%

  • Before, Run 2 after-values. Attempt 6 used SGLang PR #116 b3b8a26 and AITER 7e9c20c, which includes AITER #12, AITER #13 and AITER #14. Published Run 2 · Run 2 CI summary
  • After, latest CI. Attempt 7 used the same SGLang commit and AITER 6f3c963. The single additional AITER commit is AITER #15. Both attempts used Fastokens 0.3.6, pyhip 9208930, benchmark client fc6ddbb, and the same GPU assignments and checkpoint paths.
  • Serving workload. Qwen3.8 used 12,000 input and 350 output tokens per request. Qwen3.5 used 8,000 and 500. The 35B TP2 Base case ran 256 requests at concurrency 8. Each other case ran 128 at concurrency 1. Both attempts used random text, seed 42 and 10 warmups. Input and output token counts matched request by request.

Values run from Run 2 after (attempt 6) → Run 3 (attempt 7). Performance deltas are 100 × (attempt 7 / attempt 6 − 1), calculated from unrounded CI artifact values. GSM8K changes are in percentage points (pp). Each case has one measurement per build.

Accuracy and latency

Case GSM8K (Δ pp) Mean TTFT, ms (Δ) Mean TPOT, ms (Δ) Mean end-to-end latency, ms/request (Δ)
Qwen3.8-Flash-TP2-Base 98.5% → 99.0% (+0.5 pp) 501.288 → 498.783 (−0.50%) 6.725 → 6.599 (−1.88%) 2,848.348 → 2,801.738 (−1.64%)
Qwen3.8-Flash-TP2-MTP 98.5% → 97.0% (−1.5 pp) 529.981 → 530.131 (+0.03%) 3.173 → 3.200 (+0.84%) 1,637.381 → 1,646.884 (+0.58%)
Qwen3.5-35B-TP2-Base 98.0% → 97.0% (−1.0 pp) 1,176.729 → 1,084.369 (−7.85%) 7.770 → 7.278 (−6.33%) 5,053.877 → 4,716.021 (−6.69%)
Qwen3.5-35B-TP1-DFlash 97.0% → 97.0% (0.0 pp) 295.555 → 300.975 (+1.83%) 2.857 → 2.855 (−0.09%) 1,721.404 → 1,725.501 (+0.24%)
Qwen3.5-397B-TP8-Base 99.0% → 98.0% (−1.0 pp) 304.381 → 308.707 (+1.42%) 5.803 → 5.904 (+1.73%) 3,200.129 → 3,254.591 (+1.70%)
Qwen3.5-397B-TP8-DFlash 99.5% → 99.5% (0.0 pp) 340.515 → 351.269 (+3.16%) 2.872 → 2.985 (+3.93%) 1,773.551 → 1,840.678 (+3.78%)

Throughput and speculative decoding

Case Output tokens/s (Δ) Requests/s (Δ) Mean speculative accept length (Δ)
Qwen3.8-Flash-TP2-Base 122.841 → 124.889 (+1.67%) 0.3510 → 0.3568 (+1.67%) —
Qwen3.8-Flash-TP2-MTP 213.667 → 212.425 (−0.58%) 0.6105 → 0.6069 (−0.58%) 3.538 → 3.509 (−0.82%)
Qwen3.5-35B-TP2-Base 790.943 → 847.427 (+7.14%) 1.5819 → 1.6949 (+7.14%) —
Qwen3.5-35B-TP1-DFlash 290.322 → 289.614 (−0.24%) 0.5806 → 0.5792 (−0.24%) 6.000 → 6.177 (+2.94%)
Qwen3.5-397B-TP8-Base 156.207 → 153.588 (−1.68%) 0.3124 → 0.3072 (−1.68%) —
Qwen3.5-397B-TP8-DFlash 281.791 → 271.519 (−3.65%) 0.5636 → 0.5430 (−3.65%) 7.988 → 7.959 (−0.36%)

Findings

  • Qwen3.8 Flash TP2. Base reduced mean E2E latency by 1.64% and increased output throughput by 1.67%. MTP output throughput fell by 0.58%, and its GSM8K score fell from 197/200 to 194/200 (−1.5 pp) within run-to-run variation.
  • Qwen3.5-35B. TP2 Base at concurrency 8 reduced mean TTFT by 7.85%, mean TPOT by 6.33%, and mean E2E latency by 6.69%. Output throughput increased from 790.943 to 847.427 tokens/s, GSM8K 98.0% → 97.0% (−1.0 pp) within run-to-run variation.
  • Qwen3.5-397B TP8. Base output throughput fell by 1.68%. DFlash mean TTFT increased by 3.16%, mean TPOT by 3.93%, and mean end-to-end latency by 3.78%. DFlash output throughput fell from 281.791 to 271.519 tokens/s, all within run-to-run variation.

@sammysun0711
sammysun0711 merged commit 60895c3 into apinge:qwen4_v0.5.21 Dec 2, 2026
49 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants