GGUF
English
Chinese
quantized
apex
Mixture of Experts
mixture-of-experts
qwen3
code
coder
agentic-coding
agent
conversational
Instructions to use mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-APEX-GGUF # Run inference directly in the terminal: llama cli -hf mudler/KAT-Coder-V2.5-Dev-APEX-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mudler/KAT-Coder-V2.5-Dev-APEX-GGUF # Run inference directly in the terminal: llama cli -hf mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-APEX-GGUF # Run inference directly in the terminal: ./llama-cli -hf mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-APEX-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf mudler/KAT-Coder-V2.5-Dev-APEX-GGUF
Use Docker
docker model run hf.co/mudler/KAT-Coder-V2.5-Dev-APEX-GGUF
- LM Studio
- Jan
- Ollama
How to use mudler/KAT-Coder-V2.5-Dev-APEX-GGUF with Ollama:
ollama run hf.co/mudler/KAT-Coder-V2.5-Dev-APEX-GGUF
- Unsloth Studio
How to use mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-APEX-GGUF to start chatting
- Pi
How to use mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-APEX-GGUF
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": "mudler/KAT-Coder-V2.5-Dev-APEX-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-APEX-GGUF
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use mudler/KAT-Coder-V2.5-Dev-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 mudler/KAT-Coder-V2.5-Dev-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 "mudler/KAT-Coder-V2.5-Dev-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"
- Docker Model Runner
How to use mudler/KAT-Coder-V2.5-Dev-APEX-GGUF with Docker Model Runner:
docker model run hf.co/mudler/KAT-Coder-V2.5-Dev-APEX-GGUF
- Lemonade
How to use mudler/KAT-Coder-V2.5-Dev-APEX-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mudler/KAT-Coder-V2.5-Dev-APEX-GGUF
Run and chat with the model
lemonade run user.KAT-Coder-V2.5-Dev-APEX-GGUF-{{QUANT_TAG}}List all available models
lemonade list
File size: 3,967 Bytes
1300eb4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | ---
license: apache-2.0
base_model: Kwaipilot/KAT-Coder-V2.5-Dev
language:
- en
- zh
tags:
- gguf
- quantized
- apex
- moe
- mixture-of-experts
- qwen3
- code
- coder
- agentic-coding
- agent
---
<!-- apex-banner-v2 -->
<div style="background-color: #f59e0b; color: white; padding: 20px; border-radius: 10px; text-align: center; margin: 20px 0;">
<h2 style="color: white; margin: 0 0 10px 0;">⚡ Each donation = another big MoE quantized</h2>
<p style="font-size: 18px; margin: 0 0 15px 0;">I host <b>30+ free APEX MoE quantizations</b> as independent research. My only local hardware is an <b>NVIDIA DGX Spark</b> (122 GB unified memory) — enough for ~30-50B-class MoEs, but <b>bigger ones (200B+) require rented compute</b> on H100/H200/Blackwell, typically $20-100 per quant.<br>If APEX quants are useful to you, your support directly funds those bigger runs.</p>
<p style="font-size: 20px; margin: 0;">
<a href="https://www.patreon.com/cw/mudler" style="color: white; text-decoration: underline;">🎉 Patreon (Monthly)</a> |
<a href="https://www.buymeacoffee.com/mudler" style="color: white; text-decoration: underline;">☕ Buy Me a Coffee</a> |
<a href="https://github.com/sponsors/mudler" style="color: white; text-decoration: underline;">⭐ GitHub Sponsors</a>
</p>
</div>
# KAT-Coder-V2.5-Dev — APEX GGUF
**APEX (Adaptive Precision for EXpert Models)** quantizations of [Kwaipilot/KAT-Coder-V2.5-Dev](https://huggingface.co/Kwaipilot/KAT-Coder-V2.5-Dev) — Kwaipilot's Mixture-of-Experts model for agentic coding.
**Brought to you by the [LocalAI](https://github.com/mudler/LocalAI) team** | [APEX Project](https://github.com/mudler/apex-quant) | [Technical Report](https://github.com/mudler/apex-quant/blob/main/paper/APEX_Technical_Report.pdf)
## Available Files
| File | Profile | Best For |
|------|---------|----------|
| KAT-Coder-V2.5-Dev-APEX-I-Balanced.gguf | I-Balanced | Best overall — imatrix-enhanced |
| KAT-Coder-V2.5-Dev-APEX-I-Quality.gguf | I-Quality | Highest quality with imatrix |
| KAT-Coder-V2.5-Dev-APEX-Quality.gguf | Quality | Highest quality (no imatrix) |
| KAT-Coder-V2.5-Dev-APEX-Balanced.gguf | Balanced | General purpose |
| KAT-Coder-V2.5-Dev-APEX-I-Compact.gguf | I-Compact | Consumer GPUs, imatrix-enhanced |
| KAT-Coder-V2.5-Dev-APEX-Compact.gguf | Compact | Consumer GPUs |
| KAT-Coder-V2.5-Dev-APEX-I-Mini.gguf | I-Mini | Smallest viable, fastest inference |
## What is APEX?
APEX is a quantization strategy for Mixture-of-Experts (MoE) models. It classifies tensors by role (routed expert, shared expert, attention) and applies a layer-wise precision gradient — edge layers (first/last 5) get higher precision, middle layers compress more aggressively. I-variants use diverse imatrix calibration (chat, code, reasoning, tool-calling, agentic traces, Wikipedia).
In MoE models the routed-expert FFN tensors dominate the weight budget but only ~8/256 experts activate per token, so APEX compresses middle-layer experts hardest while preserving edge layers, attention, and the always-active shared expert.
See the [APEX project](https://github.com/mudler/apex-quant) for full details.
## Architecture
- **Model**: KAT-Coder-V2.5-Dev (Qwen3_5MoeForConditionalGeneration)
- **Layers**: 40 · **Experts**: 256 routed + 1 shared (8 active per token)
- **Attention**: 16 heads / 2 KV, hybrid (full attention every 4th layer)
- **Calibration**: v1.3 diverse dataset
> Note: the config advertises an image token, but the released checkpoint ships no vision encoder weights, so these are text-only GGUFs (no mmproj).
## Run with LocalAI
```bash
local-ai run mudler/KAT-Coder-V2.5-Dev-APEX-GGUF@KAT-Coder-V2.5-Dev-APEX-I-Balanced.gguf
```
## Credits
APEX is brought to you by the [LocalAI](https://github.com/mudler/LocalAI) team. Built on [llama.cpp](https://github.com/ggerganov/llama.cpp). Base model by [Kwaipilot](https://huggingface.co/Kwaipilot).
|