Repository navigation
Fix gated delta recurrence precision - #488
Merged
Merged
Conversation
Use Kahan compensated summation for the recurrent k-state dot product so low-order terms do not drift at long context. Disable Metal reassociation and contraction only inside this reduction to preserve the algorithm under default fast math. Add an adversarial BF16-path regression that checks the FP32 recurrent state against the correctly rounded reference result.
div0-space
pushed a commit
to LibraxisAI/mlx-swift-lm
that referenced
this pull request
Nov 29, 2026
div0-space
pushed a commit
to LibraxisAI/mlx-swift-lm
that referenced
this pull request
Nov 29, 2026
…stack (ml-explore#503) Joins feat/inkling2-mini-snapshot-213 at 3880551 (the top of the ml-explore#488 to ml-explore#503 stack) with fix/cbv2-exponential-sampling at 559306d (ml-explore#505). Both start from 8803d31. SamplerV2.swift is the only file that both change: ml-explore#490 adds greedyRows and pendingNoise(vocab:), and pendingNoise calls the exponentialNoise path that ml-explore#505 fixes. Git merges the file without conflicts; nothing was edited by hand. The tree is eedf778, the combined tree compared for provider 0.10.18. Claude Opus 5.5 drafted this merge and message for the author to read, review and own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
div0-space
pushed a commit
to LibraxisAI/mlx-swift-lm
that referenced
this pull request
Nov 29, 2026
…kling-sampler Land Inkling 2 Mini (ml-explore#488–ml-explore#503) and the CBv2 sampling fix (ml-explore#505) for provider 0.10.18
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.
Proposed changes
Use Kahan compensated summation for the recurrent k-state dot product so low-order terms do not drift at long context. Disable Metal reassociation and contraction only inside this reduction to preserve the algorithm under default fast math.
Add an adversarial BF16-path regression that checks the FP32 recurrent state against the correctly rounded reference result.
Checklist
Put an
xin the boxes that apply.pre-commit run --all-filesto format my code / installed pre-commit prior to committing changes