GGUF
llama.cpp
turboquant
qwen35moe
quantized
imatrix
mtp
speculative-decoding
coding
agent
consumer-gpu
offmoreal
conversational
Instructions to use offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-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 offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-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 offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-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 offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-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 offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-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 offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M
Use Docker
docker model run hf.co/offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF with Ollama:
ollama run hf.co/offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-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": "offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF with Docker Model Runner:
docker model run hf.co/offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M
- Lemonade
How to use offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-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 offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-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 offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-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 "offmonreal/KAT-Coder-V2.5-Dev-MaxQuality-MTP-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"
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -23,6 +23,7 @@ tags:
|
|
| 23 |
| Variant | Context | Generation speed | CPU offload | Fits entirely in 16 GB VRAM |
|
| 24 |
|---|---:|---:|---|:---:|
|
| 25 |
| **`Q2_K-AllGPU` MTP** | 10K | **~156 tok/s** | **none β whole model + MTP head resident in VRAM** | β
|
|
|
|
|
| 26 |
| `Q4_K_M` MTP | 10K | ~65 tok/s | ~20 expert layers on CPU | β |
|
| 27 |
|
| 28 |
`Q2_K-AllGPU` is the one to reach for on a single 16 GB consumer card: routed experts quantized to Q2_K (with the more error-sensitive `down` projection bumped one step to Q3_K to claw back quality), zero CPU offload. Expect a real, measured **~10-15% quality drop** versus the Q4 file in exchange for that speed β this is the most aggressive quant in this repo, not a free lunch.
|
|
@@ -48,9 +49,10 @@ The head was not trained for KAT-Coder. KAT-Coder is a fine-tune of `Qwen/Qwen3.
|
|
| 48 |
| File | Size | BPW | Recipe | Intended use |
|
| 49 |
|---|---:|---:|---|---|
|
| 50 |
| `KAT-Coder-V2.5-Dev_Q4_K_M.gguf` | 20.55 GiB | 4.88 | Same as Q4_K_M iMatrix | Higher quality, MTP for a speed bonus, requires CPU offload on 16 GB cards |
|
|
|
|
| 51 |
| `KAT-Coder-V2.5-Dev_Q2_K-AllGPU.gguf` | 13.09 GiB | 3.03 (trunk) | Routed-expert `gate`/`up` at Q2_K, `down` bumped to Q3_K, embeddings/output at Q5_K, attention at Q4_K | **AllGPU**: the whole model, MTP head included, fits in a 16 GB card with zero CPU offload β the fastest file in this repo, at a real quality cost from the aggressive routed-expert Q2_K |
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
## MTP quantization
|
| 56 |
|
|
@@ -90,6 +92,23 @@ llama-server \
|
|
| 90 |
--batch-size 262144 --ubatch-size 1024 --cache-reuse 256
|
| 91 |
```
|
| 92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
### Context-compaction agent β prompt-throughput profile (MTP disabled)
|
| 94 |
|
| 95 |
Not every workload wants MTP. Context-compaction / summarization agents feed the model a huge prompt and care about *ingestion* speed, not generation speed β MTP's draft-then-verify overhead only adds latency there for no benefit, so this profile leaves `--spec-type` off entirely (the file still has the MTP head baked in, it's just unused). Fewer layers need CPU offload as a result (only 4, vs. 20 for the Q4 generation profile), and `--ubatch-size` is pushed up to 2048 to maximize prefill throughput instead of favoring low-latency decode.
|
|
|
|
| 23 |
| Variant | Context | Generation speed | CPU offload | Fits entirely in 16 GB VRAM |
|
| 24 |
|---|---:|---:|---|:---:|
|
| 25 |
| **`Q2_K-AllGPU` MTP** | 10K | **~156 tok/s** | **none β whole model + MTP head resident in VRAM** | β
|
|
| 26 |
+
| `Q3_K_M` MTP | 10K | ~100 tok/s | 10 expert layers on CPU | β |
|
| 27 |
| `Q4_K_M` MTP | 10K | ~65 tok/s | ~20 expert layers on CPU | β |
|
| 28 |
|
| 29 |
`Q2_K-AllGPU` is the one to reach for on a single 16 GB consumer card: routed experts quantized to Q2_K (with the more error-sensitive `down` projection bumped one step to Q3_K to claw back quality), zero CPU offload. Expect a real, measured **~10-15% quality drop** versus the Q4 file in exchange for that speed β this is the most aggressive quant in this repo, not a free lunch.
|
|
|
|
| 49 |
| File | Size | BPW | Recipe | Intended use |
|
| 50 |
|---|---:|---:|---|---|
|
| 51 |
| `KAT-Coder-V2.5-Dev_Q4_K_M.gguf` | 20.55 GiB | 4.88 | Same as Q4_K_M iMatrix | Higher quality, MTP for a speed bonus, requires CPU offload on 16 GB cards |
|
| 52 |
+
| `KAT-Coder-V2.5-Dev_Q3_K_M_imatrix_MTP.gguf` | 16.89 GiB | 3.98 | Same as Q3_K_M iMatrix | Balanced quality/size, MTP for a speed bonus, lighter CPU offload than Q4 |
|
| 53 |
| `KAT-Coder-V2.5-Dev_Q2_K-AllGPU.gguf` | 13.09 GiB | 3.03 (trunk) | Routed-expert `gate`/`up` at Q2_K, `down` bumped to Q3_K, embeddings/output at Q5_K, attention at Q4_K | **AllGPU**: the whole model, MTP head included, fits in a 16 GB card with zero CPU offload β the fastest file in this repo, at a real quality cost from the aggressive routed-expert Q2_K |
|
| 54 |
|
| 55 |
+
All are calibrated with the same iMatrix as the base release (`calibration_datav5.txt`, 802 chunks). `Q4_K_M.gguf` and `Q3_K_M_imatrix_MTP.gguf` are byte-identical to the non-MTP release except for the added MTP block; `Q2_K-AllGPU.gguf` has a changed base recipe (see above).
|
| 56 |
|
| 57 |
## MTP quantization
|
| 58 |
|
|
|
|
| 92 |
--batch-size 262144 --ubatch-size 1024 --cache-reuse 256
|
| 93 |
```
|
| 94 |
|
| 95 |
+
### Q3_K_M MTP β 10 expert layers on CPU
|
| 96 |
+
|
| 97 |
+
```bash
|
| 98 |
+
llama-server \
|
| 99 |
+
--jinja --host 0.0.0.0 --port 8080 \
|
| 100 |
+
-m ~/models/gguf/KAT-Coder-V2.5-Dev_Q3_K_M_imatrix_MTP.gguf \
|
| 101 |
+
--spec-type draft-mtp --spec-draft-n-max 3 \
|
| 102 |
+
--n-gpu-layers 99 --n-cpu-moe 0 \
|
| 103 |
+
-ot "blk\.(3[0-9])\.ffn_.*_exps\.weight=CPU" \
|
| 104 |
+
--ctx-size 131072 --parallel 1 \
|
| 105 |
+
--flash-attn on \
|
| 106 |
+
--cache-type-k turbo3 --cache-type-v turbo3 \
|
| 107 |
+
--batch-size 8192 --ubatch-size 512 --cache-reuse 256
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
Measured **~100 tok/s at 10K context**, only the last 10 expert layers (`blk.30`-`blk.39`) offloaded to CPU β a lighter trunk than Q4_K_M needs fewer layers moved off GPU.
|
| 111 |
+
|
| 112 |
### Context-compaction agent β prompt-throughput profile (MTP disabled)
|
| 113 |
|
| 114 |
Not every workload wants MTP. Context-compaction / summarization agents feed the model a huge prompt and care about *ingestion* speed, not generation speed β MTP's draft-then-verify overhead only adds latency there for no benefit, so this profile leaves `--spec-type` off entirely (the file still has the MTP head baked in, it's just unused). Fewer layers need CPU offload as a result (only 4, vs. 20 for the Q4 generation profile), and `--ubatch-size` is pushed up to 2048 to maximize prefill throughput instead of favoring low-latency decode.
|