Repository navigation
[DeepSeek V3] Defer moe finalize and fused it with main stream add - #27720
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
/tag-and-rerun-ci |
|
/rerun-test test/registered/models_e2e/test_deepseek_v3_fp4.py test/registered/spec/eagle/test_deepseek_v3_fp4_mtp_small.py test/registered/models_e2e/test_deepseek_v32_fp4_mtp_tp.py |
|
Results for 🚀 |
| # Sglang Cache Dir | ||
| SGLANG_CACHE_DIR = EnvStr(os.path.expanduser("~/.cache/sglang")) | ||
| SGLANG_FLASHINFER_AUTOTUNE_CACHE = EnvBool(True) | ||
| SGLANG_ENABLE_MOE_DEFERRED_FINALIZE = EnvBool(False) |
There was a problem hiding this comment.
Could we enable it by default, if it's always better
There was a problem hiding this comment.
Should always be better perf wise, small concern about correctness. See FIXME note
There was a problem hiding this comment.
Add a tracking issue for flashinfer
|
I will merge this first and try out the new |
The host launcher referenced tokenspeed:: for MAX_TOPK, BF16 and dispatchFinalize, but these are defined in namespace sglang. The stale tokenspeed:: prefix (leftover from the forked source) broke the JIT compile. Use sglang:: to match the definitions. Co-authored-by: Cursor <cursoragent@cursor.com>
|
/rerun-test test/registered/models_e2e/test_deepseek_v3_fp4.py test/registered/spec/eagle/test_deepseek_v3_fp4_mtp_small.py test/registered/models_e2e/test_deepseek_v32_fp4_mtp_tp.py |
|
Results for 🚀 |
|
/rerun-failed-ci |
…gl-project#27720) Co-authored-by: Qiaolin Yu <liin1211@outlook.com>
Motivation
Optimizing Kimi K2.5 NVFP4
Note: this PR does not change behaviour during prefill phase yet (still 2 individual kernel launches). More work needed to speedup there
Modifications
do_finalize = False) and fuse finalize with add kernelAccuracy Tests
Speed Tests and Profiling
Resulted in -2us per layer time. 1-2% TPOT speedup for 80k, ISL 220, with Kimi K2.5 NVFP4 on TP=8
Before

After

Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): 🚫 Run #27448273418
Latest PR Test (Extra): ❌ Run #27448273296