Instructions to use XiaomiMiMo/MiMo-7B-RL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use XiaomiMiMo/MiMo-7B-RL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="XiaomiMiMo/MiMo-7B-RL", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("XiaomiMiMo/MiMo-7B-RL", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use XiaomiMiMo/MiMo-7B-RL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "XiaomiMiMo/MiMo-7B-RL" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XiaomiMiMo/MiMo-7B-RL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/XiaomiMiMo/MiMo-7B-RL
- SGLang
How to use XiaomiMiMo/MiMo-7B-RL with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "XiaomiMiMo/MiMo-7B-RL" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XiaomiMiMo/MiMo-7B-RL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "XiaomiMiMo/MiMo-7B-RL" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XiaomiMiMo/MiMo-7B-RL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use XiaomiMiMo/MiMo-7B-RL with Docker Model Runner:
docker model run hf.co/XiaomiMiMo/MiMo-7B-RL
Update README.md
Browse files
README.md
CHANGED
|
@@ -28,7 +28,7 @@ library_name: transformers
|
|
| 28 |
|
|
| 29 |
<a href="https://www.modelscope.cn/organization/XiaomiMiMo" target="_blank">🤖️ ModelScope</a>
|
| 30 |
|
|
| 31 |
-
<a href="https://
|
| 32 |
|
|
| 33 |
<br/>
|
| 34 |
</div>
|
|
@@ -203,7 +203,7 @@ Example script
|
|
| 203 |
```py
|
| 204 |
from transformers import AutoModel, AutoModelForCausalLM, AutoTokenizer
|
| 205 |
|
| 206 |
-
model_id = "XiaomiMiMo/MiMo-7B-
|
| 207 |
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
|
| 208 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 209 |
inputs = tokenizer(["Today is"], return_tensors='pt')
|
|
@@ -221,16 +221,18 @@ print(tokenizer.decode(output.tolist()[0]))
|
|
| 221 |
## V. Citation
|
| 222 |
|
| 223 |
```bibtex
|
| 224 |
-
@misc{
|
| 225 |
-
title={MiMo: Unlocking the Reasoning Potential of Language Model
|
| 226 |
author={{Xiaomi LLM-Core Team}},
|
| 227 |
year={2025},
|
|
|
|
|
|
|
| 228 |
primaryClass={cs.CL},
|
| 229 |
-
url={https://
|
| 230 |
}
|
| 231 |
```
|
| 232 |
|
| 233 |
|
| 234 |
## VI. Contact
|
| 235 |
|
| 236 |
-
Please contact us at [mimo@xiaomi.com](mailto:mimo@xiaomi.com) or open an issue if you have any questions.
|
|
|
|
| 28 |
|
|
| 29 |
<a href="https://www.modelscope.cn/organization/XiaomiMiMo" target="_blank">🤖️ ModelScope</a>
|
| 30 |
|
|
| 31 |
+
<a href="https://arxiv.org/abs/2505.07608" target="_blank">📔 Technical Report</a>
|
| 32 |
|
|
| 33 |
<br/>
|
| 34 |
</div>
|
|
|
|
| 203 |
```py
|
| 204 |
from transformers import AutoModel, AutoModelForCausalLM, AutoTokenizer
|
| 205 |
|
| 206 |
+
model_id = "XiaomiMiMo/MiMo-7B-RL"
|
| 207 |
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
|
| 208 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 209 |
inputs = tokenizer(["Today is"], return_tensors='pt')
|
|
|
|
| 221 |
## V. Citation
|
| 222 |
|
| 223 |
```bibtex
|
| 224 |
+
@misc{coreteam2025mimounlockingreasoningpotential,
|
| 225 |
+
title={MiMo: Unlocking the Reasoning Potential of Language Model -- From Pretraining to Posttraining},
|
| 226 |
author={{Xiaomi LLM-Core Team}},
|
| 227 |
year={2025},
|
| 228 |
+
eprint={2505.07608},
|
| 229 |
+
archivePrefix={arXiv},
|
| 230 |
primaryClass={cs.CL},
|
| 231 |
+
url={https://arxiv.org/abs/2505.07608},
|
| 232 |
}
|
| 233 |
```
|
| 234 |
|
| 235 |
|
| 236 |
## VI. Contact
|
| 237 |
|
| 238 |
+
Please contact us at [mimo@xiaomi.com](mailto:mimo@xiaomi.com) or open an issue if you have any questions.
|