Text Generation
MLX
Safetensors
minimax_m3_vl
jang
reap
awq
Mixture of Experts
code
multimodal
minimax-m3
osaurus
apple-silicon
conversational
custom_code
Instructions to use OsaurusAI/MiniMax-M3-Coder-Small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/MiniMax-M3-Coder-Small 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("OsaurusAI/MiniMax-M3-Coder-Small") 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 OsaurusAI/MiniMax-M3-Coder-Small with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/MiniMax-M3-Coder-Small"
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": "OsaurusAI/MiniMax-M3-Coder-Small" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use OsaurusAI/MiniMax-M3-Coder-Small 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 "OsaurusAI/MiniMax-M3-Coder-Small"
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 OsaurusAI/MiniMax-M3-Coder-Small
Run Hermes
hermes
- MLX LM
How to use OsaurusAI/MiniMax-M3-Coder-Small with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "OsaurusAI/MiniMax-M3-Coder-Small"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "OsaurusAI/MiniMax-M3-Coder-Small" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OsaurusAI/MiniMax-M3-Coder-Small", "messages": [ {"role": "user", "content": "Hello"} ] }'
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
base_model: MiniMaxAI/MiniMax-M3
|
| 4 |
+
tags: [mlx, vmlx, jang, reap, awq, moe, code, multimodal, minimax-m3, osaurus, apple-silicon]
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
<p align="center"><img src="./osaurus-banner.png" alt="Osaurus" width="680"></p>
|
| 9 |
+
<h1 align="center">MiniMax-M3-Coder-Small</h1>
|
| 10 |
+
<p align="center"><b>🦖 Osaurus Exclusive — a compact JANG-quantized MiniMax-M3 coder (coding · agentic · multimodal) for Apple Silicon.</b></p>
|
| 11 |
+
|
| 12 |
+
> ⚠️ **Requires vMLX engine v1.5.67+.**
|
| 13 |
+
> This is a **JANG-format** model (JANG affine + **AWQ** quant, **REAP** expert pruning, MiniMax-M3 MSA/Lightning-Indexer runtime). It will **NOT** load with `transformers`, `vLLM`, or generic MLX loaders — it runs on the vMLX engine (ships in **Osaurus**).
|
| 14 |
+
|
| 15 |
+
## What is a JANG model?
|
| 16 |
+
**JANG** is vMLX's quantization + packing format: mixed-precision affine quant with per-projection bit widths + **AWQ** activation-aware scaling + **REAP** expert pruning, via a `jang_config.json`. Weights stay quantized in GPU memory and load through vMLX's JANG loader. The format + the M3 runtime are vMLX-specific, so it **runs only on vMLX 1.5.67 or newer.**
|
| 17 |
+
|
| 18 |
+
## Highlights
|
| 19 |
+
- **Smallest M3 coder — ~84 GB** (the compact Osaurus build).
|
| 20 |
+
- **REAP45:** keep **70/128** routed experts (45% pruned).
|
| 21 |
+
- **All-2-bit routed experts + AWQ** (gate/up 2-bit AWQ-scaled, down 2-bit); attention 8-bit, shared experts 6-bit, embeddings 6-bit, lm_head 8-bit, Lightning Indexer FP16.
|
| 22 |
+
- **Multimodal (vision) kept.**
|
| 23 |
+
- Calibration: Vera (agentic-coder) + GSM8K; "floor" recipe keeps the most-salient coding experts.
|
| 24 |
+
|
| 25 |
+
## Run it
|
| 26 |
+
- In **Osaurus** / vMLX 1.5.67+: pick this model, Start, then chat.
|
| 27 |
+
- CLI: `vmlx-engine serve OsaurusAI/MiniMax-M3-Coder-Small --reasoning-parser minimax_m3 --tool-call-parser minimax_m3`
|
| 28 |
+
|
| 29 |
+
## Attribution
|
| 30 |
+
- Base model: **MiniMaxAI/MiniMax-M3** · Pruning: **REAP** (Cerebras, arXiv:2510.13999)
|
| 31 |
+
- **Vera calibration + testing: [@hornsman1](https://huggingface.co/hornsman1) (hornsan1 on GitHub)** · math calibration: GSM8K
|
| 32 |
+
- Quantization & runtime: **JANG / vMLX** · Distributed via **Osaurus**
|