Instructions to use josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K 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 josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K 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 josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K # Run inference directly in the terminal: llama cli -hf josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K # Run inference directly in the terminal: llama cli -hf josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
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 josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K # Run inference directly in the terminal: ./llama-cli -hf josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
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 josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
Use Docker
docker model run hf.co/josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
- LM Studio
- Jan
- vLLM
How to use josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
- Ollama
How to use josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K with Ollama:
ollama run hf.co/josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
- Unsloth Studio
How to use josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K 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 josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K 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 josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K to start chatting
- Pi
How to use josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
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": "josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K with Docker Model Runner:
docker model run hf.co/josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
- Lemonade
How to use josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
Run and chat with the model
lemonade run user.KAT-Coder-V2.5-Dev-Q2_K-Q2_K
List all available models
lemonade list
- Hermes Agent
How to use josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
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 josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K
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 "josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K:Q2_K" \ --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"
KAT-Coder V2.5 Dev — Q2_K (GGUF)
GGUF Q2_K quantization of Kwaipilot/KAT-Coder-V2.5-Dev, a MoE coding agent (35B total / 3B active) with reasoning and tool calling support.
👆 READ THIS FIRST — CHAT MODE IS REQUIRED
KAT-Coder is a reasoning model. It must be called through a chat interface (Ollama
/api/chat,ollama run, the OpenAI-compatible chat endpoint, or a Transformers/vLLMapply_chat_template).❌ If you hit a raw completion endpoint (
/api/generate) with a bare prompt, the model will dump its internalthinkingtokens directly into the output — it looks like a wall of gibberish. That is expected for reasoning models, not a bug.✅ Every example below is pre-tested and works.
Specifications
| Property | Value |
|---|---|
| Quantization | Q2_K (GGUF) |
| Bits per weight | ~2.98 BPW |
| Architecture | qwen3.5moe (Qwen3.5MoE) |
| Parameters | 34.7B total / ~3B active |
| File size | ~12.3 GB (FP16 ~66 GB) |
| Max context | 262,144 tokens |
| Format | GGUF (llama.cpp / Ollama compatible) |
| License | Apache 2.0 |
Requirements
- Ollama ≥ 0.32.x (architecture
qwen3.5moesupport). - At least 16 GB of VRAM (Q2_K needs ~13 GB) or ~16 GB of RAM on CPU.
Usage with Ollama
1. Create the model
Clone the repo and use the included Modelfile:
git lfs install
git clone https://huggingface.co/josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K
cd KAT-Coder-V2.5-Dev-Q2_K
ollama create katcoder -f Modelfile
Or import directly by path:
FROM josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K
2. Chat with it (correct usage)
Terminal:
ollama run katcoder "Write a Python function to reverse a string"
REST — /api/chat (not /api/generate):
curl http://localhost:11434/api/chat -d '{
"model": "katcoder",
"messages": [{ "role": "user", "content": "Write a Python function to reverse a string" }]
}'
Python — official Ollama SDK (or openai client against http://localhost:11434/v1):
from ollama import chat
resp = chat(model="katcoder", messages=[{"role": "user", "content": "Write a Python function to reverse a string"}])
print(resp["message"]["content"]) # final answer only
print(resp["message"].get("thinking")) # reasoning (separate from answer)
🔎 Note on output: the reasoning lives in
message.thinkingand the final answer inmessage.content. If you see the thinking mixed into the visible answer, you are using a raw-completion endpoint — switch to chat.
Included Modelfile
# KAT-Coder V2.5 Dev (Q2_K)
FROM ./kat-coder-v2.5-dev-q2_k.gguf
PARAMETER temperature 0.6
PARAMETER top_p 0.9
PARAMETER top_k 40
PARAMETER repeat_penalty 1.1
PARAMETER num_ctx 65536
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|im_start|>"
SYSTEM """You are KAT-Coder, a highly capable AI coding agent built on Qwen3.5MoE.
You help users write, review, refactor, debug and explain code across many
languages. Reason step by step before answering, and produce clear, concise
and correct code. When asked to modify or create files, respect the user's
conventions and explain any assumptions you make.
"""
Usage with llama.cpp
Use chat mode (llama.cpp auto-applies the GGUF chat template, preserving reasoning):
llama-cli -m kat-coder-v2.5-dev-q2_k.gguf -cnp "Write a Python function to reverse a string"
-cnp= continuous-chat prompt. For an OpenAI-server, runllama-server -m ...gguf -c 65536and point a client at/v1/chat/completions.
About the original model
KAT-Coder-V2.5-Dev is a 35B MoE model (3B active) trained with SFT/RL for agentic coding, reaching SOTA results on benchmarks such as SWE-bench Verified (69.40) and SWE-bench Multilingual (63.00) among models of similar scale.
- Tech / Report: arXiv:2607.05471
- License: Apache 2.0
Disclaimer
Q2_K is an aggressive quantization intended mainly for testing and limited hardware. For production/maximum quality, prefer higher quantizations (Q4_K_M, Q5_K_M, Q6_K, etc.) if you have enough VRAM.
- Downloads last month
- 945
2-bit
Model tree for josenavegantesjr/KAT-Coder-V2.5-Dev-Q2_K
Base model
Kwaipilot/KAT-Coder-V2.5-Dev