Repository navigation
perf(cuda): a fused blend, warp sums, a kernel for short wide matrices, a shared value sum - #33
Merged
Merged
Conversation
… in one launch, for up to four queries
…atrices, attention's value sum shared by 16 threads; the unused blend kernel removed; review fixes
…test asserts what its comment says; review nits
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
Faster kernels for one token at a time on the GB10. Inkling 2 Mini, same prompt, same text: 24.5 to 28.1 tokens per second (40.8 to 35.5 ms a token). A sweep of eight positions: 82.2 to 74.7 ms.
Ops::mix_many: a blend for several queries followed by the normalization that always follows it. The default is the two steps one after another, so the CPU model is unchanged bit for bit.How it was checked
Review
Two rounds.
First round, changes requested on two points, both declined after checking:
Taken from the first round: the unused kernel removed; a test for the fallback path; refusal cases.
Second round (after the three kernel changes): approve with nits, all taken. The thread-sharing constant is checked at compile time, and a test now asserts what its comment says.