Text Generation
GGUF
Safetensors
qwen3_5_moe
Mixture of Experts
apex
quantized
imatrix
torch-imatrix
mtp
speculative-decoding
coding
agentic-coding
llama.cpp
conversational
Instructions to use Myric/KAT-Coder-V2.5-Dev-MTP-APEX-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 Myric/KAT-Coder-V2.5-Dev-MTP-APEX-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 Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF # Run inference directly in the terminal: llama cli -hf Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF # Run inference directly in the terminal: llama cli -hf Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
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 Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF # Run inference directly in the terminal: ./llama-cli -hf Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
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 Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
Use Docker
docker model run hf.co/Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
- LM Studio
- Jan
- vLLM
How to use Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Myric/KAT-Coder-V2.5-Dev-MTP-APEX-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": "Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
- Ollama
How to use Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF with Ollama:
ollama run hf.co/Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
- Unsloth Studio
How to use Myric/KAT-Coder-V2.5-Dev-MTP-APEX-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 Myric/KAT-Coder-V2.5-Dev-MTP-APEX-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 Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF to start chatting
- Pi
How to use Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
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": "Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF with Docker Model Runner:
docker model run hf.co/Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
- Lemonade
How to use Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
Run and chat with the model
lemonade run user.KAT-Coder-V2.5-Dev-MTP-APEX-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use Myric/KAT-Coder-V2.5-Dev-MTP-APEX-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 Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
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 Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF
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 "Myric/KAT-Coder-V2.5-Dev-MTP-APEX-GGUF" \ --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
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Kwaipilot/KAT-Coder-V2.5-Dev
|
| 4 |
+
tags:
|
| 5 |
+
- mtp
|
| 6 |
+
- speculative-decoding
|
| 7 |
+
- qwen3_5_moe
|
| 8 |
+
- experiment
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# KAT-Coder-V2.5-Dev — MTP head (experimental, un-fine-tuned baseline)
|
| 12 |
+
|
| 13 |
+
[Kwaipilot/KAT-Coder-V2.5-Dev](https://huggingface.co/Kwaipilot/KAT-Coder-V2.5-Dev) ships with
|
| 14 |
+
`mtp_num_hidden_layers: 0` — no MTP/NextN head at all, so no speculative-decoding speedup is
|
| 15 |
+
possible out of the box. This repo adds one back by transplanting
|
| 16 |
+
[Qwen/Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B)'s own trained MTP head onto
|
| 17 |
+
KAT-Coder. This is architecturally clean, not a hack: every relevant dimension (hidden_size,
|
| 18 |
+
expert count, attention/MoE shapes) matches exactly between the two models, since KAT-Coder is
|
| 19 |
+
itself built on the Qwen3.6-35B-A3B backbone.
|
| 20 |
+
|
| 21 |
+
**This is the naive, un-fine-tuned transplant** — the MTP head's weights are copied directly from
|
| 22 |
+
stock Qwen3.6 with zero training on KAT-Coder's own hidden-state distribution. A fine-tuning pass
|
| 23 |
+
(freezing KAT-Coder's own 40 layers entirely, training only this ~850M-parameter head) is a
|
| 24 |
+
planned follow-up; this repo documents the honest baseline before that.
|
| 25 |
+
|
| 26 |
+
## What's actually in this repo
|
| 27 |
+
|
| 28 |
+
Just **one new shard** (`model-00014-of-mtp.safetensors`, 1.69GB) containing the 19 MTP-related
|
| 29 |
+
tensors, plus a `config.json`/`model.safetensors.index.json` already merged to reference it
|
| 30 |
+
alongside KAT-Coder's own 13 original shards. Nothing else was touched — KAT-Coder's own 13
|
| 31 |
+
shards are byte-identical to the original release; this is a drop-in addition, not a full
|
| 32 |
+
re-upload of the 65GB checkpoint.
|
| 33 |
+
|
| 34 |
+
**To use**: put this repo's 3 files into a local copy of
|
| 35 |
+
[Kwaipilot/KAT-Coder-V2.5-Dev](https://huggingface.co/Kwaipilot/KAT-Coder-V2.5-Dev) alongside its
|
| 36 |
+
own 13 `model-*-of-00013.safetensors` shards (the `config.json`/index here already reference all
|
| 37 |
+
14 shards together).
|
| 38 |
+
|
| 39 |
+
## Baseline: draft-acceptance rate (before fine-tuning)
|
| 40 |
+
|
| 41 |
+
Measured via `llama-server --spec-type draft-mtp --spec-draft-n-max 2` on an APEX i-quality quant
|
| 42 |
+
(4.67 bpw) built from this checkpoint, 5 real from-scratch coding prompts, `n_predict=400` each:
|
| 43 |
+
|
| 44 |
+
| prompt | draft tokens | accepted | rate | tok/s |
|
| 45 |
+
|---|---:|---:|---:|---:|
|
| 46 |
+
| binary search tree (insert/delete/traverse) | 286 | 255 | 89.2% | 105.5 |
|
| 47 |
+
| CSV parser (stdlib only) | 114 | 84 | 73.7% | 94.6 |
|
| 48 |
+
| retry decorator w/ exponential backoff | 188 | 152 | 80.9% | 100.6 |
|
| 49 |
+
| merge two sorted linked lists | 74 | 58 | 78.4% | 97.6 |
|
| 50 |
+
| thread-safe LRU cache | 360 | 218 | 60.6% | 85.9 |
|
| 51 |
+
| **overall** | **1022** | **767** | **75.1%** | — |
|
| 52 |
+
|
| 53 |
+
For reference, the same KAT-Coder quant tier **without** any MTP head runs at ~70.8 tok/s solo
|
| 54 |
+
decode speed (measured separately, no speculative decoding available at all). So even this
|
| 55 |
+
un-fine-tuned transplant is already a real ~20-40% speedup, not a wash — acceptance rate varies
|
| 56 |
+
by task in a way that tracks predictability (the BST task, mostly standard tree-traversal
|
| 57 |
+
boilerplate, hits 89%; the LRU cache, with genuine locking/eviction logic, is the hardest at 61%).
|
| 58 |
+
|
| 59 |
+
## Attribution
|
| 60 |
+
|
| 61 |
+
- KAT-Coder base model: **Kwaipilot** — [Kwaipilot/KAT-Coder-V2.5-Dev](https://huggingface.co/Kwaipilot/KAT-Coder-V2.5-Dev) (Apache-2.0).
|
| 62 |
+
- MTP head weights: **Qwen** — [Qwen/Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) (Apache-2.0), transplanted unmodified.
|
| 63 |
+
- Quantization/serving: **llama.cpp** ([ggml-org](https://github.com/ggml-org/llama.cpp)).
|
| 64 |
+
|
| 65 |
+
Unofficial community experiment; not affiliated with or endorsed by Kwaipilot or Qwen.
|