Repository navigation
Conversation
(cherry picked from commit cf06d04)
…d edge and a ragged tile (cherry picked from commit 0470bc0)
Each threadgroup is 64 x 128 with four warps of 32 x 64, so a loaded fragment feeds two MMAs where MLX's 32 x 32 warp feeds one, and the K chain is MLX's own: 32-deep steps in order. Every output's sums, the latent and the PNG are unchanged; test-h3-gemm holds the new kernel against MLX's bit for bit across a band edge, a whole band and a ragged tail. At 4,120 rows the shapes run at 116, 116, 108 and 103 TFLOP/s against MLX's 118, 118, 113 and 89, so the products sit at the tensor units' rate and only the 14,336-deep fc2 gains (0.3 s of the six steps); warm 2048 pictures took 12.12 and 12.13 s against 12.30 s. (cherry picked from commit 8d6f94c)
The image decoder decodes up to its scratch's 64 tiles a pass instead of 16, two passes at 2048x2048 instead of eight; every tile's pixels are independent, so the latent and PNG are byte-identical. (cherry picked from commit b6b209f, decoder part only)
…es it after gemm_nax's fragments
…FastH3's and the picture model's shapes
…ecoder tool reads
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: #4641 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.