You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Does MLX_ENABLE_TF32 Actually Enable TF32 or Just Activate the NAX Matmul Path? #3235
In the source code of matmul, I noticed that MLX_ENABLE_TF32 must be enabled in order to use the NAX path for matrix multiplication. In the actual implementation, does it truly use TF32 precision, or does it simply switch to the NAX path, which brings a speed improvement?
So is this GEMM actually computed using FP32, or does it use TF32 like when the environment variable is enabled? I couldn’t find any references to TF32 in the Metal Shading Language 4 specification
Activity
angeloskath commentedon Mar 10, 2026
TF32 is only supported by NAX. So this flag enables TF32 if NAX is available for this operation.
XXXXRT666 commentedon Mar 10, 2026
So is this GEMM actually computed using FP32, or does it use TF32 like when the environment variable is enabled? I couldn’t find any references to TF32 in the Metal Shading Language 4 specification