Parameters
428.0B total / 23.0B active
MoE: total / active
Architecture
Native multimodal mixture-of-experts (MoE) Transformer with grouped-query attention, MiniMax Sparse Attention (MSA) throughout, and a DSpark speculative-decoding draft head
Released
19.10.2026
License
MiniMax Community License
Input Modalities
Output Modalities
Context (native)
1,048,576 tokens
Context (extended)
1,048,576 tokens
About
MiniMax-M3.1-Flash (MiniMaxAI/MiniMax-M3.1-Flash) is a native multimodal mixture-of-experts (MoE) model for coding, agentic workflows, computer use, and cybersecurity, released by MiniMax on 2026-10-19 (official announcement blog "Redefining Agent Performance and Cost"; Space Bunny, which processed 200+ trillion tokens while operating anonymously, was an early version of M3.1-Flash). It retains the MiniMax-M3 backbone: ~428B total parameters with ~23B activated per token, a 60-layer transformer with 128 routed experts (4 active per token plus 1 shared expert, sigmoid routing scoring), grouped-query attention with 64 attention heads / 4 KV heads and head_dim 128, and a context window of up to 1,000,000 tokens (config max_position_embeddings = 1,048,576). The model accepts text, image, and video input and produces text; vision is handled by a CLIP-style vision tower (32 layers, patch size 14, 3D-RoPE, dynamic-resolution image tokens with patch-merge token compression).
M3.1-Flash makes three changes to M3's core architecture. First, MiniMax Sparse Attention (MSA) is used throughout the model - the config carries a sparse-attention overlay (sparse_topk_blocks=16, block_size=128, index heads=4) on the GQA baseline, and the first three full-attention layers of M3 are replaced with sparse attention layers. Second, quantization-aware training (QAT): the routed MoE experts and attention paths are quantized during training under an mxfp8 dynamic-activation scheme with NVFP4 pack-quantized expert weights, reducing memory footprint and improving serving efficiency (the HF Hub lists "220B params" for the shipped NVFP4-packed weights, while the config.json-derived full parameter count is ~428B as on M3). Third, DSpark speculative decoding replaces the earlier EAGLE-like MTP approach; the release ships the DSpark draft head for use with compatible serving implementations (SGLang, vLLM, TokenSpeed, Transformers integrations in progress; multi-chip deployment via FlagOS).
On agentic benchmarks the card reports 76.2 on BankerToolBench, 73.7% on DeepSWE v1.1, 61.7 on OSWorld 2.0, 29.6 on Agents' Last Exam, and 82.2 on CyberGym. Recommended sampling settings are temperature=1.0 and top_p=0.95; reasoning_effort is configurable in the chat template (low, medium, high, xhigh, max). MiniMax prices M3.1-Flash at $0.15 input / $0.60 output / $0.015 cached input per 1M tokens, claims online inference is nearly 3x faster with 170-200+ TPS output, and says overall agentic usage cost is 70% lower than its predecessor. Under the MiniMax Community License, weights are openly released on Hugging Face (34 third-party quantizations, 9 finetunes).
Training Data Quantization-aware training: routed MoE experts and attention paths are quantized during training (mxfp8 dynamic-activation activations, NVFP4 pack-quantized expert weights).
Benchmark Scores
| Benchmark | Score | Date |
|---|---|---|
|
CharXiv (RQ)
document_understanding
|
65.22%
|
19.10.2026 |
|
LOCA-Bench (256k)
long_context
|
100.00%
|
19.10.2026 |
|
Terminal-Bench 4.0
coding_agent
|
65.05%
|
19.10.2026 |
|
SWE Refactor Bench
coding_agent
|
61.17%
|
19.10.2026 |
|
Agents' Last Exam
general_agent
|
76.61%
|
19.10.2026 |
|
NL2Repo-Bench
coding_agent
|
73.74%
|
19.10.2026 |
|
Automation-Bench
general_agent
|
100.00%
|
19.10.2026 |
|
Terminal-Bench Science 0.1
coding_agent
|
3.30
|
19.10.2026 |
|
DeepSWE 1.1
coding_agent
|
95.22%
|
19.10.2026 |
|
OSWorld 2.0 (Binary)
general_agent
|
86.87%
|
19.10.2026 |
|
Humanity's Last Exam
stem_reasoning
|
78.22%
|
19.10.2026 |
|
Cybergym
general_agent
|
88.06%
|
19.10.2026 |
|
GDP.pdf
long_context
|
72.88%
|
19.10.2026 |
|
BankerToolBench
general_agent
|
68.33%
|
19.10.2026 |
|
BabyVision
vision_language
|
96.20%
|
19.10.2026 |
|
PostTrainBench
coding_agent
|
89.42%
|
19.10.2026 |
Hardware Requirements
Estimated VRAM per quantization at 4,096 tokens context — MoE: all experts must fit in VRAM, only 23.0B are active per token
| Quantization | Weights | KV Cache | Total VRAM |
|---|---|---|---|
| FP16 — 16-bit | 856.0 GB | 3.6 GB | 902.4 GB |
| INT8 — 8-bit | 428.0 GB | 1.8 GB | 451.2 GB |
| INT4 — 4-bit | 214.0 GB | 0.9 GB | 225.6 GB |
| FP4 — 4-bit | 214.0 GB | 0.9 GB | 225.6 GB |
Architecture
- Attention
- Grouped Query Attention (64:4)
- MoE
- 128 experts · top-4 per token
- Layers
- 60
- Hidden size
- 6144
- Context
- 1M tokens
- RoPE θ
- 10M
- Parameters
- 428000M
- Active params
- 23000M
Source: Hugging Face config.json · MiniMaxM3SparseForConditionalGeneration · model repo
Training Pipeline
-
1
other
Quantization-aware training (QAT)
The card states that the routed MoE experts and the attention paths are quantized during training (quantization-aware training). This is applied on top of M3's core mixture-of-experts architecture, which M3.1-Flash retains, and is listed alongside sparse attention and DSpark speculative decoding as one of the three main changes over MiniMax-M3. The stated objectives are reducing memory footprint and improving serving efficiency.
-
2
other
DSpark draft head (speculative decoding)
M3.1-Flash ships DSpark speculative decoding, which replaces the earlier EAGLE-like MTP approach used by its predecessor. The release includes the DSpark draft head for use with compatible serving implementations. The card lists this among the inference-efficiency improvements introduced in M3.1-Flash.
Training & Evaluation Datasets
| Name | Role | Size | Modalities | Collection |
|---|---|---|---|---|
| harborframework/terminal-bench | evaluation | — | — | |
| datacurve/deep-swe | evaluation | — | — | |
| agents-last-exam/agents-last-exam | evaluation | — | — | |
| harborframework/terminal-bench-science | evaluation | — | — | |
| cais/hle | evaluation | — | text | — |
Linked Resources
MiniMax Code
https://agent.minimax.io/
MiniMax API
https://platform.minimax.io/
MiniMax API Docs: Text Generation
https://platform.minimax.io/docs/guides/text-generation
MiniMax
https://www.minimax.io/
ModelScope MiniMax AI
https://modelscope.cn/organization/minimax
MiniMaxAI on Hugging Face
https://huggingface.co/MiniMaxAI
MiniMax-AI
https://github.com/MiniMax-AI
MiniMax Sparse Attention (arXiv)
https://arxiv.org/abs/2606.13392
MiniMax Sparse Attention (HF Paper Page)
https://huggingface.co/papers/2606.13392
MiniMax M3.1 Flash: Redefining Agent Performance and Cost
https://www.minimax.io/blog/minimax-m31f
SGLang
https://docs.sglang.io/
SGLang Cookbook: MiniMax-M3.1
https://docs.sglang.io/cookbook/autoregressive/MiniMax/MiniMax-M3.1
vllm-project/vllm
https://github.com/vllm-project/vllm
vLLM Recipe: MiniMax-M3.1-Flash
https://recipes.vllm.ai/MiniMaxAI/MiniMax-M3.1-Flash
lightseekorg/tokenspeed
https://github.com/lightseekorg/tokenspeed
TokenSpeed Recipe: MiniMax M3.1
https://lightseek.org/tokenspeed/recipes/models#minimax-m3-1
flagos-ai
https://github.com/flagos-ai
FlagOS Multi-Chip Support and Downloads
https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash/blob/main/docs/FlagOS-Multi-Chip-Support-and-Downloads.md
MiniMax-M3 Collection
https://huggingface.co/collections/MiniMaxAI/minimax-m3
No comments yet
Be the first to share your thoughts!