One-line summary
Long context is expensive not because the model reads more text but because every decoding step re-reads the past. MSA2 reduces how much is read; MFlashKV changes where from. Together they let a 2.74-trillion-parameter model decode at small-model throughput.
Start with the real problem: 2.74 trillion is not a memory question
The first instinct on hearing "2.74 trillion parameters" is to ask how many GPUs that takes. But M4 is a mixture of experts: only 66 billion parameters activate per token. At 4 bits, the full weights are roughly 1.37 TB, while the active slice is about 33 GB. The first number decides whether the model fits at all; the second decides cost per step.
What actually blocks serving is a third quantity: the KV cache. It is not trained; it grows at inference time with context length. A 1M-token request must keep K and V for every past token under standard attention, and ten concurrent requests keep ten copies. When memory runs out, concurrency drops, and the unit cost of long-context serving rises.
So "how does 2.74 trillion run" really asks: where does the 1M-token KV cache live, how fast is it read, and how many requests fit at once.
MSA2: cutting "how much to read" to 0.2%
The published mechanism: a 1M-token context is split into 65,536 KV blocks; each query selects 128 blocks to attend to. 128 / 65,536 is about 0.2%.
Do a rough calculation. Under standard attention a single 1M-token sequence reads the whole cache every decoding step; under MSA2 it reads 0.2%. In theory the read-bandwidth requirement drops by a factor of about 500. Practice is less linear: block selection itself costs compute (indexing or routing), selected blocks must be located, and block size versus memory access granularity adds overhead.
| Stage | Full attention | MSA2 (128 of 65,536 per query) |
|---|---|---|
| KV touched per decoding step | All history | About 0.2% |
| Selection cost | None | Index or routing on every step |
| Accuracy impact | Exact over full history | Depends on whether selection hits the relevant block |
| Failure mode | — | Key information sits in blocks that were not selected |
The last row matters most. The risk of sparse attention is not slow math but missing information. A similarity-based selector will fail on tasks where the answer is far away and lexically dissimilar to the query, such as cross-document references or retrieval in a large codebase. MiniMax has not published its selection algorithm or any recall metric, so this is the part outsiders cannot verify.
MFlashKV: changing where the read comes from
The second design is more aggressive: keep the KV cache on SSD and prefetch the blocks the next steps need into fast memory. MiniMax reports per-token KV capacity down 4x versus the prior generation, prefill throughput up 4.48x and decoding up 8x.
Separate the claims:
- 4x less KV capacity per token: less stored per token, which could come from architecture (fewer KV heads, smaller head dimension) or quantization; the vendor does not say which.
- 4.48x and 8x throughput: more tokens processed per second on the same hardware, conditional on prefetch keeping up.
- No HBM dependency: this is the conclusion, not the cause. The cause is moving the capacity constraint from HBM to SSD.
Change the medium and the performance curve changes. HBM delivers terabytes per second at hundred-nanosecond latency; NVMe SSDs deliver gigabytes per second at tens of microseconds, with random access worse. That is three to four orders of magnitude. The only way to close it is to know in advance what to read and to read large chunks at a time.
This is why MSA2 and MFlashKV are described together: MSA2 guarantees the next step needs only 128 blocks, which makes prefetching 128 blocks from SSD feasible. Without sparsification, every step reads all history and no SSD keeps up; without offload, sparsification saves capacity but not concurrency.
A model you can compute yourself
Take a 1M-token request with total KV size C at 4 bits. The server must hold N such requests, and HBM available for KV is H.
- Full attention, all in HBM: N ≤ H / C.
- Sparse plus SSD offload: HBM holds only hot blocks, cold blocks live on SSD, and N is bounded by SSD capacity and prefetch bandwidth rather than H.
That is where "one card serves more long requests" comes from, and it hits unit cost directly: card depreciation and power are fixed, so doubling concurrency nearly halves cost per million tokens.
The curve has an inflection point. Once concurrency is high enough that every step prefetches many cold blocks, random SSD reads become the new bottleneck, throughput stops scaling, and latency becomes jittery. The published 4.48x and 8x were measured under the vendor's conditions; mixed traffic and cache-hit variation will discount them.
Three costs of this path
First, tail latency grows. SSD P99 is far above HBM. A good average does not imply a good experience; latency-sensitive products such as voice and support must look at P95 and P99, not throughput.
Second, system complexity rises. Another storage tier means another scheduling layer: which blocks stay hot, which sink, how large the prefetch window is, what eviction policy to use. Tuned badly, the gains disappear. MInfer is named as the scheduler, but details are not public.
Third, reproducibility is limited. Weights are not open, and neither is the SSD offload and prefetch implementation, so outside teams can observe behaviour through the hosted API but cannot reproduce the gains on their own hardware.
Where it sits among three approaches
Between late November and early December 2026, three paths to cheaper long context appeared:
| Approach | Example | Method | Cost |
|---|---|---|---|
| Most layers do not store | Amazon Ergo (48 window layers at 512 plus 16 global) | Window layers have cache independent of length | Weaker exact recall |
| Compress history into fixed state | Ai2 Olmicro (80% Gated DeltaNet) | Cache independent of length | Lossy compression |
| Read less and change the storage tier | MiniMax M4 (MSA2 + MFlashKV) | 0.2% per step, cold blocks on SSD | Prefetch-dependent, tail latency rises |
The first two change the model; the third changes the serving system. Structural changes require retraining, while system changes affect only deployment, which is the appeal of M4's path for existing models and why the vendor stresses co-design rather than a new architecture.
Three practical checks
- Measure bytes read per step before discussing concurrency. Use published layer counts, KV heads and head dimension to compute per-sequence cache, multiply by target concurrency, and compare with HBM per node. If you cannot compute it, you do not have a cost model.
- Test tail latency separately. Run realistic mixed-length traffic and record P95 and P99 rather than average throughput. Once SSD is in the path, tail latency fails first.
- Treat weight availability as a first-class condition. Hosted throughput does not translate directly into self-hosted cost, and any "self-hosting is cheaper" estimate is incomplete until weights ship.
Boundaries
The 65,536-to-128 selection, the 4x KV reduction and 4.48x/8x throughput, 66 billion active parameters, 2.74 trillion total, 1M context, domestic accelerator support, and the pending weights come from MiniMax's announcement and coverage by IT Home, InfoQ and Wallstreetcn. The KV capacity, concurrency ceiling and cost arithmetic here are order-of-magnitude estimates from published numbers, excluding framework, block-table and fragmentation overhead; they are not vendor measurements. SSD and HBM bandwidth and latency ranges are general hardware figures that vary by medium and interface. Ergo and Olmicro configurations come from their own announcements and SGLang/vLLM notes. No local reproduction; not procurement advice.
Sources
- MiniMax: M4 announcement (MSA2 and MFlashKV)
- IT Home: M4 architecture, KV capacity and throughput
- InfoQ: the 128-of-65,536 selection in MiniMax's own words
- XenoSpectrum: putting KV cache on SSD, and its costs
- Amazon: Ergo's 3:1 hybrid attention (comparison)
- Blog Network: Olmicro recurrent layers and context memory (comparison)
