# MiniMax-01: Lightning Attention and million-token context

> MiniMax-01 combines seven Lightning Attention layers with one softmax layer per eight, using a 456B-parameter MoE with 45.9B active parameters and reporting inference contexts up to four million tokens.

- URL: https://dmxsf.com/en/blog/minimax-01-scaling-foundation-models-with-lightning-attention/
- [DMXSF](https://dmxsf.com/en/about/)
- Published: 2025-01-24
- Updated: 2026-11-13
- Paper notes
- Paper: [MiniMax-01: Scaling Foundation Models with Lightning Attention](https://arxiv.org/abs/2501.08313) ( MiniMax, Aonian Li, Bangwei Gong, et al. · arXiv, 2025)

MiniMax-01 is a 2025 long-context MoE with 456B total and 45.9B active parameters per token. It does not remove softmax entirely: seven of every eight layers use Lightning Attention and one retains standard attention.

## How it works

Lightning Attention reduces growth in computation and cache cost, while the periodic global layer preserves precise content-based retrieval. Training extends context progressively to one million tokens, with inference evaluated up to four million.

## What the evidence shows

The report compares long-context quality and efficiency against several contemporary models. A million-token window establishes capacity, not reliable use of every position; total MoE parameters likewise do not equal per-token compute.

## A reproducible check

This snippet checks a public formula or configuration; it does not reproduce full training.

```python
total_b, active_b = 456, 45.9
layers, softmax_layers = 80, 10
print("active fraction =", active_b / total_b)
print("softmax fraction =", softmax_layers / layers)
for n in (128_000, 1_000_000, 4_000_000):
    print(n, "quadratic units relative to 128K =", (n/128_000)**2)
```

```text
active fraction = 0.1006578947368421
softmax fraction = 0.125
128000 quadratic units relative to 128K = 1.0
1000000 quadratic units relative to 128K = 61.03515625
4000000 quadratic units relative to 128K = 976.5625
```

The arithmetic is reproducible, but model quality still depends on the full experiments in the paper.

## Limitations and common misreadings

Linear-attention gains depend on kernels, memory access and sequence length. Long-document scores depend on task construction, and hybrid models should not be described as purely linear architectures.

## The key takeaway

The pragmatic lesson is hybridization: make most layers linear and retain occasional global softmax layers for exact retrieval.

## Further reading

- [MiniMax-01: Scaling Foundation Models with Lightning Attention](https://arxiv.org/abs/2501.08313)
- [StreamingLLM](https://dmxsf.com/en/blog/efficient-streaming-language-models-with-attention-sinks/)
- [KV cache](https://dmxsf.com/en/wiki/inference/kv-cache/)

## FAQ

### Does MiniMax-01 eliminate softmax?

No. It retains one softmax-attention layer in every eight.

### Does each token use 456B parameters?

No. The MoE has 456B total parameters but activates about 45.9B per token.

### What does four-million-token support mean?

It is a tested inference-window capacity, not a guarantee of lossless performance on every long-context task.
