Repository navigation
Capture NemotronH hybrid prefill CUDA graphs on SM100 - #105
Merged
micahtyong merged 1 commit intoNov 23, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NemotronH only captured hybrid prefill CUDA graphs on SM120, so every prefill on B200 ran eagerly. Prefill for this hybrid model is bound by kernel launches on the host. This enables the same breakable prefill graph on SM100: Mamba layers still run eagerly between graph segments, and attention, MoE and LoRA run inside the graph.
The change is one condition in
NemotronHModel.supports_hybrid_prefill_graph:is_sm100_supported() or is_sm120()instead ofis_sm120().E2E
Nemotron 3.5 Lightning 30B-A3B BF16 on one B200, LoRA enabled (rank 32, virtual experts), NEXTN MTP with 3 steps, 64K context. Two eval batches sent through the Tinker SDK: IFEval (128 prompts, greedy, up to 1,280 tokens) and MATH-500 (64 problems x 4 samples, temperature 0.6, up to 2,048 tokens), at 32 and 64 sequences in flight. Wall time per batch, mean of two passes per run.
"Before" is
c4182b2and "after" is this branch, so the after image also carries #95, #99, #100 and #104. A clean A/B,c4182b2with only this property flipped, gave the same picture over two runs of each (four passes each): IFEval at 32 in flight 20.7 s -> 15.9 s, IFEval at 64 13.4 -> 12.9 s, MATH-500 at 32 53.1 -> 50.3 s, MATH-500 at 64 31.5 -> 30.1 s.cuda graph: True. Capturing the prefill graph takes 59 s and 3.4 GB at startup. Total startup time to a healthy server didn't change (163 s vs 169 s), because the verify graph capture no longer pays for the first Triton compiles.--cuda-graph-backend-prefill disabled. Recipes on B300, or for other NemotronH models, need a run of their own before they move to an image with this commit.🤖 Generated with Claude Code