Archive of AI

Source Snapshot / 2025-06-16-minimax-m1-apache-2

GitHub - MiniMax-AI/MiniMax-M1: MiniMax-M1, the world's first open-weight, large-scale hybrid-attention reasoning model. · GitHub

Linked event: 2025-06-16 · MiniMax Open-Sources 1M-Context Reasoning Model M1 Under Apache 2.0 License

Publisher
GitHub
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 93e0d8848cb3ad85
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

Skip to content

Navigation Menu

Appearance settings

You signed in with another tab or window. Reload to refresh your session.

You signed out in another tab or window. Reload to refresh your session.

You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

Repository navigation

NotificationsYou must be signed in to change notification settings

Fork281 (281)

Star3.2k (3.2k)You must be signed in to star a repository

MiniMax-M1, the world's first open-weight, large-scale hybrid-attention reasoning model.

www.minimax.io/

large-language-modelsllmminimax-m1reasoning-models

Apache-2.0 license

Custom properties

Report repository

BranchesTags

Open more actions menu

Latest commit

Folders and files

Last commit message

Last commit date

.github/ISSUE_TEMPLATE

MiniMax_M1_tech_report.pdf

configuration_minimax_m1.py

model.safetensors.index.json

modeling_minimax_m1.py

tokenizer.json

tokenizer_config.json

View all files

Repository files navigation

1. Model Overview

We introduce MiniMax-M1, the world's first open-weight, large-scale hybrid-attention reasoning model.

MiniMax-M1 is powered by a hybrid Mixture-of-Experts (MoE) architecture combined with a lightning

attention mechanism. The model is developed based on our previous MiniMax-Text-01 model,

which contains a total of 456 billion parameters with 45.9 billion parameters activated

per token. Consistent with MiniMax-Text-01, the M1 model natively supports a context length of 1

million tokens, 8x the context size of DeepSeek R1. Furthermore, the lightning attention mechanism

in MiniMax-M1 enables efficient scaling of test-time compute – For example, compared to DeepSeek

R1, M1 consumes 25% of the FLOPs at a generation length of 100K tokens. These properties make M1

particularly suitable for complex tasks that require processing long inputs and thinking extensively.

MiniMax-M1 is trained using large-scale reinforcement learning (RL) on diverse problems ranging from

traditional mathematical reasoning to sandbox-based, real-world software engineering environments.

We develop an efficient RL scaling framework for M1 highlighting two perspectives: (1) We propose

CISPO, a novel algorithm that clips importance sampling weights instead of token updates, which

outperforms other competitive RL variants; (2) Our hybrid-attention design naturally enhances the

efficiency of RL, where we address unique challenges when scaling RL with the hybrid architecture. We

train two versions of MiniMax-M1 models with 40K and

80K thinking budgets respectively. Experiments

on standard benchmarks show that our models outperform other strong open-weight models such as

the original DeepSeek-R1 and Qwen3-235B, particularly on complex software engineering, tool using,

and long context tasks. With efficient scaling of test-time compute, MiniMax-M1 serves as a strong

foundation for next-generation language model agents to reason and tackle real-world challenges.

Benchmark performance comparison of leading commercial and open-weight models across competition-level mathematics, coding, software engineering, agentic tool use, and long-context understanding tasks. We use the MiniMax-M1-80k model here for MiniMax-M1.

2. Evaluation

Performance of MiniMax-M1 on core benchmarks.

MiniMax-M1-80K

MiniMax-M1-40K

Qwen3-235B-A22B

DeepSeek-R1-0528

Seed-Thinking-v1.5

Claude 4 Opus

Gemini 2.5 Pro (06-05)

Extended Thinking

General Coding

LiveCodeBench (24/8~25/5)

FullStackBench

Reasoning & Knowledge

GPQA Diamond

HLE (no tools)

Software Engineering

SWE-bench Verified

Long Context

OpenAI-MRCR (128k)

OpenAI-MRCR (1M)

LongBench-v2

Agentic Tool Use

TAU-bench (airline)

TAU-bench (retail)

General Assistant

MultiChallenge

* conducted on the text-only HLE subset.

Our models are evaluated with temperature=1.0, top_p=0.95.

SWE-bench methodology

We report results derived from the Agentless scaffold. Departing from the original pipeline, our methodology employs a two-stage localization process (without any embedding-based retrieval mechanisms): initial coarse-grained file localization followed by fine-grained localization to specific files and code elements. The values for our models are calculated on the subset of n=486 verified tasks which work on our infrastructure. The excluded 14 test cases that were incompatible with our internal infrastructure are:

"astropy__astropy-7606",

"astropy__astropy-8707",

"astropy__astropy-8872",

"django__django-10097",

"matplotlib__matplotlib-20488",

"psf__requests-2317",

"psf__requests-2931",

"psf__requests-5414",

"pylint-dev__pylint-6528",

"pylint-dev__pylint-7277",

"sphinx-doc__sphinx-10435",

"sphinx-doc__sphinx-7985",

"sphinx-doc__sphinx-8269",

"sphinx-doc__sphinx-8475"

TAU-bench methodology

We evaluate TAU-Bench with GPT-4.1 as user model and without any custom tools. The maximum number of interaction steps is 40.

Our general system prompt is:

- In each round, you need to carefully examine the tools provided to you to determine if any can be used.

- You must adhere to all of the policies. Pay attention to the details in the terms. Solutions for most situations can be found within these policies.

3. Recommendations for Minimax-M1 Model Usage

To achieve the best results with the Minimax-M1 model, we suggest focusing on two key points: Inference Parameters and the System Prompt.

3.1. Inference Parameters

Temperature: 1.0

This setting is optimal for encouraging creativity and diversity in the model's responses. It allows the model to explore a wider range of linguistic possibilities, preventing outputs that are too rigid or repetitive, while still maintaining strong logical coherence.

3.2. System Prompt

Tailoring your system prompt to the specific task is crucial for guiding the model effectively. Below are suggested settings for different scenarios.

A. General-Purpose Scenarios

For common tasks like summarization, translation, Q&A, or creative writing:

You are a helpful assistant.

B. Web Development Scenarios

For complex tasks like generating code for web pages:

You are a web development engineer, writing web pages according to the instructions below. You are a powerful code editing assistant capable of writing code and creating artifacts in conversations with users, or modifying and updating existing artifacts as requested by users.

All code is written in a single code block to form a complete code file for display, without separating HTML and JavaScript code. An artifact refers to a runnable complete code snippet, you prefer to integrate and output such complete runnable code rather than breaking it down into several code blocks. For certain types of code, they can render graphical interfaces in a UI window. After generation, please check the code execution again to ensure there are no errors in the output.

Output only the HTML, without any additional descriptive text. Make the UI looks modern and beautiful.

C. Mathematical Scenarios

When dealing with problems that require calculation or logical deduction:

Please reason step by step, and put your final answer within \boxed{}.

4. Deployment Guide

Download the model from HuggingFace repository:

MiniMax-M1-40k

MiniMax-M1-80k

For production deployment, we recommend using vLLM to serve MiniMax-M1. vLLM provides excellent performance for serving large language models with the following features:

🔥 Outstanding service throughout performance

⚡ Efficient and intelligent memory management

📦 Powerful batch request processing capability

⚙️ Deeply optimized underlying performance

For detailed vLLM deployment instructions, please refer to our vLLM Deployment Guide.

Alternatively, you can also deploy using Transformers directly. For detailed Transformers deployment instructions, you can see our MiniMax-M1 Transformers Deployment Guide.

5. Function Calling

[...内容已截断,完整版请查看原文或 Wayback 快照]