Instructions to use mudler/MiniMax-M2.7-APEX-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 mudler/MiniMax-M2.7-APEX-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 mudler/MiniMax-M2.7-APEX-GGUF:F16 # Run inference directly in the terminal: llama cli -hf mudler/MiniMax-M2.7-APEX-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mudler/MiniMax-M2.7-APEX-GGUF:F16 # Run inference directly in the terminal: llama cli -hf mudler/MiniMax-M2.7-APEX-GGUF:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf mudler/MiniMax-M2.7-APEX-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf mudler/MiniMax-M2.7-APEX-GGUF:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf mudler/MiniMax-M2.7-APEX-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf mudler/MiniMax-M2.7-APEX-GGUF:F16
Use Docker
docker model run hf.co/mudler/MiniMax-M2.7-APEX-GGUF:F16
- LM Studio
- Jan
- Ollama
How to use mudler/MiniMax-M2.7-APEX-GGUF with Ollama:
ollama run hf.co/mudler/MiniMax-M2.7-APEX-GGUF:F16
- Unsloth Studio
How to use mudler/MiniMax-M2.7-APEX-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mudler/MiniMax-M2.7-APEX-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mudler/MiniMax-M2.7-APEX-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mudler/MiniMax-M2.7-APEX-GGUF to start chatting
- Pi
How to use mudler/MiniMax-M2.7-APEX-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mudler/MiniMax-M2.7-APEX-GGUF:F16
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "mudler/MiniMax-M2.7-APEX-GGUF:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use mudler/MiniMax-M2.7-APEX-GGUF with Docker Model Runner:
docker model run hf.co/mudler/MiniMax-M2.7-APEX-GGUF:F16
- Lemonade
How to use mudler/MiniMax-M2.7-APEX-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mudler/MiniMax-M2.7-APEX-GGUF:F16
Run and chat with the model
lemonade run user.MiniMax-M2.7-APEX-GGUF-F16
List all available models
lemonade list
- Hermes Agent
How to use mudler/MiniMax-M2.7-APEX-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 mudler/MiniMax-M2.7-APEX-GGUF:F16
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 mudler/MiniMax-M2.7-APEX-GGUF:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mudler/MiniMax-M2.7-APEX-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mudler/MiniMax-M2.7-APEX-GGUF:F16
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 "mudler/MiniMax-M2.7-APEX-GGUF:F16" \ --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"
| license: other | |
| base_model: MiniMaxAI/MiniMax-M2.7 | |
| tags: | |
| - gguf | |
| - quantized | |
| - apex | |
| - moe | |
| - mixture-of-experts | |
| - minimax | |
| - minimax-m2 | |
| <!-- apex-banner-v2 --> | |
| <div style="background-color: #f59e0b; color: white; padding: 20px; border-radius: 10px; text-align: center; margin: 20px 0;"> | |
| <h2 style="color: white; margin: 0 0 10px 0;">β‘ Each donation = another big MoE quantized</h2> | |
| <p style="font-size: 18px; margin: 0 0 15px 0;">I host <b>25+ free APEX MoE quantizations</b> as independent research. My only local hardware is an <b>NVIDIA DGX Spark</b> (122 GB unified memory) β enough for ~30-50B-class MoEs, but <b>bigger ones (200B+) require rented compute</b> on H100/H200/Blackwell, typically $20-100 per quant.<br>If APEX quants are useful to you, your support directly funds those bigger runs.</p> | |
| <p style="font-size: 20px; margin: 0;"> | |
| <a href="https://www.patreon.com/cw/mudler" style="color: white; text-decoration: underline;">π Patreon (Monthly)</a> | | |
| <a href="https://www.buymeacoffee.com/mudler" style="color: white; text-decoration: underline;">β Buy Me a Coffee</a> | | |
| <a href="https://github.com/sponsors/mudler" style="color: white; text-decoration: underline;">β GitHub Sponsors</a> | |
| </p> | |
| <p style="font-size: 14px; margin: 10px 0 0 0; opacity: 0.9;">π Big thanks to Hugging Face for generously donating additional storage β much appreciated.</p> | |
| </div> | |
| # MiniMax-M2.7 APEX GGUF | |
| **APEX (Adaptive Precision for EXpert Models)** quantizations of [MiniMax-M2.7](https://huggingface.co/MiniMaxAI/MiniMax-M2.7). | |
| **Brought to you by the [LocalAI](https://github.com/mudler/LocalAI) team** | [APEX Project](https://github.com/mudler/apex-quant) | [Technical Report](https://github.com/mudler/apex-quant/blob/main/paper/APEX_Technical_Report.pdf) | |
| > **Note**: MiniMax M2 architecture support in llama.cpp is still maturing. If you encounter inference issues, ensure you're using a recent llama.cpp build and report issues upstream. | |
| ## Available Files | |
| | File | Profile | Size | Best For | | |
| |------|---------|------|----------| | |
| | MiniMax-M2.7-APEX-I-Balanced.gguf | I-Balanced | 155 GB | Best overall quality/size ratio | | |
| | MiniMax-M2.7-APEX-Balanced.gguf | Balanced | 155 GB | General purpose | | |
| | MiniMax-M2.7-APEX-I-Quality.gguf | I-Quality | 129 GB | Highest quality with imatrix | | |
| | MiniMax-M2.7-APEX-Quality.gguf | Quality | 129 GB | Highest quality standard | | |
| | MiniMax-M2.7-APEX-I-Compact.gguf | I-Compact | 100 GB | Multi-GPU setups, best quality/size | | |
| | MiniMax-M2.7-APEX-Compact.gguf | Compact | 100 GB | Multi-GPU setups | | |
| | MiniMax-M2.7-APEX-I-Mini.gguf | I-Mini | 80 GB | Smallest "safe" tier | | |
| | MiniMax-M2.7-APEX-I-Nano.gguf | **I-Nano** (new) | 64 GB | Experimental β IQ2_XXS mid-layer experts | | |
| | MiniMax-M2.7-APEX-F16-*.gguf | F16 reference | 426 GB (10 shards) | Full-precision BF16 for imatrix/further research | | |
| ## What is APEX? | |
| APEX is a quantization strategy for Mixture-of-Experts (MoE) models. It classifies tensors by role (routed expert, shared expert, attention) and applies a layer-wise precision gradient β edge layers get higher precision, middle layers get more aggressive compression. I-variants use diverse imatrix calibration (chat, code, reasoning, tool-calling, agentic traces, Wikipedia). | |
| The key insight: in MoE models, expert FFN tensors make up the bulk of model weight but only ~8/256 experts activate per token. APEX compresses middle-layer experts more aggressively while preserving edge layers (first/last 5) and keeping attention and shared-expert tensors at higher precision. | |
| See the [APEX project](https://github.com/mudler/apex-quant) for full details, technical report, and scripts. | |
| ### Nano (new experimental tier) | |
| APEX M2.7 debuts the **Nano** tier, which pushes mid-layer routed experts to **IQ2_XXS (2.06 bpw)**, near-edge to IQ2_S, edges to Q3_K, and keeps shared experts at Q5_K. About 20% smaller than Mini with modest quality cost, viable only on MoE thanks to sparse per-token activation. Requires imatrix. | |
| Benchmarks for Nano are pending. Feedback welcome. | |
| ## Architecture | |
| - **Model**: MiniMax-M2.7 (MiniMaxM2) | |
| - **Layers**: 62 | |
| - **Experts**: 256 routed (8 active per token) | |
| - **Total Parameters**: ~228 B | |
| - **Active Parameters**: ~10 B per token | |
| - **Source Format**: FP8 (float8_e4m3fn, block-quantized 128Γ128) | |
| - **Intermediate Format**: BF16 (via unsloth's pre-converted BF16 GGUF) | |
| - **APEX Config**: 5+5 symmetric edge gradient across 62 layers | |
| - **Calibration**: v1.3 diverse dataset (chat, code, reasoning, multilingual, tool-calling, Wikipedia) | |
| ## Run with LocalAI | |
| ```bash | |
| local-ai run mudler/MiniMax-M2.7-APEX-GGUF@MiniMax-M2.7-APEX-I-Balanced.gguf | |
| ``` | |
| ## Credits | |
| - **Base model**: [MiniMaxAI](https://huggingface.co/MiniMaxAI) | |
| - **BF16 GGUF source**: [unsloth/MiniMax-M2.7-GGUF](https://huggingface.co/unsloth/MiniMax-M2.7-GGUF) | |
| - **APEX quantization**: [LocalAI](https://github.com/mudler/LocalAI) team | |
| - Built on [llama.cpp](https://github.com/ggerganov/llama.cpp) | |