Instructions to use hellohazime/Kimi-K3-REAP-512GB-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 hellohazime/Kimi-K3-REAP-512GB-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 hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS # Run inference directly in the terminal: llama cli -hf hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS # Run inference directly in the terminal: llama cli -hf hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
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 hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS # Run inference directly in the terminal: ./llama-cli -hf hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
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 hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS # Run inference directly in the terminal: ./build/bin/llama-cli -hf hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
Use Docker
docker model run hf.co/hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
- LM Studio
- Jan
- vLLM
How to use hellohazime/Kimi-K3-REAP-512GB-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hellohazime/Kimi-K3-REAP-512GB-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": "hellohazime/Kimi-K3-REAP-512GB-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
- Ollama
How to use hellohazime/Kimi-K3-REAP-512GB-GGUF with Ollama:
ollama run hf.co/hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
- Unsloth Studio
How to use hellohazime/Kimi-K3-REAP-512GB-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for hellohazime/Kimi-K3-REAP-512GB-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for hellohazime/Kimi-K3-REAP-512GB-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for hellohazime/Kimi-K3-REAP-512GB-GGUF to start chatting
- Pi
How to use hellohazime/Kimi-K3-REAP-512GB-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use hellohazime/Kimi-K3-REAP-512GB-GGUF with Docker Model Runner:
docker model run hf.co/hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
- Lemonade
How to use hellohazime/Kimi-K3-REAP-512GB-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
Run and chat with the model
lemonade run user.Kimi-K3-REAP-512GB-GGUF-IQ2_XXS
List all available models
lemonade list
- Hermes Agent
How to use hellohazime/Kimi-K3-REAP-512GB-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 hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
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 hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use hellohazime/Kimi-K3-REAP-512GB-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS
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 "hellohazime/Kimi-K3-REAP-512GB-GGUF:IQ2_XXS" \ --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"
Kimi-K3, expert-pruned to fit in 512 GB of memory.
One memory budget, two ways to spend it. These are REAP expert-pruned builds of Unsloth's dynamic quants of Moonshot's Kimi-K3 (2.8T-param MoE, 896 experts per layer), cut to run fully resident on one 512 GB machine. Instead of only shrinking bits per weight, they drop the experts an English + code deployment rarely routes to. Both builds share the same calibration corpus and tooling, and differ only in how they spend the memory budget: more experts at fewer bits, or fewer experts at more bits.
| build | experts kept | en+code saliency | avg expert bpw | size | verification |
|---|---|---|---|---|---|
REAP640-IQ1_S/ |
640/896 | 93.5% | ~1.6 | 441.4 GB, 10 shards | SWE-Lancer 5/8, $3,500 earned |
REAP576-IQ2_XXS/ |
576/896 | 90.2% | ~1.9 | 478.5 GB, single file | SWE-Lancer 7/8, $13,000 earned — incl. 3 tasks none of our other setups had solved |
Both run at ~3.0 tok/s decode / ~48 tok/s prefill on a Mac Studio M3 Ultra 512 GB with full Metal offload. The 576 keep-set is a strict subset of the 640 keep-set (same saliency ranking), so the pair isolates the experts-vs-bits trade cleanly.
Provenance: the exact pruning plan is published — plans/reap_plan_640.json (sha256 0c8d08e17007a1a4…, full hash in SHA256SUMS); plan + source quant + the MIT slicer reproduce this file's bytes. Same for REAP576: plans/reap_plan_576.json (sha256 d536e46c648e5e25…). Both plans re-verified equal to top-N of the published saliency archive; a source-level split-half robustness study (code↔code retention 84–90%, web-en↔code 66% — domain splits, harsher than random halves) is in plans/README.md.
Download one build, not the repo
A full-repo download fetches both builds (~920 GB). Pick one:
# REAP640-IQ1_S (441 GB, 10 shards)
hf download hellohazime/Kimi-K3-REAP-512GB-GGUF --include "REAP640-IQ1_S/*" --local-dir .
# REAP576-IQ2_XXS (478 GB, single file)
hf download hellohazime/Kimi-K3-REAP-512GB-GGUF --include "REAP576-IQ2_XXS/*" --local-dir .
hf download resumes interrupted transfers.
Fidelity vs. the unpruned quant (KLD, measured 2026-08-19)
REAP576 was carved from Unsloth's UD-IQ2_XXS (711 GB, 896 experts). Teacher-forced on held-out text (2048-token windows), with the unpruned quant's own logits as truth:
| held-out | mean KLD | median KLD | 99th pct | argmax agreement | PPL ratio |
|---|---|---|---|---|---|
| code | 0.094 | 0.004 | 1.55 | 92.8% | ×1.08 |
| English | 0.180 | 0.035 | 2.42 | 85.2% | ×1.18 |
Unpruned reference on the same text: PPL 1.767 (code) / 6.313 (en).
How to read it: on code — the calibration target — half of all tokens are essentially untouched (median KLD 0.004) and the top-1 prediction survives 92.8% of the time, the highest fidelity of any build in this project. English drifts about twice as far, which is the en+code corpus doing what it was asked to do. Damage concentrates in a thin tail (99th pct 1.55 on code), not spread evenly — perplexity alone would hide that shape.
Which one
REAP640-IQ1_S is the proven build: driven end-to-end by Moonshot's Kimi Code CLI on real SWE-Lancer IC-SWE Diamond tasks — 3/3 on tasks the 341 GB 2-bit K2.7-Code baseline solved, plus 2/5 on tasks it failed ($3,500 total, grading untouched). Held-out perplexity: code 2.00 / en 7.44 / zh 7.93 / ja 19.46.
REAP576-IQ2_XXS starts from the higher-fidelity quant (Unsloth's published top-1 agreement with the unquantized model: 84.1% for UD-IQ2_XXS vs 78.9% for UD-IQ1_S, measured before pruning) and pays for it with 64 fewer experts per layer. Full 8-task result, one attempt per task, same protocol as REAP640:
| task | K2.7-Q2 (341 GB) | REAP640 | REAP576 |
|---|---|---|---|
| 28096_836 | pass | pass | pass $500 |
| 18827_741 | pass | pass | pass $1,000 |
| 29618_781 | pass | pass | pass $500 |
| 24508_791 | fail | pass $1,000 | pass $1,000 |
| 27353_776 | fail | pass $500 | fail |
| 14294 | fail | fail | pass $4,000 |
| 15815_1 | fail | fail | pass $4,000 |
| 15925 | fail | fail | pass $2,000 |
7/8, $13,000 (REAP640: 5/8, $3,500). The three bottom-row tasks had not been solved by anything we had tested — not the 2-bit K2.7-Code baseline, not REAP640, and not the full-896-expert UD-IQ2_XXS streamed from SSD. Other people's pruned K3 builds exist and we have not run them on these tasks. Grading is stock SWE-Lancer, untouched. Exact task IDs, selection rules and per-task results for every experiment: the eval repo. Two of the five differential tasks hit a harness config error on the first scheduling (the model was never invoked) and were re-run once; the 27353_776 failure was a genuine attempt and was not re-rolled.
Caveats, honestly: every cell is a single attempt at temperature 1.0. One oddity got a follow-up. We could not fit the full 896-expert model into this machine's memory, so to check it we force-ran it anyway, streaming experts from SSD (llama.cpp's MoE-streaming patch, ~2/3 the decode speed) — and, oddly, it failed all three bottom-row tasks that this pruned subset of the very same weights then solved. We then re-ran those three on the full streamed model as an explicitly-labeled second attempt: it solved all three. The 0/3 did not replicate. Read it as run-to-run variance of single-attempt agentic runs, not as pruning adding capability — both attempts are recorded separately in the eval repo's per-task results (old results.csv URL remains as a synced mirror). The practical lesson stands: single-run rows in any such table (ours included) carry real variance. Tool-call stability also wobbles: in 4 replays of a captured 24-tool agentic request, 1 leaked XTML markers into the arguments (the full task runs completed regardless).
Neither build speaks Chinese or Japanese — the calibration choice deliberately sacrifices them (the pruned experts are the ones those languages used). For Japanese, use the Japanese-calibrated sibling Kimi-K3-REAP640ja-IQ1_S-GGUF (ELYZA-tasks-100 4.16/5 vs REAP640's 1.81/5).
Build & run
Kimi-K3 support is not in mainline llama.cpp yet. Build the Unsloth fork at its K3 PR (built on top of llama.cpp PR #26185):
git clone https://github.com/unslothai/llama.cpp
cd llama.cpp && git fetch origin pull/48/head:kimi-k3 && git checkout kimi-k3
cmake -B build -DGGML_METAL=ON # Apple Silicon; use -DGGML_CUDA=ON on NVIDIA
cmake --build build --config Release -j --target llama-server
# REAP640: point at the first shard; REAP576: point at the single file
./build/bin/llama-server -m REAP640-IQ1_S/Kimi-K3-REAP640-IQ1_S-00001-of-00010.gguf \
--port 8090 -ngl 99 -c 131072 --jinja --cache-reuse 0 \
--temp 1.0 --top-p 0.95
--cache-reuse 0is required: partial prefix-cache reuse corrupts the KDA recurrent state (known issue, see the PR discussion).- K3 is thinking-only; reasoning arrives in
reasoning_content. Control depth withchat_template_kwargs: {"thinking_effort": "low" | "high" | "max"}. - Sampling per Moonshot:
temperature 1.0, top_p 0.95(agentic:top_p 1.0).
Point any OpenAI-compatible agent at it. Kimi Code CLI config:
default_model = "local-k3"
[providers.local-llamacpp]
type = "openai"
base_url = "http://127.0.0.1:8090/v1"
api_key = "local"
[models.local-k3]
provider = "local-llamacpp"
model = "k3"
max_context_size = 131072
How they were made
Expert saliency and keep-list planning use pipenetwork's
kimi-k3-mlx scripts
(reap_calibrate.py / reap_plan.py — REAP saliency gate·‖expert output‖
streamed layer-by-layer over the 1.56 TB MXFP4 source), with the calibration
mix swapped to English + code. The GGUF surgery is
a small script: a byte-slab
slice along the outermost expert axis (quantization blocks never cross expert
boundaries ⇒ no requantization, zero added quant error), router rows and
exp_probs_b renumbered to keep order. Identity-prune is byte-identical,
pinned by tests. Surviving experts are byte-identical to the Unsloth quants
they came from.
Full write-up — how it was built, what failed along the way, verification: English / 日本語.
Credits: Moonshot AI (Kimi-K3, Kimi Code CLI), Unsloth (dynamic quants whose protected router/norms these builds inherit), Cerebras REAP (saliency criterion), kimi-k3-mlx (calibration machinery and the measured warnings these builds steer by).
日本語の説明
Moonshot AIの2.8兆パラメータモデル Kimi-K3 を、Mac Studio(512GB)1台で動く サイズに枝刈りしたビルド集です。同じ512GBの予算を「expert多め×低bit」で使う REAP640-IQ1_S(441GB、SWE-Lancer 8タスク検証済み)と、「expert少なめ×高bit」で 使うREAP576-IQ2_XXS(478GB、検証進行中)の2つが入っています。
リポジトリ丸ごとダウンロードすると両方(約920GB)落ちてくるので、上の
--include 付きコマンドでどちらか片方だけ取得してください。
英語+コード校正のため中国語・日本語は意図的に壊れています。日本語用途は 日本語校正版へ。
経緯と実測の詳細: Kimi K3を441GBに枝刈りして、Mac Studio 1台で動かした
- Downloads last month
- 4,024
1-bit
2-bit