Skip to content

Cherry-pick Gated Residual optimizations to ​qwen4_v0.5.21​ - #84

Merged
sammysun0711 merged 4 commits into
apinge:qwen4_v0.5.21from
yicyang:qwen4_v0.5.21-qwen38-gated-residual
Nov 6, 2026
Merged

sammysun0711 merged 4 commits into
apinge:qwen4_v0.5.21from
yicyang:qwen4_v0.5.21-qwen38-gated-residual

Conversation

@yicyang

@yicyang yicyang commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Commits

Case GSM8K (base -> PR) TPOT ms (base -> PR) TTFT ms (base -> PR)
Qwen3.8-Flash-TP2-Base 98.5% -> 99.0% 18.93 -> 12.74 (1.49x) 1065 -> 965
Qwen3.8-Flash-TP2-MTP 98.5% -> 98.0% 10.34 -> 8.43 1148 -> 1037
Qwen3.5-35B-TP4-Base 97.5% -> 97.0% 4.03 -> 4.02 163 -> 168
Qwen3.5-35B-TP1-DFlash 97.0% -> 98.5% 2.84 -> 2.95 331 -> 333

Before:

image

After:

image

apinge and others added 2 commits November 3, 2026 10:03
Specialize the BF16 HC mix for the Qwen3.8 shape on 80-CU gfx942 devices using measured Triton launch parameters and smaller row tiles.

Expand correctness coverage to 1-16 rows, add graph replay regression tests, and register AMD kernel CI.

Validation: 39 tests passed on MI308X. Graph replay with all 100 checkpoint HC weight pairs improves by approximately 2.28x over the original persistent configuration.
(cherry picked from commit 8cf5501)
…TP4 (sgl-project#39)

* use pyhip gr read

* update comments

* add comments

* update scripts

* update setup

* update pyproject_other.toml

* Revert "update pyproject_other.toml"

This reverts commit 9b0cebd.

* update pyprojct

* update warmup

(cherry picked from commit 182e5e8)
Ported onto qwen4_v0.5.21 with only the changes the branch's lint requires:
- Test moved to test/registered/kernels/ops/gemm/ (kernel test layout) and
  registered with register_amd_ci (check-registered-tests).
- ruff-format applied to the added lines.
- Dropped hunks whose context no longer exists: scripts/ TP1 launcher
  (removed), compressed-tensors bump, and weight_updater call-site edits
  (call sites already pass the model).
@yicyang
yicyang marked this pull request as ready for review November 4, 2026 06:23
@apinge
apinge requested review from apinge and sammysun0711 November 5, 2026 00:07
root and others added 2 commits November 6, 2026 02:00
- hc_mix: use is_gfx942_supported() for the gfx942 check and keep the
  original num_ctas line.
- launch script: drop the duplicate AITER_MOE_PADDING_SIZE export; sgl-project#86
  exports it at its definition.
@sammysun0711
sammysun0711 merged commit 816ff20 into apinge:qwen4_v0.5.21 Nov 6, 2026
8 of 9 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