Text Generation
MLX
Safetensors
minimax_m3_vl
vmlx
jang
reap
awq
Mixture of Experts
code
multimodal
minimax-m3
apple-silicon
conversational
custom_code
Instructions to use JANGQ-AI/MiniMax-M3-REAP22-Coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use JANGQ-AI/MiniMax-M3-REAP22-Coder 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("JANGQ-AI/MiniMax-M3-REAP22-Coder") 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 JANGQ-AI/MiniMax-M3-REAP22-Coder with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "JANGQ-AI/MiniMax-M3-REAP22-Coder"
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": "JANGQ-AI/MiniMax-M3-REAP22-Coder" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use JANGQ-AI/MiniMax-M3-REAP22-Coder 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 "JANGQ-AI/MiniMax-M3-REAP22-Coder"
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 JANGQ-AI/MiniMax-M3-REAP22-Coder
Run Hermes
hermes
- OpenClaw new
How to use JANGQ-AI/MiniMax-M3-REAP22-Coder with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "JANGQ-AI/MiniMax-M3-REAP22-Coder"
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 "JANGQ-AI/MiniMax-M3-REAP22-Coder" \ --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 JANGQ-AI/MiniMax-M3-REAP22-Coder with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "JANGQ-AI/MiniMax-M3-REAP22-Coder"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "JANGQ-AI/MiniMax-M3-REAP22-Coder" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JANGQ-AI/MiniMax-M3-REAP22-Coder", "messages": [ {"role": "user", "content": "Hello"} ] }'
| license: other | |
| base_model: MiniMaxAI/MiniMax-M3 | |
| tags: [mlx, vmlx, jang, reap, awq, moe, code, multimodal, minimax-m3, apple-silicon] | |
| pipeline_tag: text-generation | |
| <p align="center"><img src="./vmlx-logo.png" alt="vMLX" width="150"></p> | |
| <h1 align="center">MiniMax-M3-REAP22-Coder</h1> | |
| <p align="center"><b>A JANG-quantized MiniMax-M3 — coding/agentic + multimodal — for the <a href="https://mlx.studio">vMLX</a> engine (Apple Silicon / MLX).</b></p> | |
| > ⚠️ **Requires vMLX engine v1.5.67 or newer.** | |
| > This is a **JANG-format** model (JANG affine-mixed + **AWQ** quantization, **REAP** expert pruning, and the | |
| > MiniMax-M3 MSA / Lightning-Indexer runtime). It will **NOT** load with `transformers`, `vLLM`, or generic MLX | |
| > loaders — it needs vMLX's JANG loader + the M3 runtime. **Coder support lands in vMLX ≥ 1.5.67.** | |
| ## What is a JANG model? | |
| **JANG** is vMLX's quantization + packing format: mixed-precision **affine** quantization (per-projection bit | |
| widths) + **AWQ** activation-aware scaling + **REAP** expert pruning, described by a `jang_config.json`. Weights | |
| stay quantized in GPU memory and are loaded by vMLX's JANG loader. Because the format **and** the MiniMax-M3 | |
| runtime (MSA dual-cache, Lightning Indexer, partial RoPE, vision tower) are vMLX-specific, **these models run | |
| only on vMLX ≥ 1.5.67.** | |
| ## Run it | |
| 1. Install/update **vMLX 1.5.67+** — https://mlx.studio (or `pip install -U vmlx`). | |
| 2. App: **Server → New Session →** pick/download this model **→ Start →** chat. | |
| 3. CLI: `vmlx-engine serve JANGQ-AI/MiniMax-M3-REAP22-Coder --reasoning-parser minimax_m3 --tool-call-parser minimax_m3` | |
| ## Highlights | |
| - **Coding: HumanEval pass@1 = 100%** (81/81 on a scrambled half of HumanEval, first-sample) — pass@5 = 1.000. | |
| - **Arithmetic/reasoning recovered** vs the base REAP quant (with reasoning enabled): ~7/7 on a 7-task probe. | |
| - **Multimodal (vision) kept.** ~107 GB on disk. | |
| ## Build | |
| - **Base:** MiniMaxAI/MiniMax-M3 (60 layers, MoE, MSA Lightning Indexer, GQA, partial RoPE). | |
| - **REAP pruning:** keep **100/128** routed experts per MoE layer (22% pruned), saliency-scored. | |
| - **JANG affine quant (group_size 64):** routed gate/up = **2-bit + AWQ pre-scaling**, down = 2-bit; shared | |
| experts 6-bit; attention 8-bit; embeddings 6-bit; lm_head 8-bit; Lightning Indexer + norms FP16; vision 8-bit. | |
| - **"Floor" expert recipe:** protect the proven coding experts (coding saliency) + add top math experts, so | |
| coding stays intact while math improves. | |
| - **Calibration:** Vera (agentic-coder) dominant + GSM8K (math reasoning). | |
| ## Attribution | |
| - Base model: **MiniMaxAI/MiniMax-M3** | |
| - Expert pruning: **REAP** (Cerebras, ICLR 2026, arXiv:2510.13999) | |
| - **Vera agentic-coder calibration dataset + evaluation/testing: [@hornsman1](https://huggingface.co/hornsman1) (hornsan1 on GitHub)** | |
| - Additional math-reasoning calibration: GSM8K | |
| - Quantization & runtime: **JANG / vMLX** | |
| ## Credits | |
| - Vera dataset & model testing: **@hornsby_andrew** ([hornsan1](https://github.com/hornsan1) on GitHub) | |