Instructions to use hellohazime/Kimi-K3-REAP640-IQ1_S-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-REAP640-IQ1_S-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-REAP640-IQ1_S-GGUF:IQ1_S # Run inference directly in the terminal: llama cli -hf hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF:IQ1_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF:IQ1_S # Run inference directly in the terminal: llama cli -hf hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF:IQ1_S
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-REAP640-IQ1_S-GGUF:IQ1_S # Run inference directly in the terminal: ./llama-cli -hf hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF:IQ1_S
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-REAP640-IQ1_S-GGUF:IQ1_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF:IQ1_S
Use Docker
docker model run hf.co/hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF:IQ1_S
- LM Studio
- Jan
- Ollama
How to use hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF with Ollama:
ollama run hf.co/hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF:IQ1_S
- Unsloth Studio
How to use hellohazime/Kimi-K3-REAP640-IQ1_S-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-REAP640-IQ1_S-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-REAP640-IQ1_S-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-REAP640-IQ1_S-GGUF to start chatting
- Pi
How to use hellohazime/Kimi-K3-REAP640-IQ1_S-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-REAP640-IQ1_S-GGUF:IQ1_S
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-REAP640-IQ1_S-GGUF:IQ1_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use hellohazime/Kimi-K3-REAP640-IQ1_S-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-REAP640-IQ1_S-GGUF:IQ1_S
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-REAP640-IQ1_S-GGUF:IQ1_S
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use hellohazime/Kimi-K3-REAP640-IQ1_S-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-REAP640-IQ1_S-GGUF:IQ1_S
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-REAP640-IQ1_S-GGUF:IQ1_S" \ --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"
- Docker Model Runner
How to use hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF with Docker Model Runner:
docker model run hf.co/hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF:IQ1_S
- Lemonade
How to use hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hellohazime/Kimi-K3-REAP640-IQ1_S-GGUF:IQ1_S
Run and chat with the model
lemonade run user.Kimi-K3-REAP640-IQ1_S-GGUF-IQ1_S
List all available models
lemonade list
Kimi-K3-REAP640-IQ1_S-GGUF
What is this? / これは何?
Moonshot AI の 2.8 兆パラメータモデル Kimi-K3 を、 Mac Studio(512 GB)1台で動くサイズにしたものです。
K3 の最小の GGUF(Unsloth の 1-bit 版)でも 594 GB あり、512 GB の Mac には 載りません。このモデルは、英語とプログラミングにほぼ使われない専門家 (expert)を 896 個中 256 個削って 441 GB にしたものです。残った expert の 中身は Unsloth 版と 1 バイトも違いません(削っただけで、再圧縮していません)。
英語のコーディングエージェント専用です。実際に Moonshot 純正の Kimi Code CLI を繋いで SWE-Lancer の実タスクを解けることを確認済み。その代わり中国語・日本語などは 意図的に犠牲にしています(削った expert がそれらを担っていたため)。
Kimi-K3 that fits and runs on a single 512 GB Mac Studio. Unsloth's UD-IQ1_S dynamic 1-bit quant (594 GB, all 896 experts), REAP-pruned to 640 experts / 441 GB with an English + code calibration corpus.
| experts | 640 of 896 per MoE layer (uniform), REAP saliency ranking |
| calibration | English web + code only — 93.53% saliency mass retained |
| quantization | untouched — surviving experts are byte-identical to UD-IQ1_S (slab copy along the expert axis, no requantization) |
| router / norms | F32, inherited intact from the Unsloth quant |
| size | 441.4 GB (fits 512 GB unified memory with KV + compute headroom) |
| measured | Mac Studio M3 Ultra 512 GB: ~47 tok/s prefill, ~3.0 tok/s decode, full Metal offload |
Verified vs. not verified / 確認済みと未確認
Honest scorecard. This model is three days old; here is exactly what has been measured and what has not.
Verified(確認済み):
| claim | evidence |
|---|---|
| Loads and runs on one 512 GB M3 Ultra, full Metal offload | measured: 441.4 GB, ~220 s load |
| Speed | measured: ~47 tok/s prefill, ~3.0 tok/s decode |
| Drives Moonshot's Kimi Code CLI end-to-end (24 tools, ~24k-token system prompt) | 8 SWE-Lancer IC-SWE Diamond tasks run end-to-end: 3/3 on K2.7-solved tasks ($2,000/$2,000) plus 2/5 on K2.7-failed tasks; grading untouched |
| Survives the exact agentic request that deterministically breaks the 4-bit MLX REAP builds | replayed byte-identical request → clean on-task tool call |
| Pruning is lossless for surviving experts | identity-prune is byte-identical (pinned by tests); router/norms stay F32 |
| Not a strict subset of the 2-bit K2.7 baseline | 2/5 solved ($1,500) on the five cheapest tasks that K2.7-Q2 failed |
| en+code saliency retention | 93.53% of routed saliency mass at keep-640 |
Not verified(未確認):
| open question | status |
|---|---|
| Full 198-task SWE-Lancer performance | only 3 tasks run; a full run takes weeks at 3 tok/s |
| Perplexity / MMLU / standard benchmarks | not measured at all |
| Long-context quality beyond ~30k prompt tokens | context is set to 131k but only exercised to ~30k |
| Chinese, Japanese, and every other language | expected broken by design (en+code calibration); degree not measured |
| Vision | mmproj not included; this prune touched text tensors only. Unsloth's mmproj may work but is untested here |
| Sustained multi-day agent sessions | longest observed run: ~68 min/task |
Verification details
Driven by Kimi Code CLI (Moonshot's
own agent, 24 tools, ~24k-token system prompt) inside SWE-Lancer task
containers, via llama-server:
- 3/3 correct on SWE-Lancer IC-SWE (Diamond) smoke tasks (28096_836, 18827_741, 29618_781 — $2,000/$2,000 earned), grading untouched.
- The same agentic request deterministically degenerates on the 4-bit MLX REAP builds that keep only 242–326 experts (242@4bit → hard repetition loops; 326 mixed → worse). Keeping more experts at ~1.6 bpw beats keeping fewer at 4 bpw for agentic coherence.
- The unpruned 594 GB quant answers the identical request correctly (verified via disk-offload), so the prune's damage on this workload is not observable at this task scale.
What was traded away — on purpose
Calibration decides what survives a prune. This build was calibrated on 35% multi-language code / 20% Python / 45% English web, nothing else. Chinese, Japanese and other languages will be degraded, likely severely (kimi-k3-mlx measured total collapse of Chinese on an en+code-calibrated prune). This is a coding-agent build, not a general-purpose one.
Run it
Needs Kimi-K3 support in llama.cpp — currently the
Unsloth fork branch
kimi-k3-fullsize-vision (built on PR #26185):
llama-server -m Kimi-K3-REAP640-IQ1_S-00001-of-00010.gguf \
-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 withreasoning_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-mlx]
type = "openai"
base_url = "http://127.0.0.1:8090/v1"
api_key = "local"
[models.local-k3]
provider = "local-mlx"
model = "k3"
max_context_size = 131072
How it was made
Expert saliency and the keep-640 selection were produced with the calibration
scripts from pipenetwork's kimi-k3-mlx repo (reap_calibrate.py /
reap_plan.py — REAP saliency gate·‖expert output‖ streamed layer-by-layer
over the 1.56 TB MXFP4 source, peak ~58 GB RAM), with the calibration mix
swapped to English + code only. The only new code is
a small script that applies the
plan to the GGUF: a byte-slab slice along the outermost expert axis (expert
slabs are contiguous and quantization blocks never cross them), with the router
rows and exp_probs_b renumbered to the keep order. An identity prune
reproduces the input byte-for-byte (pinned by tests).
Credits: Moonshot AI (Kimi-K3, Kimi Code CLI), Unsloth (dynamic 1-bit quant whose protected router/norms this build inherits), Cerebras REAP (saliency criterion), kimi-k3-mlx (calibration machinery and the measured warnings this build steers by).
- Downloads last month
- -
1-bit