Repository navigation
Conversation
DanielWit
marked this pull request as ready for review
November 25, 2026 15:03
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.
What this adds
--loop-cdenables loop-wise contrastive decoding for Inkling-2-Mini. It is off by default, and unsupported models are rejected when the flag is set. A model profile list keeps support explicit.expert − 0.2 × amateur) and a 0.1 expert plausibility threshold. The DFlash drafter and score-only requests are unchanged.This is an experimental adaptation of Yu et al.: the first-loop readout skips Inkling’s coda. It does not reproduce the coda-based adaptive method.
Apple Silicon results
The benchmark runner used for these measurements is available on the fork but is not part of this PR.
24 GB Mac,
unsloth/Inkling-2-Mini-GGUF:UD-IQ1_S, one lane, 2K context, DFlash enabled in both modes. Speed uses a separate fixed 256-token workload. Accuracy is greedy on the same 100 GSM8K questions, with a 768-token output cap.All nine improvements were baseline cap hits that became correct answers; the sole regression was a correct baseline answer that hit the cap with LoopCD. The baseline’s only uncapped parse failure was
400/11vs. the gold36, so fraction parsing does not explain the gain. This is evidence of more correct completions at the tested budget, not of better reasoning at a higher budget.Same questions at a 1,536-token cap (4K context)
The per-request logs show that both improvements were baseline cap hits with no visible answer: question
821finished correctly in 827 generated tokens with LoopCD, and505in 1,445. Neither mode solved255before the cap. Both completed93with the same unparsed fraction (400/11, gold36) and gave the same three parseable wrong answers. There were no regressions. The gap shrank from 8 to 2 points as the output budget increased; it still measures more correct completions within the budget, not corrected answers on problems both modes completed.Time to a correct answer
LoopCD decoded fewer tokens per second in the fixed-length speed test, but on some questions both modes got right, it generated substantially fewer tokens and finished sooner end to end:
61696206146These are examples, not an aggregate latency result. The two truncation rescues above are separate from this comparison.
Validation and open items
gguf-projectionfailures, which also reproduced onmain. Failure counts varied between runs; prefill failures were observed only onloop-cdin these runs, and the cause is unknown.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.