Repository navigation
Cleanup metal quantized kernel instantiations - #4741
Merged
Merged
Conversation
zcbenz
force-pushed
the
metal-kernel-dispatch
branch
from
October 23, 2026 01:09
61740f1 to
3ffd012
Compare
zcbenz
force-pushed
the
metal-kernel-dispatch
branch
from
October 26, 2026 09:38
3ffd012 to
5663920
Compare
1 task
Brooooooklyn
added a commit
to mlx-node/mlx
that referenced
this pull request
Nov 29, 2026
…ge N, and keep MLX_QMM_SPLITK_MIN_M Drop the affine qmv_wide nv6-8 hunk (now upstream via ml-explore#4728/ml-explore#4741), keep fp_quantized.metal qmv_wide nv6-8 instantiations, cap fp qmv_wide tiles at 8 when N >= 2048 (preserving upstream affine=8 for all N), and keep the MLX_QMM_SPLITK_MIN_M override in dispatch_qmm_t() and !transpose_.
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.
As we add more quantized kernels the
.metalfiles have become a mess that it is challenging to add a new instantiation, and quite hard to find out the exact combinations that kernel has been instantiated for. This PR reorganizes the.metalfiles to group the kernels separately, so it becomes much easier to add new kernels and new tunable parameters.The template parameters of some kernels are also reordered to keep a consistent style between all kernels and the instantiate macros.