Skip to content

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
jundot:inkling2-minifrom
lucasgelfond:gelfond/inkling2-sconv-dtype
Closed

lucasgelfond wants to merge 2 commits into
jundot:inkling2-minifrom
lucasgelfond:gelfond/inkling2-sconv-dtype

Conversation

@lucasgelfond

Copy link
Copy Markdown

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

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
lucasgelfond force-pushed the gelfond/inkling2-sconv-dtype branch from b73926b to dbeae8a Compare November 21, 2026 20:25
@jundot

jundot commented Nov 22, 2026

Copy link
Copy Markdown
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.

@jundot jundot closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants