Skip to content

[Qwen3.8] Cherry-pick AITER FlyDSL GDN prefill to qwen4_v0.5.21 - #94

Merged
sammysun0711 merged 3 commits into
apinge:qwen4_v0.5.21from
yicyang:qwen4_v0.5.21-qwen38-aiter-gdn-prefill
Nov 10, 2026
Merged

sammysun0711 merged 3 commits into
apinge:qwen4_v0.5.21from
yicyang:qwen4_v0.5.21-qwen38-aiter-gdn-prefill

Conversation

@yicyang

@yicyang yicyang commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Cherry-pick of #62 (4d63dea) from qwen38-flash-next-amd-current-fix-install.

Local Qwen4 CI (MI308X, aiter qwen38-flash-next-dev 514c166e)

6/6 passed.

Case GSM8K (base -> PR) TTFT ms (base -> PR) TPOT ms (base -> PR)
Qwen3.8-Flash-TP2-Base 99.0% -> 98.5% 958 -> 925 (-3.5%) 12.68 -> 12.69
Qwen3.8-Flash-TP2-MTP 98.5% -> 98.0% 1037 -> 995 (-4.0%) 8.42 -> 8.45
Qwen3.5-35B-TP4-Base 98.0% -> 98.0% 168 -> 164 (-2.9%) 4.11 -> 3.96
Qwen3.5-35B-TP1-DFlash 98.5% -> 98.5% 335 -> 302 (-9.7%) 2.85 -> 2.89
Qwen3.5-397B-TP8-Base 98.0% -> 98.5% 344 -> 330 (-4.0%) 5.95 -> 6.00
Qwen3.5-397B-TP8-DFlash 99.0% -> 99.5% 361 -> 345 (-4.6%) 2.83 -> 2.89

Trace(Before)

image

Trac(After)

image

@apinge

apinge commented Nov 9, 2026

Copy link
Copy Markdown
Owner

It seems qwen3.5 model does not use the aiter gdn prefill, please add

 --linear-attn-backend triton
  --linear-attn-decode-backend triton
  --linear-attn-prefill-backend aiter
  --linear-attn-verify-backend triton

in all scripts qwen3.5 under evaluation

@yicyang
yicyang force-pushed the qwen4_v0.5.21-qwen38-aiter-gdn-prefill branch from 129993a to cb5b111 Compare November 9, 2026 03:40
@yicyang
yicyang marked this pull request as ready for review November 9, 2026 05:12
apinge and others added 2 commits November 9, 2026 05:14
…lash Next (sgl-project#62)

* Add opt-in AITER FlyDSL GDN prefill on gfx942

* Enable AITER GDN prefill autotuning in Qwen3.8 launcher

* Drop explicit GDN autotune environment switch

* regulate script

* expand support for bf16 mamba ssm dtype

* Update comments for clarity on data types

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* Add AITER ops availability check in gdn_aiter.py

Check for AITER ops availability and raise error if unavailable.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* update aiter_gdn_prefill_metadata init

* update aiter_gdn_prefill_supported

* Register AITER as a GDN prefill backend

Select the existing AITER pipeline with --linear-attn-prefill-backend aiter while keeping Triton decode and verify. Load optional operators in the backend constructor, preserve per-batch metadata and state-pool semantics, and remove the environment-driven Triton override.

Cover backend selection, fallback and metadata lifetime, FP32/BF16 prefill-to-decode and verify, and radix state restore. Update the Qwen3.8 launcher to use the public backend option.

* update script

* revert some update

* Update GDNAttnBackend kernel dispatcher configuration

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* Validate LINEAR_ATTN_PREFILL_BACKEND input

Add validation for LINEAR_ATTN_PREFILL_BACKEND variable.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* de-duplicate LINEAR_ATTN_PREFILL_BACKEND_CHOICES

* add log fallback

* update aiter_gdn_prefill_supported

---------

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
(cherry picked from commit 4d63dea)
Pass --linear-attn-prefill-backend aiter; decode and verify stay on Triton.
@sammysun0711
sammysun0711 merged commit 73016eb into apinge:qwen4_v0.5.21 Nov 10, 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