Instructions to use txgsync/Maple-Preview-oQ8e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use txgsync/Maple-Preview-oQ8e 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("txgsync/Maple-Preview-oQ8e") 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 txgsync/Maple-Preview-oQ8e with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "txgsync/Maple-Preview-oQ8e"
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": "txgsync/Maple-Preview-oQ8e" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use txgsync/Maple-Preview-oQ8e with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "txgsync/Maple-Preview-oQ8e"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "txgsync/Maple-Preview-oQ8e" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "txgsync/Maple-Preview-oQ8e", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use txgsync/Maple-Preview-oQ8e 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 "txgsync/Maple-Preview-oQ8e"
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 txgsync/Maple-Preview-oQ8e
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use txgsync/Maple-Preview-oQ8e with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "txgsync/Maple-Preview-oQ8e"
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 "txgsync/Maple-Preview-oQ8e" \ --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"
Maple Preview — oQ8e MLX quantization
This repository contains an enhanced oQ8e MLX quantization of deepgrove/maple-preview, converted from the BF16 safetensors with oMLX.
This MLX quant upload
- Approximately 21.5 GB for the complete local model directory (21,497,386,683 bytes).
- Uses a 1,024-sample, 512-token enhanced iMatrix calibration.
- All quantized tensors are 8-bit.
- The 24 MoE router matrices and all normalization weights remain BF16.
lm_headandmodel.word_embeddingsare 8-bit.- Requires custom-code loading (
trust_remote_code=True). In oMLX, enable Trust Remote Code for this model.
This is an MLX conversion for local inference on Apple Silicon. Please follow the base model's MIT license and usage terms.
Recommended generation settings
Maple is a reasoning-heavy model and may spend a substantial part of its response budget thinking. For the OpenAI-compatible API or oMLX UI, start with:
temperature: 1.0
top_p: 0.95
top_k: 40
min_p: 0.05
repetition_penalty: 1.0
max_tokens: 8192 or higher
max context: 131072 tokens (native model limit)
These sampler values match DeepGrove's Maple llama.cpp setup. The model declares a native 131,072-token context window and does not require RoPE/YARN scaling for that window. Actual usable context may be lower on systems constrained by KV-cache memory; do not assume that extending beyond 131,072 tokens is supported.
Base model description
Maple-Preview
DeepGrove · 2026
Today we introduce Maple-Preview, an open-source 20B-A1B ternary-weight reasoning LLM. Maple-Preview has SOTA reasoning for its weight class and is even competitive with larger models. It solves IMO-level problems and runs at 200+ tokens/sec on a Mac mini M4, 5–16× faster than efficient models like Gemma 4, Qwen3.5, and gpt-oss.
- 20B-A1B Model
- 218 tok/s M4 Mac mini
- 5.31 GB Checkpoint
- 131,072 Token context
The included Transformers implementation depends on Triton and FlashAttention and is intended for a compatible CUDA environment. The reported Apple Silicon result uses a separate on-device runtime.
Architecture
Maple-Preview is a 20B-A1B reasoning model designed from the start for efficient on-device inference. It utilizes a 24-layer, 256-expert (8 active) configuration with 3:1 SWA-512:GA attention.
Evaluation
On benchmarks, Maple-Preview sets a new point on the Pareto frontier for both memory-to-performance and speed-to-performance, demonstrating its strong reasoning capabilities. However, we note that this preview is focused primarily on raw reasoning and, as such, may underperform on agentic benchmarks. We intend to continue improving general performance through extended training before Maple's full release.
Capability comparison using the dense output head across LCBv6, AIME 2026, HMMT 2026, and GPQA-D.
Limitations
This preview received minimal post-training for agentic tasks and only small-scale general reinforcement learning.
License
Maple-Preview is released under the MIT License.
- Downloads last month
- 74
8-bit
Model tree for txgsync/Maple-Preview-oQ8e
Base model
deepgrove/maple-preview
