Repository navigation
feat: Enable DFlash on tool calling for Nemotron - #1234
Open
julianxhokaxhiu wants to merge 1 commit into
Open
julianxhokaxhiu wants to merge 1 commit into
julianxhokaxhiu wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
This PR has been assisted using GPT-6.1 Sol
Motivation
Enable DFlash speculative decoding for Nemotron Bolt tool calls and JSON output. Previously, decoding constraints disabled speculation for the entire response.
Technical Details
min_tokens.Test Plan
I built a simple Python script that tested the bottleneck of DFlash, which was around tool calling. The measured output confirms that the LLM works as expected and the speedup gain can be proofed.
Test Result
Python Script:
BEFORE
prompt 0: starting warmup...
prompt 0: warmup finished in 102.98 s (677 tokens)
prompt 0: starting run 1/3...
prompt 0: run 1/3 finished in 141.09 s (677 tokens)
prompt 0: starting run 2/3...
prompt 0: run 2/3 finished in 141.03 s (677 tokens)
prompt 0: starting run 3/3...
prompt 0: run 3/3 finished in 55.05 s (677 tokens)
prompt 0: median decode 12.60 tok/s; median wall 141.03 s
prompt 1: starting warmup...
prompt 1: warmup finished in 88.66 s (1088 tokens)
prompt 1: starting run 1/3...
prompt 1: run 1/3 finished in 88.69 s (1088 tokens)
prompt 1: starting run 2/3...
prompt 1: run 2/3 finished in 88.77 s (1088 tokens)
prompt 1: starting run 3/3...
prompt 1: run 3/3 finished in 88.60 s (1088 tokens)
prompt 1: median decode 12.47 tok/s; median wall 88.69 s
prompt 2: starting warmup...
prompt 2: warmup finished in 85.36 s (1049 tokens)
prompt 2: starting run 1/3...
prompt 2: run 1/3 finished in 85.35 s (1049 tokens)
prompt 2: starting run 2/3...
prompt 2: run 2/3 finished in 85.20 s (1049 tokens)
prompt 2: starting run 3/3...
prompt 2: run 3/3 finished in 85.23 s (1049 tokens)
prompt 2: median decode 12.52 tok/s; median wall 85.23 s
AFTER
prompt 0: starting warmup...
prompt 0: warmup finished in 23.84 s (672 tokens)
prompt 0: starting run 1/3...
prompt 0: run 1/3 finished in 22.44 s (672 tokens)
prompt 0: starting run 2/3...
prompt 0: run 2/3 finished in 22.55 s (672 tokens)
prompt 0: starting run 3/3...
prompt 0: run 3/3 finished in 22.53 s (672 tokens)
prompt 0: median decode 31.46 tok/s; median wall 22.53 s
prompt 1: starting warmup...
prompt 1: warmup finished in 28.17 s (1084 tokens)
prompt 1: starting run 1/3...
prompt 1: run 1/3 finished in 27.85 s (1084 tokens)
prompt 1: starting run 2/3...
prompt 1: run 2/3 finished in 27.83 s (1084 tokens)
prompt 1: starting run 3/3...
prompt 1: run 3/3 finished in 27.84 s (1084 tokens)
prompt 1: median decode 40.73 tok/s; median wall 27.84 s
prompt 2: starting warmup...
prompt 2: warmup finished in 18.09 s (681 tokens)
prompt 2: starting run 1/3...
prompt 2: run 1/3 finished in 18.00 s (681 tokens)
prompt 2: starting run 2/3...
prompt 2: run 2/3 finished in 17.95 s (681 tokens)
prompt 2: starting run 3/3...
prompt 2: run 3/3 finished in 17.97 s (681 tokens)
prompt 2: median decode 40.51 tok/s; median wall 17.97 s
Submission Checklist