━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Unlocking the Reasoning Potential of Language Model
From Pretraining to Posttraining
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This model repository is licensed under the MIT License.
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 provides valuable insights to develop powerful reasoning LLM that benefit the larger community.
🌟 Highlights
Pre-Training: Base Model Born for Reasoning
We optimize 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 Infrastructures
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
×
faster training and 1.96
×
faster validation.
We support MTP in vLLM and enhance the robustness of the inference engine in RL system.
The evaluation 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
vLLM inference
[Recommended] We official support inference with MiMo-MTP using
our fork of vLLM
.
Example script
from vllm import LLM, SamplingParams
model_path = "/path/to/MiMo"
llm = LLM(
model=model_path,
trust_remote_code=True,
num_speculative_tokens=1,
disable_log_stats=False
)
sampling_params = SamplingParams(temperature=0.6)
conversation = [
{
"role": "system",
"content": ""
},
{
"role": "user",
"content": "Write an essay about the importance of higher education.",
},
]
outputs = llm.chat(conversation,
sampling_params=sampling_params,
use_tqdm=False)
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
print("=" * 80)
Or, you can register a vLLM loader for MiMo without loading MTP parameters.
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{xiaomi2025mimo,
title={MiMo: Unlocking the Reasoning Potential of Language Model – From Pretraining to Posttraining},
author={{Xiaomi LLM-Core Team}},
year={2025},
primaryClass={cs.CL},
url={https://github.com/XiaomiMiMo/MiMo},
}
VI. Contact
Please contact us at
[email protected]
or open an issue if you have any questions.
Runs of XiaomiMiMo MiMo-7B-RL-Zero on huggingface.co
355
Total runs
0
24-hour runs
0
3-day runs
16
7-day runs
137
30-day runs
More Information About MiMo-7B-RL-Zero huggingface.co Model
MiMo-7B-RL-Zero huggingface.co is an AI model on huggingface.co that provides MiMo-7B-RL-Zero's model effect (), which can be used instantly with this XiaomiMiMo MiMo-7B-RL-Zero model. huggingface.co supports a free trial of the MiMo-7B-RL-Zero model, and also provides paid use of the MiMo-7B-RL-Zero. Support call MiMo-7B-RL-Zero model through api, including Node.js, Python, http.
MiMo-7B-RL-Zero huggingface.co is an online trial and call api platform, which integrates MiMo-7B-RL-Zero's modeling effects, including api services, and provides a free online trial of MiMo-7B-RL-Zero, you can try MiMo-7B-RL-Zero online for free by clicking the link below.
XiaomiMiMo MiMo-7B-RL-Zero online free url in huggingface.co:
MiMo-7B-RL-Zero is an open source model from GitHub that offers a free installation service, and any user can find MiMo-7B-RL-Zero on GitHub to install. At the same time, huggingface.co provides the effect of MiMo-7B-RL-Zero install, users can directly use MiMo-7B-RL-Zero installed effect in huggingface.co for debugging and trial. It also supports api for free installation.