Repository navigation
Studio: draft 2 tokens by default for Inkling 2 DSpark - #18944
Merged
Merged
Conversation
On B200 the current DSpark pin decodes 1.15-1.28x vs no draft at depth 2 and 1.04-1.13x at depth 3, under both Studio sampling defaults, since the third draft token is rarely accepted. The launch and the fit pricing share the new default; a requested depth and other DSpark models keep 3.
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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
Studio's Auto speculative decoding launches DSpark with
--spec-draft-n-max 3when nothing names a depth. For Inkling 2 on the current prebuilt, depth 2 is faster under both sampling defaults Studio uses, because the third draft token is rarely accepted and costs a wider verify step.This makes Inkling 2 (both GGUF layouts,
inkling2andinkling2_loop) default to depth 2:_emit_dspark) and the fit pricing (the draft depth used to size verify rows) share one helper, so the reserve matches what the child runs.Measurements
Inkling-2-Mini, current DSpark pin (ggml-org#32218 at 0a9105de4 via unslothai/llama.cpp#405),
dspark-Inkling-2-Mini-Q8_0.ggufdrafter, llama-server, exclusive B200, greedy draft (server default), 4 prompts x 384 tokens, seed 1234. Each arm was run twice with the arms interleaved; the A/A spread is 3.4% or less in every arm.Studio's Inkling 2 defaults on main (
inference_defaults.json: temperature 1.0, top_p 1.0, top_k -1, min_p 0):Studio's generic defaults (temperature 0.6, top_p 0.95, top_k 20, min_p 0.01):
Greedy (temperature 0), UD-IQ1_S: depth 2 1.28x, depth 3 1.19x, depth 5 1.15x, depth 7 1.08x.
Tests
test_llama_cpp_mtp_detection.py: Inkling 2 in both layouts emits depth 2, a requested depth 3 stays 3, anddeepseek4and an unknown architecture stay at 3. The existing DeepSeek-V4-Flash case is unchanged.test_llama_cpp_mtp_detection.py,test_spec_sidecar_fit_reserve.py,test_mtp_drafter_companion.pyandtest_llama_cpp_placement.py: 1458 passed. The placement file has teardown errors on a host with visible GPUs (CUDA device queries in CPU tests); the same test IDs error on main, and CI runners have no GPU.Not covered