Skip to content

[Spec][DSV4] perf: Compile draft hc_head during CUDA graph capture - #32220

Open
mattteochen wants to merge 36 commits into
sgl-project:mainfrom
mattteochen:dsv4/fused-hc-head-draft
Open

mattteochen wants to merge 36 commits into
sgl-project:mainfrom
mattteochen:dsv4/fused-hc-head-draft

Conversation

@mattteochen

@mattteochen mattteochen commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Motivation

The DSV4 MTP draft model's hc_head runs as a sequence of small eager kernels during CUDA graph capture, adding launch overhead in the low-token-count regime targeted by speculative decoding.

Modifications

Reuse the shared PyTorch hc_head_torch implementation and compile it during CUDA graph capture on CUDA. Preserve the eager path outside capture and for empty or non-CUDA inputs.


CI States

Latest PR Test (Base): ❌ Run #30799521326
Latest PR Test (Extra): ❌ Run #30799521089

github-actions Bot and others added 30 commits May 1, 2026 13:24
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@mattteochen mattteochen changed the title [DSV4] Compile draft hc_head during CUDA graph capture [Spec][DSV4] perf: Compile draft hc_head during CUDA graph capture Jul 23, 2026
@mattteochen
mattteochen marked this pull request as ready for review July 23, 2026 14:07
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@b8zhong b8zhong mentioned this pull request Aug 5, 2026
41 tasks
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.

2 participants