━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Unlocking the Reasoning Potential of Language Model
From Pretraining to Posttraining
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[2025.05.30] We scaled the SFT dataset from approximately 500K to 6M instances and continuously expanding the RL training window size from 32K to 48K, the performance of
MiMo-7B-RL-0530
on AIME24 can be continuously improved and eventually surpass that of DeepSeek R1 (79.8).
Benchmark
MiMo-7B-RL
MiMo-7B-RL-0530
Mathematics
MATH500
(Pass@1)
95.8
97.2
AIME 2024
(Pass@1)
68.2
80.1
AIME 2025
(Pass@1)
55.4
70.2
Code
LiveCodeBench v5
(Pass@1)
57.8
60.9
LiveCodeBench v6
(Pass@1)
49.3
52.2
STEM
GPQA-Diamond
(Pass@1)
54.4
60.6
General
Alignbench1.1
(Evaluated by GPT4.1)
6.9
7.4
I. Introduction
Currently, most successful RL works, including open-source research, rely on relatively large base models, e.g., 32B models, particularly for enhancing code reasoning capabilities. Moreover, it was widely considered that achieving uniform and simultaneous improvements in both mathematical and code capabilities within a small model is challenging. Nonetheless, we believe that the effectiveness of the RL trained reasoning model relies on the inherent reasoning potential of the base model. To fully unlock the reasoning potential of language models, efforts must focus not only on post-training but also on pre-training strategies tailored to reasoning.
In this work, we present MiMo-7B, a series of models trained from scratch and born for reasoning tasks. Our RL experiments from MiMo-7B-Base show that our model possesses extraordinary reasoning potential, even surpassing much larger 32B models. Additionally, we perform RL training on a cold-started SFT model, resulting in MiMo-7B-RL, which demonstrates superior performance on both mathematics and code reasoning tasks, matching the performance of OpenAI o1-mini.
We open-source MiMo-7B series, including checkpoints of the base model, SFT model, RL model trained from base model, and RL model trained from the SFT model.
We believe this report along with the models will provide valuable insights to develop powerful reasoning LLMs that benefit the larger community.
🌟 Highlights
Pre-Training: Base Model Born for Reasoning
We optimize the data preprocessing pipeline, enhancing text extraction toolkits and applying multi-dimensional data filtering to increase reasoning pattern density in pre-training data. We also employ multiple strategies to generate massive diverse synthetic reasoning data.
We adopt a three-stage data mixture strategy for pre-training. Overall, MiMo-7B-Base is pre-trained on approximately 25 trillion tokens.
We incorporate Multiple-Token Prediction as an additional training objective, which enhances model performance and accelerates inference.
Post-Training Recipe: Pioneering Reasoning Model
We curate 130K mathematics and code problems as RL training data, which can be verified by rule-based verifiers. Each problem undergoes careful cleaning and difficulty assessment to ensure quality. We employ only rule-based accuracy rewards to avoid potential reward hacking.
To mitigate the sparse reward issue for challenging code problems, we introduce a test difficulty driven code reward. By assigning fine-grained scores for test cases with varying difficulty levels, the policy can be more effectively optimized via dense reward signal.
We implement a data re-sampling strategy for easy problems to enhance rollout sampling efficiency and stabilize policy updates, particularly in the later phases of RL training.
RL Infrastructure
We develop a Seamless Rollout Engine to accelerate RL training and validation. Our design integrates continuous rollout, asynchronous reward computation, and early termination to minimize GPU idle time, achieving $2.29\times$ faster training and $1.96\times$ faster validation.
We support MTP in vLLM and enhance the robustness of the inference engine in the RL system.
II. Model Details
The MTP layers of MiMo-7B is tuned during pretraining and SFT and freezed during RL. With one MTP layer for speculative decoding, the acceptance rate is about 90%.
The evaluations are conducted with
temperature=0.6
.
AIME24 and AIME25 are with averaged score of 32 repetitions. LiveCodeBench v5 (20240801-20250201), LiveCodeBench v6 (20250201-20250501), GPQA-Diamond and IF-Eval are with averaged score of 8 repetitions. MATH500 and SuperGPQA are with a single run.
IV. Deployment
SGLang Inference
Thanks to the
MiMo model support
and
MTP
from the SGLang team, we supported MiMo in SGLang mainstream.
Example Script
# Install the latest SGlang from main branch
python3 -m uv pip install "sglang[all] @ git+https://github.com/sgl-project/sglang.git/@main#egg=sglang&subdirectory=python"# Launch SGLang Server
python3 -m sglang.launch_server --model-path XiaomiMiMo/MiMo-7B-RL --host 0.0.0.0 --trust-remote-code
# Launch MTP Server
python3 -m sglang.launch_server --model-path XiaomiMiMo/MiMo-7B-RL --trust-remote-code \
--speculative-algorithm EAGLE --speculative-num-steps 1 --speculative-eagle-topk 1 \
--speculative-num-draft-tokens 2 --mem-fraction 0.5
We recommend using
our fork of vLLM
which is developed based on vLLM 0.7.3.
We recommend using empty system prompt.
We haven't verified MiMo with other inference engines and welcome contributions based on the model definition in the Huggingface repo 💻.
V. Citation
@misc{coreteam2025mimounlockingreasoningpotential,
title={MiMo: Unlocking the Reasoning Potential of Language Model -- From Pretraining to Posttraining},
author={LLM-Core-Team Xiaomi},
year={2025},
eprint={2505.07608},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2505.07608},
}
VI. Contact
Please contact us at
[email protected]
or open an issue if you have any questions.
Runs of XiaomiMiMo MiMo-7B-RL-0530 on huggingface.co
186
Total runs
0
24-hour runs
-1
3-day runs
-23
7-day runs
-88
30-day runs
More Information About MiMo-7B-RL-0530 huggingface.co Model
MiMo-7B-RL-0530 huggingface.co is an AI model on huggingface.co that provides MiMo-7B-RL-0530's model effect (), which can be used instantly with this XiaomiMiMo MiMo-7B-RL-0530 model. huggingface.co supports a free trial of the MiMo-7B-RL-0530 model, and also provides paid use of the MiMo-7B-RL-0530. Support call MiMo-7B-RL-0530 model through api, including Node.js, Python, http.
MiMo-7B-RL-0530 huggingface.co is an online trial and call api platform, which integrates MiMo-7B-RL-0530's modeling effects, including api services, and provides a free online trial of MiMo-7B-RL-0530, you can try MiMo-7B-RL-0530 online for free by clicking the link below.
XiaomiMiMo MiMo-7B-RL-0530 online free url in huggingface.co:
MiMo-7B-RL-0530 is an open source model from GitHub that offers a free installation service, and any user can find MiMo-7B-RL-0530 on GitHub to install. At the same time, huggingface.co provides the effect of MiMo-7B-RL-0530 install, users can directly use MiMo-7B-RL-0530 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.