Repository navigation
mlx-exact 0.11.0
Attention sinks (gpt-oss) now run on the exact offsets kernel for head dims 64/96/128, through MLX's own sink path (one sink logit per query head). Batched and served gpt-oss, i.e. batched sliding windows with sinks, is now bit-exact.
- Sink kernel: bit-identical to stock MLX's sink kernel for decode, short chunks and left-padded batches (head dims 64/128, bf16/fp16;
tests/test_sinks.py). - Batched gpt-oss: a tiny gpt-oss (sinks, sliding windows, mxfp4 experts) in a left-padded batch gives every step's logits bit-identical to each sequence alone (
tests/test_batch_sliding.py); with 0.10.0 it did not. - Gradients: the backward pass includes the sinks and gives them a gradient.
- 259 tests.
Install: pip install "mlx-exact[lm] @ git+https://github.com/audenvenn/mlx-exact@v0.11.0". Validated on Apple M6 with MLX 0.32.4 and mlx-lm 0.32.2.
Developed with AI assistance (Anthropic's Claude).