﻿# How can you check MLX's CUDA SDPA vector path at head dimension 256?

How can you check MLX's CUDA SDPA vector path at head dimension 256? Accept the kernel path at the target shape when numerical and dispatch checks both pass.

Author: Retrivium editorial team
Updated: 2026-11-29
Canonical URL: https://retrivium.ai/journal/research-20261129-mlx-cuda-sdpa-head-256/
Language: en

MLX v0.32.5 on November 25 lists vector SDPA kernels on CUDA at head dimension 256. The release concerns a selected execution path. Device, shape, precision and layout determine what is actually dispatched.

## What the source establishes

Head dimension is one input to dispatch. Check the model configuration and the runtime's observed path, including a control with another shape. Keep the output agreement test tied to the intended inputs. Use the exact prompt distribution, arithmetic mode and measurement boundary as the baseline.

## Design the comparison

Run the same attention operation on a fixed reference and the updated CUDA runtime. Include small and larger batches at dimension 256. Compare output error and warmed latency after verifying the kernel choice. Save repetitions, hardware and software identities along with summary values. Match output lengths and request counts across cases. Use a stable control, change the condition you are investigating and repeat both cases in the same environment. Keep the request or data distribution, software revisions and hardware allocation in the run record. Include the route you normally use and the case in which the expected prerequisite is absent. This helps localize a discrepancy when the test produces a different result.

## Read the results

Inspect precision, workload size and any fallback when two reported timings diverge. A shape that runs successfully can still dispatch a general implementation rather than the vector kernel. Compare the weak and strong slices before relying on an average. Record whether a result came from a microbenchmark or the service.

## Decide what goes into service

Accept the kernel path at the target shape when numerical and dispatch checks both pass. Report workload-specific time rather than a general CUDA speedup. State the acceptance threshold before choosing the implementation. Add the tested boundary and conditions for revisiting it to the release record. If an observed behavior differs from expectations, narrow the scope of the rollout while collecting evidence for that case. Keep the prior artifact or configuration available so the comparison remains repeatable.

## Sources

- [Primary source · mlx #4698](https://github.com/ml-explore/mlx/pull/4698)
- [Primary source · mlx v0.32.5](https://github.com/ml-explore/mlx/releases/tag/v0.32.5)

## Related reading

- [What must a GGUF conversion preserve for scaled FP8 and NVFP4 weights?](/journal/daily-20261128-compute-ggml-fp8-nvfp4-scale-sidecars/)
- [Why should SYCL Q6_K prefill be checked before and after weight reordering?](/journal/daily-20261127-compute-llama-sycl-q6k-reordered-precision/)
