Instructions to use kueizen/Marco-Nano-Instruct-REAP-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 kueizen/Marco-Nano-Instruct-REAP-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 kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
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 kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
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 kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
Use Docker
docker model run hf.co/kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use kueizen/Marco-Nano-Instruct-REAP-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kueizen/Marco-Nano-Instruct-REAP-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kueizen/Marco-Nano-Instruct-REAP-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
- Ollama
How to use kueizen/Marco-Nano-Instruct-REAP-GGUF with Ollama:
ollama run hf.co/kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use kueizen/Marco-Nano-Instruct-REAP-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use kueizen/Marco-Nano-Instruct-REAP-GGUF with Docker Model Runner:
docker model run hf.co/kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
- Lemonade
How to use kueizen/Marco-Nano-Instruct-REAP-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Marco-Nano-Instruct-REAP-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use kueizen/Marco-Nano-Instruct-REAP-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 kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
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 kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kueizen/Marco-Nano-Instruct-REAP-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M
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 "kueizen/Marco-Nano-Instruct-REAP-GGUF:Q4_K_M" \ --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"
Marco-Nano-Instruct · REAP expert-pruned GGUFs
Marco-Nano-Instruct (8.6B total, ~0.6B active, 232 experts, 8 active per token), with 5% to 70% of its experts removed by REAP. Nine files from 4.8 GB down to 1.7 GB, all Q4_K_M, all measured on one RTX 3090.
This is the most useful family in the series under 5 GB: at REAP05 it stays almost indistinguishable from the unpruned model (KL divergence 0.065 nats) in 4.8 GB.
Files
| File | Experts kept | Size (GB) | PPL | KLD (nats) | pp512 (t/s) | tg128 (t/s) |
|---|---|---|---|---|---|---|
| unpruned base (not in this repo) | 232 | 5.00 | 11.48 | — | 8,460 | 277 |
Marco-Nano-Instruct-REAP05-Q4_K_M.gguf |
220 | 4.77 | 12.07 | 0.065 | 9,142 | 282 |
Marco-Nano-Instruct-REAP10-Q4_K_M.gguf |
209 | 4.52 | 13.09 | 0.151 | 8,578 | 282 |
Marco-Nano-Instruct-REAP15-Q4_K_M.gguf |
197 | 4.30 | 14.03 | 0.214 | 9,378 | 241 |
Marco-Nano-Instruct-REAP20-Q4_K_M.gguf |
186 | 4.05 | 15.36 | 0.291 | 9,402 | 271 |
Marco-Nano-Instruct-REAP30-Q4_K_M.gguf |
162 | 3.58 | 18.03 | 0.458 | 9,681 | 268 |
Marco-Nano-Instruct-REAP40-Q4_K_M.gguf |
139 | 3.11 | 22.71 | 0.671 | 10,185 | 279 |
Marco-Nano-Instruct-REAP50-Q4_K_M.gguf |
116 | 2.61 | 30.38 | 0.941 | 10,157 | 296 |
Marco-Nano-Instruct-REAP60-Q4_K_M.gguf |
93 | 2.14 | 45.04 | 1.289 | 11,146 | 296 |
Marco-Nano-Instruct-REAP70-Q4_K_M.gguf |
70 | 1.66 | 74.79 | 1.718 | 11,416 | 302 |
Which one to pick
- REAP05–REAP20 (4.8–4.1 GB): close to the base model, at most 1.34× its perplexity. Start here.
- REAP30–REAP40 (3.6–3.1 GB): noticeable drift, still coherent for structured work such as extraction and summaries.
- REAP50 and up: only when size is a hard limit.
Quality falls off smoothly: KL divergence rises steadily as experts are removed, with no cliff to watch for.
Generation speed barely changes with pruning, because a MoE model runs 8 experts per token whatever the total. Pruning buys you size, not speed. Four or five of these fit on a 24 GB card at once, and on CPU (12 threads) Nano generates about 40 tokens a second.
Pick down, don't prune down
Across our sweeps, a smaller model pruned lightly beats a bigger model pruned hard at the same file size. Both Marco models share a tokenizer (151,936 tokens), so their perplexities compare directly:
| Size budget | Marco-Mini, pruned hard | Marco-Nano, pruned lightly |
|---|---|---|
| ~5 GB | REAP50 · 5.00 GB · PPL 26.42 | REAP05 · 4.77 GB · PPL 12.07 |
| ~4 GB | REAP60 · 4.07 GB · PPL 38.62 | REAP20 · 4.05 GB · PPL 15.36 |
| ~3 GB | REAP70 · 3.10 GB · PPL 64.43 | REAP40 · 3.11 GB · PPL 22.71 |
Rule of thumb: choose the smallest model that fits your memory, then prune it 5–20%. Past about 30%, each extra step costs a lot more quality than the one before.
How these were made
- Pruning: REAP (Router-weighted Expert Activation Pruning, Cerebras Research), using the reference implementation. REAP scores each expert by its router weight times the size of its output over a calibration set, then removes the lowest-scoring experts whole. It is one-shot: no retraining. Seed 42.
- Calibration set: theblackcat102/evol-codealpaca-v1 (train split, shuffled, seed 42), 8 batches per category, batch size 2, max sequence length 512 tokens.
- Quantisation: Q4_K_M with llama.cpp.
- REAPxx in a file name is the share of experts removed, e.g. REAP20 = 20% of experts removed.
How we measured
- Perplexity (PPL): WikiText-2 raw test split, 50 chunks, context 512,
llama-perplexity. Lower is better. - KL divergence (KLD): mean KL divergence from the unpruned model over the top-100 log-probs, 200 WikiText-2 prompts, fp16. Lower means closer to the base.
- Speed:
llama-benchon one RTX 3090 (24 GB), all layers on GPU: prompt processing over 512 tokens (pp512) and generation over 128 tokens (tg128), 3 runs, llama.cpp builds b8164 and b8575. - Size: file size in GB.
Perplexity tracks how close a pruned model stays to its base, but it is not a task benchmark. We have not run MMLU, coding or multilingual evals on these files, so test them on your own workload before relying on them.
Run it
llama.cpp (OpenAI-compatible server):
llama-server --hf-repo kueizen/Marco-Nano-Instruct-REAP-GGUF --hf-file Marco-Nano-Instruct-REAP20-Q4_K_M.gguf -ngl 99
Ollama: this repo holds several files with the same quant type, so download the one you want and point a Modelfile at it:
FROM ./Marco-Nano-Instruct-REAP20-Q4_K_M.gguf
PARAMETER num_ctx 8192
ollama create marco-nano-instruct-reap20 -f Modelfile
ollama run marco-nano-instruct-reap20
LM Studio: search for kueizen/Marco-Nano-Instruct-REAP-GGUF and pick a file.
License and credits
These files are derived from ATH-MaaS/Marco-Nano-Instruct and released under the same Apache 2.0 licence. What we changed: removed experts with REAP and quantised the result to GGUF Q4_K_M. Nothing else was modified or retrained.
REAP is by Cerebras Research: paper, code. All credit for the base model goes to its authors.
The series
- kueizen/Qwen3.6-35B-A3B-REAP-GGUF
- kueizen/Marco-Mini-Instruct-REAP-GGUF
- kueizen/Marco-Nano-Instruct-REAP-GGUF
Published by Kueizen.
- Downloads last month
- 304
4-bit
Model tree for kueizen/Marco-Nano-Instruct-REAP-GGUF
Base model
ATH-MaaS/Marco-Nano-Instruct