Instructions to use madebywest/maple-pro 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 madebywest/maple-pro 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 madebywest/maple-pro # Run inference directly in the terminal: llama cli -hf madebywest/maple-pro
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf madebywest/maple-pro # Run inference directly in the terminal: llama cli -hf madebywest/maple-pro
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 madebywest/maple-pro # Run inference directly in the terminal: ./build/bin/llama cli -hf madebywest/maple-pro
Use Docker
docker model run hf.co/madebywest/maple-pro
- Llama new
- LM Studio
- Jan
- Ollama
How to use madebywest/maple-pro with Ollama:
ollama run hf.co/madebywest/maple-pro
- Unsloth Desktop
- Pi
How to use madebywest/maple-pro with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf madebywest/maple-pro
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": "madebywest/maple-pro" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use madebywest/maple-pro with Docker Model Runner:
docker model run hf.co/madebywest/maple-pro
- Lemonade
How to use madebywest/maple-pro with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull madebywest/maple-pro
Run and chat with the model
lemonade run user.maple-pro-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use madebywest/maple-pro with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf madebywest/maple-pro
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 madebywest/maple-pro
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use madebywest/maple-pro with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf madebywest/maple-pro
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 "madebywest/maple-pro" \ --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"
Maple Pro β preference-optimized Maple (20B-A1B ternary MoE)
A single-file GGUF of Maple (deepgrove/maple-preview, MIT) after a full distillation + DPO campaign. Measured head-to-head against the stock base β identical GGUF layout, runtime and harness β it adds strict instruction-following (+1 axis on the 12-axis gate) while holding the base's measured math and coding levels.
Results (head-to-head vs the stock base, measured side by side)
Same machine, same day, same runtime (llama.cpp 2.69.0, Apple Metal), same
harness and prompts. The baseline is the stock maple-preview weights
exported through the exact same GGUF layout as this file β 72/72 expert
tensors and the layers 0β7 attention are byte-identical, so the only variable
is the training.
| Suite | Base Maple | Maple Pro |
|---|---|---|
| Instruction gate (12 axes) | 10/12 | 11/12 |
| GSM8K (400 problems, greedy) | 335 (83.8%) | 335 (83.8%) |
| HumanEval pass@1 (164, temp 0.2) | 132 (80.5%) | 124 (75.6%) |
Gate detail β the two builds differ on exactly one probe: the strict instruction-following check ("answer with exactly 3 words"), which Pro passes and the base fails. Math (3/3), coding, tool-call format, multilingual IT/ES, knowledge and reasoning are all parity.
GSM8K is greedy and near-deterministic (Β±1 problem across reruns), so the tie is a true level. HumanEval runs single-pass at temp 0.2 where run-to-run spread on this suite is ~Β±5 problems (this build measured 124 on this run and 129 on its record run), so the coding delta vs the base is within sampling noise. All numbers reproducible with the eval suite described in the model card below.
Files
| File | Size | Format | Use it on |
|---|---|---|---|
maple-pro.gguf |
6.6 GB | ternary TQ2_0 + F16 attn | Apple Silicon (LM Studio / Metal) β fastest and smallest; verified end-to-end. On Windows/Linux see the troubleshooting section below |
Windows / Linux troubleshooting (empty responses)
Symptom: model loads in LM Studio on Windows/Linux, but chat replies come back empty.
Cause: the ternary TQ2_0 tensor type has no stable GPU kernels outside
Apple's Metal runtime. The maple architecture landed in mainline llama.cpp
(v0.4.1) as CPU-only; on CUDA/Vulkan the ternary matmuls are experimental
and can produce garbage logits, which makes the model emit EOS immediately β
an empty reply. This is a runtime/kernel issue, not a model issue: the same
GGUF file generates correctly on CPU and on Apple Silicon.
Fixes (in order):
- Set GPU offload to 0 (CPU-only) in the load settings. CPU generation with the ternary kernels is correct on every OS.
- Keep the llama.cpp runtime up to date in LM Studio (Ctrl+Shift+R β Runtimes); arch support exists since runtime 2.55.
- On GPUs with < 16 GB VRAM, lower the context length (the GGUF advertises 256K; the KV cache at full 256K needs ~3.3 GB on top of the weights).
What's inside
- Full LoRA fusion: 64 attention LoRA tensors and 121 DPO-updated base tensors (norms, expert routers, QK-norms) baked into a single GGUF. Attention projections stored as F16 (mixed precision; layers 0β7 keep the base ternary TQ2_0 attention); ternary expert weights untouched (byte-identical to the official base).
- Runtime: 6.6 GB, ~1B active parameters.
- Context: 128K native, GGUF metadata allows 256K β verified to work natively with no flags (needle-tested β see Context section). No other changes to the model: the 256K build differs from the 128K original by a single metadata field.
Context (measured)
5-needle recall (wikitext-2 haystack, depths 10/30/50/70/90%), same seeds:
| Context | Mode | Recall |
|---|---|---|
| 16Kβ131K | native | 3/5 |
| 256K | native (no flags) | 4/5 |
| 256K | YaRN Γ2 | 4/5 (same) |
| 384K | YaRN Γ3 | 2/5 β fails |
No length degradation up to 256K: the hybrid SWA design (18/24 layers at window 512) extrapolates Γ2 natively, so 256K works by just setting the context size β no rope-scaling flags needed (LM Studio: set the slider). Remaining misses are section-binding confusions between same-shape needles, uniform across lengths. 384K+ is out of reach without long-context training.
Runtime (important)
The maple architecture is not in upstream llama.cpp releases before
v0.4.1 (merged CPU-only). Runtimes β₯ 2.55 in LM Studio load it; for other
builds use the DeepGrove fork (Apache-2.0):
git clone --depth 1 https://github.com/deepgrove-ai/llama.cpp
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j --target llama-server
The Metal backend of the current fork does not implement the ternary TQ2_0 matmuls (experts, and the ternary attention of layers 0β7), so serve with those tensors on CPU:
./build/bin/llama-server -m maple-pro.gguf --port 8080 -t 8 \
--cpu-moe --no-op-offload \
-ot 'blk\.[0-7]\.attn_[a-z]+\.weight=CPU'
OpenAI-compatible API on :8080. LM Studio works too: the GGUF was verified on LM Studio's bundled runtime (2.65.1) β just load it and set the context size. Measured decode on an M4 16 GB (idle): ~75 tok/s (base maple-preview: ~94 tok/s β Pro trades some bandwidth for its F16 fused attention).
Serving at 256K
The GGUF advertises a 262144 context: just set the context size to 256K β no rope-scaling flags required (native Γ2 extrapolation is needle-verified, see Context section). On a 16 GB machine use quantized KV cache to fit:
./build/bin/llama-server -m maple-pro.gguf --port 8080 -t 8 \
--ctx-size 262144 \
--cpu-moe --no-op-offload \
-ot 'blk\.[0-7]\.attn_[a-z]+\.weight=CPU' \
--cache-type-k q8_0 --cache-type-v q8_0
KV cache quantization is your choice; q8_0 was used in the tests (~10 GB total on a 16 GB machine).
Training recipe (summary)
- Semi on-policy distillation: the student samples its own solutions on verified tasks (GSM8K gold answers, IFEval-style constraint checkers, sandboxed coding tests); a frontier teacher API model (GLM-5.3-Flash) corrects only the failures. ~3,000 verified on-policy samples + corrections.
- SFT on-policy multi-domain (the 11/12-axes intermediate).
- DPO on preference pairs (student error β verified teacher correction), full-parameter (attention LoRA + norms/routers), SFT-anchored.
- Acceptance measurement: every candidate was scored under identical conditions against the same baseline; 16 configurations were measured and rejected across the campaign, and this build shipped on its measured trade-off (strict instruction-following won, math and coding held at baseline levels).
Credits & license
- Base model: deepgrove/maple-preview and its GGUF release (MIT).
- Runtime: deepgrove-ai/llama.cpp fork.
- This model: MIT, derivative work with attribution. Trained locally on a single M4 16 GB via MLX.
- Made by West β madebywest.com
- Downloads last month
- 4,114
We're not able to determine the quantization variants.
Model tree for madebywest/maple-pro
Base model
deepgrove/maple-preview