﻿# When does an SSD-backed KV cache help inference? The MiniMax M4 case

MiniMax describes using sparse attention and an SSD tier to relieve accelerator memory pressure. The practical test is whether cold reads stay off the token critical path.

Author: Retrivium editorial team
Updated: 2026-12-05
Canonical URL: https://retrivium.ai/journal/daily-20261205-compute-minimax-m4-ssd-kv-cold-tail/
Language: en

MiniMax’s M4 engineering disclosure describes a cache split between accelerator memory and SSDs. The company calls its sparse attention mechanism MSA2 and its storage companion MFlashKV. The report explains a model and serving system developed together. It does not establish that the same scheme can be attached to an arbitrary model or reproduce the reported behavior on a different storage path.

## What moves off the accelerator

MiniMax says that hot key-value blocks and indices remain in high-bandwidth memory during decoding. Most other blocks can live on SSDs. The attention design limits the blocks selected for a token, and the system attempts to fetch upcoming blocks while the preceding layer runs. The saving is useful only when prediction, reads and transfers complete before the dependent operation needs them.

## Measure the cold path explicitly

Collect both the typical and slowest inter-token times under a steady output budget. Separate requests with reused context from requests that force new reads. Add storage queue depth, bytes read per generated token and the fraction of reads that arrive in time. A favorable average can hide a slow tail when requests compete for disks or briefly need different parts of the cache.

## Compare like with like

For a controlled evaluation, fix the model, precision, prompt layout and output quality checks. Compare supported placements under the same concurrency. Test a workload with stable reuse and a separate one with less predictable access. Report which device, interface and software version were used. Vendor throughput comparisons across different models and chips describe those tested configurations rather than an isolated storage gain.

## Turn the benchmark into a capacity limit

Choose the highest concurrency that meets latency and output quality targets during the harder workload. Compare completed requests per accelerator-hour at that point, including recaptured or stalled sessions. If storage is the constraint, isolate cache traffic from other disk users and retest before expanding. In an API-only evaluation you can observe system behavior from the outside, but internal I/O attribution requires access to the serving stack.

## Practical takeaway

Use a time series from the test to tell re-use, fetches and decoding stalls apart. If the fastest reported configuration depends on an access pattern your users rarely produce, plan capacity around the slower case and document the assumptions.

## Primary sources

- [MiniMax model engineering disclosure](https://www.minimax.io/blog/m4)
- [MiniMax M4 technical report repository](https://github.com/MiniMax-AI/MiniMax-M4)

## Related reading

- [CHEOPS offloading study: NVMe traces reflect the framework, not just SSD speed](/journal/cheops-nvme-llm-offload-io-traces-emulated-storage/)
- [LMCache CPU offload: size a reusable KV working set](/journal/lmcache-cpu-kv-offload/)
