Instructions to use bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
Use Docker
docker model run hf.co/bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
- Ollama
How to use bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF with Ollama:
ollama run hf.co/bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF with Docker Model Runner:
docker model run hf.co/bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
- Lemonade
How to use bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.XiaomiMiMo_MiMo-V2-Flash-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
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:9931/v1 hermes config set model.default bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M
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:9931/v1 \ --custom-model-id "bartowski/XiaomiMiMo_MiMo-V2-Flash-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
thinking tag?
hey guys anyone know how to remove flag i need to use ?
CUDA_VISIBLE_DEVICES="0" ./bin/llama-server
--model "/home/gopi/deepresearch-ui/model/XiaomiMiMo_MiMo-V2-Flash-Q5_K_M-00001-of-00006.gguf"
--ctx-size 30000
-ngl 5
--rpc 10.0.0.2:50053
--tensor-split 1,0.8
--host 127.0.0.1
--threads 40
--threads-batch 40
--jinja
--reasoning-format deepseek
--temp 0.0
--top-p 1.0
--port 8080
add --reasoning-budget 0
add --reasoning-budget 0
roger that
i did that but its still adding lol
Oh right --reasoning-budget 0 for some models anyway should disable thinking, but some models need /nothink or /no_think etc...
I haven't tried it myself yet, but working on a quant now.
Otherwise some kinda --special type thing which prints out all even more? haha... Otherwise maybe grab the original chat template .jinja file and modify it then load it back in at runtime?
Hello @gopi87 you are everywhere! lol
lol π i tried the special but didn't worked. i gotta test all this ai to keep me in update position since i am a founder.
I put up a few ik quants here: https://huggingface.co/ubergarm/MiMo-V2-Flash-GGUF but honestly this model doesn't seem to be working great in general even testing the full Q8_0 on both ik and mainline llama.cpp it was messing up pydantic-ai agent tool use calls and such. I even tried with unsloths chat template jinja and without but don't see much difference.
Looking at the original chat template here: https://huggingface.co/XiaomiMiMo/MiMo-V2-Flash/blob/main/tokenizer_config.json#L230
it suggests some kind of enable_thinking=false might disable it? i didn't look too closely...
i didn't bother releasing more quants for now, unless someone finds a good use case for this model and how to use it otherwise a heavily quantized glm-4.7 seems better to me (though slower probably)...
cheers and good luck with your company!
I put up a few ik quants here: https://huggingface.co/ubergarm/MiMo-V2-Flash-GGUF but honestly this model doesn't seem to be working great in general even testing the full Q8_0 on both ik and mainline llama.cpp it was messing up pydantic-ai agent tool use calls and such. I even tried with unsloths chat template jinja and without but don't see much difference.
Looking at the original chat template here: https://huggingface.co/XiaomiMiMo/MiMo-V2-Flash/blob/main/tokenizer_config.json#L230
it suggests some kind of
enable_thinking=falsemight disable it? i didn't look too closely...i didn't bother releasing more quants for now, unless someone finds a good use case for this model and how to use it otherwise a heavily quantized glm-4.7 seems better to me (though slower probably)...
cheers and good luck with your company!
thanks sir btw right now i have shifted my focus towards to moe with less active parameter and agent use. testing couple of things for my works atm too bad that i cant use the ik_llama since they getting broken very often through the api calls.
i have shifted my focus towards to moe with less active parameter and agent use
Have you seen the -sm graph -sas feature on ik for fully offloaded MoE models on 2 or more GPUs? https://github.com/ikawrakow/ik_llama.cpp/pull/1089 it can be quite fast!
Not sure what issues you're having with ik's API, though yes it does move pretty quickly. Always feel free to open an over there with specific repeatable errors and maybe someone will take a look.
Cheers!
i only get problem when i am using it through rpc .thanks for the heads up sir i will check that two flags