Instructions to use inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF
Run Hermes
hermes
- OpenClaw new
How to use inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- MLX LM
How to use inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "inferencerlabs/MiMo-V2.5-MLX-Q5.8-INF", "messages": [ {"role": "user", "content": "Hello"} ] }'
File size: 2,623 Bytes
965f023 18a423b 965f023 89e398a 965f023 89e398a 965f023 cd10729 965f023 ead9908 965f023 987b305 965f023 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | ---
language: en
library_name: mlx
tags:
- quantized
- mlx
base_model: XiaomiMiMo/MiMo-V2.5
base_model_relation: quantized
pipeline_tag: text-generation
---
# NOTICE
<marquee direction="left" width="400">
<h1 style="font-size: 60px; color: red;">CURRENTLY UPLOADING... </h1>
</marquee>
**See MiMo-V2.5 in action - [demonstration videos](https://youtube.com/xcreate)**
#### Tested on a M3 Ultra 512GB RAM using [Inferencer app v1.11.1](https://inferencer.com)
- Text inference: ~32.8 tokens/s @ 1000 tokens (debug build)
- Omnimodal inference: Not included in this language model (LM) only version
- Memory usage: ~209 GiB

<p style="margin-bottom:0px;">
<strong>Q5.8-INF uses the data-agnostic INF method tuned to yield maximum general accuracy within a 256 GiB memory budget</strong>
The perplexity results below show the loss relative to the Q9 edition on our coding test.
</p>
<table style="border-collapse: collapse; text-align:center; margin-top:10px; margin-bottom:0px;">
<thead>
<tr><th>Quantization (bpw)</th><th>Perplexity</th><th>Token Accuracy</th><th>Missed Divergence</th><th>Size</th></tr></tr>
</thead>
<tbody>
<tr><td><strong>Q5.5</strong></td><td>1.07812</td><td>98.25%</td><td>11.45%</td><td>212.35 GB</td></tr>
<tr><td><strong>Q5.8-INF</strong></td><td>1.07031</td><td>99.30%</td><td>10.81%</td><td>225.03 GB</td></tr>
<tr><td><strong>Q6.5</strong></td><td>1.07812</td><td>99.15%</td><td>0.05%</td><td>250.94 GB</td></tr>
<tr><td><strong>Q9 (Base)</strong></td><td>1.07031</td><td>100.00%</td><td>100.00%</td><td>347.43 GB</td></tr>
</tbody>
</table>
- Perplexity: Measures the confidence for predicting base tokens (lower is better)
- Token Accuracy: The percentage of correctly generated base tokens
- Missed Divergence: Measures severity of misses; how much the token was missed by
##### Quantized with a modified version of [MLX](https://github.com/ml-explore/mlx)
##### For more details see [demonstration videos](https://youtube.com/xcreate) or visit [XiaomiMiMo/MiMo-V2.5](https://huggingface.co/XiaomiMiMo/MiMo-V2.5).
## Disclaimer
We are not the creator, originator, or owner of any model listed. Each model is created and provided by third parties. Models may not always be accurate or contextually appropriate. You are responsible for verifying the information before making important decisions. We are not liable for any damages, losses, or issues arising from its use, including data loss or inaccuracies in AI-generated content. |