Repository navigation
Stop converting short-convolution state to float32 and back each step (from bf16) to improve decode / prefill performance - #4
Closed
lucasgelfond wants to merge 2 commits into
Conversation
Inkling 2 Mini is a looped Inkling 2 model. Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
…p (from bf16) - 2-3% faster prefill and 1.5-2% faster decode
lucasgelfond
force-pushed
the
gelfond/inkling2-sconv-dtype
branch
from
November 21, 2026 20:25
b73926b to
dbeae8a
Compare
jundot
force-pushed
the
inkling2-mini
branch
from
November 22, 2026 12:28
0c4c991 to
baf42e4
Compare
Owner
|
I checked this on Inkling 2 Mini. The logits are bit identical before and after, and the tests pass. Your branch still has the old Mini commit, and merging it would bring back an older test. So I added your commit on top of the current inkling2-mini with you as the author (e2b5bbd) and I'm closing this PR. Thanks for finding it. |
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.
Profiled the inkling-2-mini on my base M4 32GB MacBook Pro and found that we lost perf by converting in and out of float32 each time. This adds another +2-3% faster prefill and +1.5-2% decode