Text Generation
Transformers
Safetensors
English
Chinese
mimo_v2
agent
long-context
code
mxfp4
fp4-quantization
dflash
speculative-decoding
block-diffusion
conversational
custom_code
8-bit precision
fp8
Instructions to use XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash" # 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-V2.5-Pro-FP4-DFlash", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash
- SGLang
How to use XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash 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-V2.5-Pro-FP4-DFlash" \ --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-V2.5-Pro-FP4-DFlash", "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-V2.5-Pro-FP4-DFlash" \ --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-V2.5-Pro-FP4-DFlash", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash with Docker Model Runner:
docker model run hf.co/XiaomiMiMo/MiMo-V2.5-Pro-FP4-DFlash
Add files using upload-large-folder tool
Browse files- dflash/dflash_draft_model-00001-of-00002.safetensors +3 -0
- dflash/dflash_draft_model-00002-of-00002.safetensors +3 -0
- model_mtp.safetensors +3 -0
- model_pp0_ep0_shard0.safetensors +3 -0
- model_pp0_ep0_shard1.safetensors +3 -0
- model_pp0_ep10_shard0.safetensors +3 -0
- model_pp0_ep11_shard0.safetensors +3 -0
- model_pp0_ep12_shard0.safetensors +3 -0
- model_pp0_ep13_shard0.safetensors +3 -0
- model_pp0_ep14_shard0.safetensors +3 -0
- model_pp0_ep15_shard0.safetensors +3 -0
- model_pp0_ep16_shard0.safetensors +3 -0
- model_pp0_ep17_shard0.safetensors +3 -0
- model_pp0_ep18_shard0.safetensors +3 -0
- model_pp0_ep19_shard0.safetensors +3 -0
- model_pp0_ep1_shard0.safetensors +3 -0
- model_pp0_ep20_shard0.safetensors +3 -0
- model_pp0_ep21_shard0.safetensors +3 -0
- model_pp0_ep22_shard0.safetensors +3 -0
- model_pp0_ep23_shard0.safetensors +3 -0
- model_pp0_ep24_shard0.safetensors +3 -0
- model_pp0_ep25_shard0.safetensors +3 -0
- model_pp0_ep26_shard0.safetensors +3 -0
- model_pp0_ep27_shard0.safetensors +3 -0
- model_pp0_ep28_shard0.safetensors +3 -0
- model_pp0_ep29_shard0.safetensors +3 -0
- model_pp0_ep2_shard0.safetensors +3 -0
- model_pp0_ep30_shard0.safetensors +3 -0
- model_pp0_ep31_shard0.safetensors +3 -0
- model_pp0_ep3_shard0.safetensors +3 -0
- model_pp0_ep4_shard0.safetensors +3 -0
- model_pp0_ep5_shard0.safetensors +3 -0
- model_pp0_ep6_shard0.safetensors +3 -0
- model_pp0_ep7_shard0.safetensors +3 -0
- model_pp0_ep8_shard0.safetensors +3 -0
- model_pp0_ep9_shard0.safetensors +3 -0
dflash/dflash_draft_model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3ea9b33ef3514a22e842212d871896c0a806c95d968243600ee24fd4b471c71
|
| 3 |
+
size 4957800504
|
dflash/dflash_draft_model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2bd141e831616f25533a0439ff43740974de7cbb13dfcea3908e2e63a8f2442
|
| 3 |
+
size 578838928
|
model_mtp.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c191fd8a3156619b9f74554d85fb06fa1be012670f1e28db276ed6937511c6ed
|
| 3 |
+
size 2463641280
|
model_pp0_ep0_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6f1298ddbf7d9950c72cc71455dab012ca4418fc6954e97fb2e5fb0fa2fe915
|
| 3 |
+
size 19896046736
|
model_pp0_ep0_shard1.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:631580f203e39fe432c2ba82fdc1bac145580acafe6a10b4d3674e89e9f2386a
|
| 3 |
+
size 27180576120
|
model_pp0_ep10_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:860b7f8530c9c9cd4109ff2f1f852bd00be620b0d0d61bbee65dc3ed5bf00c67
|
| 3 |
+
size 16605357208
|
model_pp0_ep11_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49b5e898bf3a72151c2e4765adb662f88fbe4924046bdd0c55591249daa0c6a1
|
| 3 |
+
size 16605357208
|
model_pp0_ep12_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1b2e7d2c3706d06153cb3b6721f41a483b8318df3bf4b56da1ea22fb66e223e
|
| 3 |
+
size 16605357208
|
model_pp0_ep13_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d91c38798a483fa6af040ac452352d033b697208d09a4555b8cc119b22e9c26
|
| 3 |
+
size 16605357208
|
model_pp0_ep14_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8870af3a5e35ac0b8220128824b843ae15aaa180e7d9685899d60b4c7ce4ee29
|
| 3 |
+
size 16605357208
|
model_pp0_ep15_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce331ada3073377f1a1b204f75a802d9c344a514983c69e751211d574198bd42
|
| 3 |
+
size 16605357208
|
model_pp0_ep16_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ede1b654fbcff6dea7109973671dd542a6ce35010499f92ee0a7728efa5a659
|
| 3 |
+
size 16605357208
|
model_pp0_ep17_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d86f3ab6ba8606e0cf80546fb69128172cb7d3f4f982b3ca0631abe6f9186d2
|
| 3 |
+
size 16605357208
|
model_pp0_ep18_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9327d9890da95a1b2d4fa34a07c7925f4949c2cf5c0b3f1112065d5eb37f8ee9
|
| 3 |
+
size 16605357208
|
model_pp0_ep19_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4c351ae2466345cfda9355f1dfb102633d8db4f18f0ece902ad4485721f067a
|
| 3 |
+
size 16605357208
|
model_pp0_ep1_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8c74113657875affe4279c370b79fa728ca3ac6e6720bc34411fb35e70a03bf
|
| 3 |
+
size 16605352240
|
model_pp0_ep20_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e1c76b75af11d22cc817d971cc9aa3d1d0ffb0c549ac99915488f703aa72156
|
| 3 |
+
size 16605357208
|
model_pp0_ep21_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:650b1eb3fc6eba9e2d3b2bdc37730d39565b161a04dbe4c35f346db6af746937
|
| 3 |
+
size 16605357208
|
model_pp0_ep22_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f67ffee524e139dbb2ae099ceb1ace797d303c4d5576159889a85e73a61ffdf
|
| 3 |
+
size 16605357208
|
model_pp0_ep23_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:440e4e94cad77da772f8be7616d4b08ab224e0c4de8bab9bcc9b6aa09eae50f4
|
| 3 |
+
size 16605357208
|
model_pp0_ep24_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58cb40ca93cb28d87ca4453774c5dabd118ee7ba4f6b9c5c7085380c455c7b49
|
| 3 |
+
size 16605357208
|
model_pp0_ep25_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:279969d7079fe4ad3a0334952d5efeb3b89547ee0e01e85d88fee71f37fb3529
|
| 3 |
+
size 16605357208
|
model_pp0_ep26_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fedc10aa565bad120bfbf1d89114133970e5d78812eaafcc12393fc3a0b73b1d
|
| 3 |
+
size 16605357208
|
model_pp0_ep27_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ab2dbb2db7f115bc20129f2a16767c6a4ed30f5062276e3e0996775347da3c5
|
| 3 |
+
size 16605357208
|
model_pp0_ep28_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d337922d73be2499d74f1260620c10977f802bfa21f3f92cedf90e6c648e7ef
|
| 3 |
+
size 16605357208
|
model_pp0_ep29_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5857d14b5d469b3947d288728ad631bcd270eaf1a1bb087fc77f84db00fca22
|
| 3 |
+
size 16605357208
|
model_pp0_ep2_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27c40b8138c08bf1f1a49f366884489a37e0386ebec72300704d144e26a68c1c
|
| 3 |
+
size 16605352240
|
model_pp0_ep30_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8fb4880cf70d8117dbd99de610a6782a6b0d3d7665fd039ee601c302b670821
|
| 3 |
+
size 16605357208
|
model_pp0_ep31_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15ffb08b58b15ad99501647411080e59d08603639c097e03ef84009f6919c272
|
| 3 |
+
size 16605357208
|
model_pp0_ep3_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a261346cef536bcfba5c2940740eeff1495d8870e0392d7eda133735abe4ed74
|
| 3 |
+
size 16605352240
|
model_pp0_ep4_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c8f57572dffd482c3322177b46b7808dd4fbbe9ef9f152cf0a24e73c4fd0db6
|
| 3 |
+
size 16605352240
|
model_pp0_ep5_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d0b98b65705994ad51776b0ace0f35b12498a74a2a2fb2eef8dc1c9011485db
|
| 3 |
+
size 16605352240
|
model_pp0_ep6_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:956ba778d3fd69edd71bcfacd9f26fb1cd5cf3077a890e4db7e505770da5e9d1
|
| 3 |
+
size 16605352240
|
model_pp0_ep7_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d805e8bd34744a098e5186dbe837e9026b171ef6e8500d4ea828b2ebe1423a8d
|
| 3 |
+
size 16605352240
|
model_pp0_ep8_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22743fdd8297bb9cebb4abdd0a3d095f2d69308942edf22d093cb285c2634599
|
| 3 |
+
size 16605355552
|
model_pp0_ep9_shard0.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0058116f390f3dcb743d042657dc7cbfa9cde93721200764182bb58f440826db
|
| 3 |
+
size 16605357208
|