Repository navigation
Conversation
…ne pool call A round's shared pass called the n-gram gather once a stream, so the distinct-row read, the row dequantization and the parked readers all ran a stream at a time. cuda_ple_gather_lanes.zig hashes every lane's tokens from that lane's own history into one id array and fills the lanes' consecutive slices of the pass's buffers in one call, with the distinct-row gather and the pool shared by the pass. One lane, 65 lanes and more, and the switch off (TF_FLASHNEXT_GATHER_EARLY, default 0) all keep the per-stream call. Every row is the per-stream call's: the same ids from the same history, the same one-row dequantization, the same group sums, and each stream's history moved past its own rows. The tests compare both table formats against successive per-lane rows calls, byte for byte in out, xs and the history, with lanes whose ids collide across the call, and pin the lane bound.
Keep main e172bcc and its prompt/scratch changes while carrying the pooled gather. Retake the combined state source identity; leave the unchanged batch identity and checker intact.
Owner
Author
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.
CI for a landing train: #4009 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.