MiniMaxAI/MiniMax-M3
1.6k205k
1---2pipeline_tag: image-text-to-text3license: other4license_name: minimax-community5license_link: LICENSE6library_name: transformers7tags:8 - multimodal9 - moe10 - agent11 - coding12 - video13---14 15<div align="center">16 <img width="60%" src="figures/logo.svg" alt="MiniMax">17</div>18<hr>19 20<p align="center">21 <a href="https://agent.minimax.io/" target="_blank"><img src="https://img.shields.io/badge/MiniMax%20Agent-FF6C37?logo=minimax&logoColor=white" alt="MiniMax Agent"></a>22 <a href="https://platform.minimax.io/docs/guides/text-generation" target="_blank"><img src="https://img.shields.io/badge/API-FF6C37?logo=minimax&logoColor=white" alt="API"></a>23 <a href="https://www.minimax.io" target="_blank"><img src="https://img.shields.io/badge/MiniMax%20Website-FF6C37?logo=minimax&logoColor=white" alt="MiniMax Website"></a>24 <br>25 <a href="https://modelscope.cn/organization/minimax" target="_blank" rel="noopener noreferrer"><img alt="ModelScope MiniMax AI" src="https://img.shields.io/badge/ModelScope-MiniMax%20AI-white?labelColor=%23EF3D5D"></a>26 <a href="https://platform.minimaxi.com/docs/faq/contact-us" target="_blank"><img src="https://img.shields.io/badge/WeChat-07C160?logo=wechat&logoColor=white" alt="WeChat"></a>27 <a href="https://discord.com/invite/DPC4AHFCBw" target="_blank"><img src="https://img.shields.io/badge/Discord-5865F2?logo=discord&logoColor=white" alt="Discord"></a>28 <a href="https://huggingface.co/MiniMaxAI" target="_blank"><img src="https://img.shields.io/badge/Hugging%20Face-FFD21E?logo=huggingface&logoColor=black" alt="Hugging Face"></a>29 <a href="https://github.com/MiniMax-AI/MiniMax-M3" target="_blank"><img src="https://img.shields.io/badge/GitHub-181717?logo=github&logoColor=white" alt="GitHub"></a>30 <a href="https://arxiv.org/abs/2606.13392" target="_blank"><img src="https://img.shields.io/badge/arXiv-2606.13392-B31B1B?logo=arxiv&logoColor=white" alt="arXiv Paper"></a>31 <a href="https://huggingface.co/MiniMaxAI/MiniMax-M3/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/LICENSE-4CAF50?logo=creativecommons&logoColor=white" alt="LICENSE"></a>32</p>33 34MiniMax-M3 is a native multimodal model with 1M context. It has ~428B parameters and ~23B activated parameters.35 36**Highlights:**37- **Native Multimodality:** M3 undergoes mixed-modality training from the very first step, enabling deeper semantic fusion across text, image, and video.38- **Context Scaling via Sparse Attention:** M3 introduces MiniMax Sparse Attention (MSA) to improve long context efficiency. M3 delivers 9ร prefill and 15ร decode speedups compared to M2 at 1M context, reducing per-token compute to 1/20.39- **Coding & Cowork Capability:** M3 achieves frontier-level performance across long-horizon agentic benchmarks, excelling in both coding and cowork.40 41 42<p align="center">43 <img width="100%" src="figures/benchmark.jpeg">44</p>45 46## MiniMax Sparse Attention (MSA)47 48M3 is powered by [**MiniMax Sparse Attention (MSA)**](https://github.com/MiniMax-AI/MSA), a high-performance sparse attention operator designed for million-token contexts. Compared with GQA, MSA dramatically reduces the attention compute and memory footprint while preserving model quality.49 50<p align="center">51 <img width="100%" src="figures/efficiency_gqa_vs_msa.png" alt="GQA vs MSA Efficiency Comparison">52</p>53 54> ๐ Read the technical report: [arXiv:2606.13392](https://arxiv.org/abs/2606.13392) ยท [Hugging Face Papers](https://huggingface.co/papers/2606.13392)55 56## How to Use57 58- [MiniMax Agent](https://agent.minimax.io/)59- [MiniMax API](https://platform.minimax.io/)60 61M3 supports three reasoning modes through the `thinking` parameter:62- **`enabled`** โ Reasoning is always enabled.63- **`adaptive`** โ M3 automatically determines when additional reasoning is beneficial.64- **`disabled`** โ Reasoning is disabled to minimize latency and maximize throughput.65 66## Local Deployment67 68Download the model:69 70```bash71hf download MiniMaxAI/MiniMax-M3 --local-dir MiniMax-M372```73 74We recommend the following inference frameworks to serve the model:75 76- [SGLang](https://docs.sglang.io/) - see [SGLang cookbook](https://docs.sglang.io/cookbook/autoregressive/MiniMax/MiniMax-M3).77 78- [vLLM](https://github.com/vllm-project/vllm) - see [vLLM recipes](https://recipes.vllm.ai/MiniMaxAI/MiniMax-M3).79 80- [Transformers](https://github.com/huggingface/transformers) - see [Transformers docs](https://huggingface.co/docs/transformers/model_doc/minimax_m3_vl).81 82- [KTransformers](https://github.com/kvcache-ai/ktransformers) - see [KTransformers MiniMax-M3 tutorial](https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/kt-kernel/MiniMax-M3-Tutorial.md).83 84- [unsloth](https://unsloth.ai) - see [tutorial](https://unsloth.ai/docs/models/minimax-m3)85 86- [ATOM](https://github.com/ROCm/ATOM/tree/main) - see [MiniMax-M3 MXFP4/MXFP8 Usage Guide](https://github.com/ROCm/ATOM/blob/main/recipes/MiniMax-M3.md)87 88### Inference Parameters89 90We recommend the following parameters for best performance: `temperature=1.0`, `top_p=0.95`.91 92## Contact Us93 94Contact us at [model@minimax.io](mailto:model@minimax.io).95 