Instructions to use thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP 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 thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP 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 thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS # Run inference directly in the terminal: llama cli -hf thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS # Run inference directly in the terminal: llama cli -hf thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
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 thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS # Run inference directly in the terminal: ./llama-cli -hf thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
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 thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
Use Docker
docker model run hf.co/thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
- LM Studio
- Jan
- Ollama
How to use thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP with Ollama:
ollama run hf.co/thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
- Unsloth Studio
How to use thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP 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 thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP 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 thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP to start chatting
- Pi
How to use thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
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": "thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
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 thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
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 "thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS" \ --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 thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP with Docker Model Runner:
docker model run hf.co/thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
- Lemonade
How to use thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP:IQ4_XS
Run and chat with the model
lemonade run user.Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP-IQ4_XS
List all available models
lemonade list
About
- WIP, more GGUF quantizations are coming after some tests
What you probably want instead is one of the APEX gguf builds by gbuzhf:
However, sometimes you want to see if a more classic quantization will be more suitable for your specific task, or simply want to fit (or use) a specific vram target. In this case, "one can't go wrong with bartowski builds (c) reddit" -- except for these are sadly missing any draft models, and a 20-30 %% gain in inference speed is not something to easily give up on.
Hence, I'll be adding here some "franken-merges" of original bartowski builds with 20 MTP layers added to it from unsloth/Qwen3.6-35B-A3B-MTP-GGUF model using a [conversion script] made by buzz.
All uploaded models were tested and add a ~20-30 % gain in inference speed compared to original ("ungrafted") models on AMD hardware.
(It is strongly recommended to use at most q8_0 quantizations for KV cache if your hardware supoorts it, especially if it has a chance to be more performant on it.)
llama.cpp invocation examples
llama.cpp invocation examples - Kwaipilot_KAT-Coder-V2.5-Dev-IQ4_XS.bartowski.mtp.q8_k_xl.gguf
- this fits 24 GiB VRAM due to using quantized KV cache
llama-server \
--model Kwaipilot_KAT-Coder-V2.5-Dev-IQ4_XS.bartowski.mtp.q8_k_xl.gguf \
--no-mmproj \
--flash-attn on \
--n-gpu-layers all \
--n-gpu-layers-draft all \
--kv-offload \
--kv-unified \
--cache-type-k q8_0 \
--cache-type-v q8_0 \
--temperature 1.0 \
--top-k 20 \
--top-p 0.95 \
--min-p 0 \
--chat-template-kwargs '{"enable_thinking":false}' \
--reasoning-preserve \
--spec-type draft-mtp \
--spec-draft-n-max 4 \
--cache-type-k-draft q8_0 \
--cache-type-v-draft q8_0
llama.cpp invocation examples - find optimal mtp length
As for --spec-draft-n-max 4 setting above -- the exact number would obviously depend on your GPU model.
You might want to do a log scale search by trying
spec-draft-n-max := 1,2,4,8,...(unlikely more) while the inference speed grows or stays the same,- and then using binary search to narrow down the exact value that works best for you on your typical tasks;
- for a quick control check, your server log will show something like:
- nb: showing results for the same model running two consequitive coding tasks
[37813] 812.35.434.815 I slot launch_slot_: id 0 | task 56272 | processing task, is_child = 0
[37813] 812.37.748.230 I slot print_timing: id 0 | task 56272 | prompt eval time = 310.31 ms / 177 tokens ( 1.75 ms per token, 570.40 tokens per second)
[37813] 812.37.748.234 I slot print_timing: id 0 | task 56272 | eval time = 2002.97 ms / 400 tokens ( 5.01 ms per token, 199.70 tokens per second)
[37813] 812.37.748.234 I slot print_timing: id 0 | task 56272 | total time = 2313.28 ms / 577 tokens
[37813] 812.37.748.235 I slot print_timing: id 0 | task 56272 | graphs reused = 52595
[37813] 812.37.748.238 I slot print_timing: id 0 | task 56272 | draft acceptance = 0.95482 ( 317 accepted / 332 generated), mean len = 4.82
[37813] 812.37.749.091 I slot release: id 0 | task 56272 | stop processing: n_tokens = 29120, truncated = 0
[37813] 812.38.114.222 I slot get_availabl: id 0 | task -1 | selected slot by LCP similarity, sim_best = 0.988 (> 0.100 thold), f_keep = 1.000
[37813] 812.38.115.131 I slot launch_slot_: id 0 | task 56358 | processing task, is_child = 0
[37813] 812.38.767.224 I slot print_timing: id 0 | task 56358 | prompt eval time = 440.40 ms / 341 tokens ( 1.29 ms per token, 774.29 tokens per second)
[37813] 812.38.767.228 I slot print_timing: id 0 | task 56358 | eval time = 211.57 ms / 20 tokens ( 10.58 ms per token, 94.53 tokens per second)
[37813] 812.38.767.228 I slot print_timing: id 0 | task 56358 | total time = 651.97 ms / 361 tokens
[37813] 812.38.767.229 I slot print_timing: id 0 | task 56358 | graphs reused = 52603
[37813] 812.38.767.232 I slot print_timing: id 0 | task 56358 | draft acceptance = 0.33333 ( 12 accepted / 36 generated), mean len = 2.33
As you can see, we could have also tried --spec-draft-n-max 5 and see if that would improve the benchmarks: basically as long as "mean len" frequently shows values
which are greater than your spec-draft-n-max parameter -- you can still increment it by at least 1 and see if it improves your statistics (and waiting times).
Also, in some scenarios there could be some use for additional settings like --spec-draft-p-min 0.5.
I am no expert, but in my tests I had some luck with first determining the optimal --spec-draft-n-max value,
and then seeing if raising up the acceptance min level (and/or the "split" values such as --spec-draft-p-split) will improve things a little more.
- Downloads last month
- 558
4-bit
Model tree for thread13/Kwaipilot_KAT-Coder-V2.5-Dev-GGUF-MTP
Base model
Kwaipilot/KAT-Coder-V2.5-Dev