Skip to content

[FLYDSL] Optimize GDR decode kernel - #3135

Merged
xytpai merged 5 commits into
mainfrom
xyt/gdr_update
May 13, 2026
Merged

xytpai merged 5 commits into
mainfrom
xyt/gdr_update

Conversation

@xytpai

@xytpai xytpai commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

  • add a/b stride support
  • reorder ssm_state tensor initialization in kernel (~+10%)
  • update tuned configs

Results

Qwen3-Next-80B-A3B-Instruct-FP8 TP1 CC64

before

============ Serving Benchmark Result ============
Successful requests:                     640       
Failed requests:                         0         
Maximum request concurrency:             64        
Benchmark duration (s):                  214.48    
Total input tokens:                      5291983   
Total generated tokens:                  641529    
Request throughput (req/s):              2.98      
Output token throughput (tok/s):         2991.10   
Peak output token throughput (tok/s):    5184.00   
Peak concurrent requests:                71.00     
Total token throughput (tok/s):          27664.73  
---------------Time to First Token----------------
Mean TTFT (ms):                          645.40    
Median TTFT (ms):                        296.69    
P99 TTFT (ms):                           6822.79   
-----Time per Output Token (excl. 1st token)------
Mean TPOT (ms):                          19.96     
Median TPOT (ms):                        20.23     
P99 TPOT (ms):                           26.63     
---------------Inter-token Latency----------------
Mean ITL (ms):                           19.84     
Median ITL (ms):                         12.48     
P99 ITL (ms):                            181.58    
----------------End-to-end Latency----------------
Mean E2EL (ms):                          20505.57  
Median E2EL (ms):                        20441.54  
P99 E2EL (ms):                           37889.31  
==================================================

after

============ Serving Benchmark Result ============
Successful requests:                     640       
Failed requests:                         0         
Maximum request concurrency:             64        
Benchmark duration (s):                  210.18    
Total input tokens:                      5291983   
Total generated tokens:                  641529    
Request throughput (req/s):              3.04      
Output token throughput (tok/s):         3052.27   
Peak output token throughput (tok/s):    5244.00   
Peak concurrent requests:                71.00     
Total token throughput (tok/s):          28230.46  
---------------Time to First Token----------------
Mean TTFT (ms):                          661.36    
Median TTFT (ms):                        294.48    
P99 TTFT (ms):                           6615.41   
-----Time per Output Token (excl. 1st token)------
Mean TPOT (ms):                          19.53     
Median TPOT (ms):                        19.74     
P99 TPOT (ms):                           24.88     
---------------Inter-token Latency----------------
Mean ITL (ms):                           19.45     
Median ITL (ms):                         12.22     
P99 ITL (ms):                            178.31    
----------------End-to-end Latency----------------
Mean E2EL (ms):                          20098.61  
Median E2EL (ms):                        20026.14  
P99 E2EL (ms):                           37432.80  
==================================================

Qwen3-Next-80B-A3B-Instruct-FP8 TP4 CC64

before

============ Serving Benchmark Result ============
Successful requests:                     640       
Failed requests:                         0         
Maximum request concurrency:             64        
Benchmark duration (s):                  136.24    
Total input tokens:                      5291983   
Total generated tokens:                  641529    
Request throughput (req/s):              4.70      
Output token throughput (tok/s):         4708.83   
Peak output token throughput (tok/s):    7872.00   
Peak concurrent requests:                74.00     
Total token throughput (tok/s):          43552.01  
---------------Time to First Token----------------
Mean TTFT (ms):                          406.49    
Median TTFT (ms):                        195.60    
P99 TTFT (ms):                           3715.26   
-----Time per Output Token (excl. 1st token)------
Mean TPOT (ms):                          12.50     
Median TPOT (ms):                        12.68     
P99 TPOT (ms):                           15.28     
---------------Inter-token Latency----------------
Mean ITL (ms):                           12.46     
Median ITL (ms):                         8.27      
P99 ITL (ms):                            122.44    
----------------End-to-end Latency----------------
Mean E2EL (ms):                          12867.63  
Median E2EL (ms):                        12935.14  
P99 E2EL (ms):                           23693.25  
==================================================

after

============ Serving Benchmark Result ============
Successful requests:                     640       
Failed requests:                         0         
Maximum request concurrency:             64        
Benchmark duration (s):                  135.11    
Total input tokens:                      5291983   
Total generated tokens:                  641529    
Request throughput (req/s):              4.74      
Output token throughput (tok/s):         4748.10   
Peak output token throughput (tok/s):    7872.00   
Peak concurrent requests:                73.00     
Total token throughput (tok/s):          43915.23  
---------------Time to First Token----------------
Mean TTFT (ms):                          406.24    
Median TTFT (ms):                        196.19    
P99 TTFT (ms):                           3634.30   
-----Time per Output Token (excl. 1st token)------
Mean TPOT (ms):                          12.41     
Median TPOT (ms):                        12.58     
P99 TPOT (ms):                           15.43     
---------------Inter-token Latency----------------
Mean ITL (ms):                           12.37     
Median ITL (ms):                         8.20      
P99 ITL (ms):                            122.39    
----------------End-to-end Latency----------------
Mean E2EL (ms):                          12761.78  
Median E2EL (ms):                        12802.25  
P99 E2EL (ms):                           23315.74  
==================================================

@xytpai
xytpai requested a review from a team May 12, 2026 02:16
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 3135 --add-label <label>

@xytpai
xytpai requested a review from valarLip May 12, 2026 10:01
@xytpai
xytpai merged commit f0dfa74 into main May 13, 2026
30 checks passed
@xytpai
xytpai deleted the xyt/gdr_update branch May 13, 2026 14:51
IzacharyI added a commit to IzacharyI/aiter that referenced this pull request Aug 5, 2026
    Bring PR ROCm#3135's stride-aware VK kernel and tuned configs to FlyDSL 0.2.4, with parity and graph replay coverage.
yixionghuo pushed a commit that referenced this pull request Aug 10, 2026
* [FLYDSL] Fix GDR reductions for FlyDSL 0.2.4

    Use raw MLIR vector operations so Qwen3.5 GDR decode compiles with the upgraded FlyDSL API.

* [FLYDSL] Port optimized VK GDR decode to Qwen3.5_dev

    Bring PR #3135's stride-aware VK kernel and tuned configs to FlyDSL 0.2.4, with parity and graph replay coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants