Text Generation
GGUF
English
Chinese
kat-coder
quantized
rocm
amd
rdna4
gfx1201
vulkan
Mixture of Experts
code
experimental
conversational
Instructions to use 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-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 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-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 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP # Run inference directly in the terminal: llama cli -hf 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP # Run inference directly in the terminal: llama cli -hf 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP # Run inference directly in the terminal: ./build/bin/llama cli -hf 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
Use Docker
docker model run hf.co/1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
- Llama new
- LM Studio
- Jan
- vLLM
How to use 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-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": "1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
- Ollama
How to use 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF with Ollama:
ollama run hf.co/1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
- Unsloth Desktop
- Pi
How to use 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF with Docker Model Runner:
docker model run hf.co/1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
- Lemonade
How to use 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
Run and chat with the model
lemonade run user.KAT-Coder-V2.5-Dev-ROCMFP4-GGUF-Q4_0_ROCMFP
List all available models
lemonade list
- Hermes Agent
How to use 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-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 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
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:9931/v1 hermes config set model.default 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf 1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP
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:9931/v1 \ --custom-model-id "1337Hero/KAT-Coder-V2.5-Dev-ROCMFP4-GGUF:Q4_0_ROCMFP" \ --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"
Add wikitext-2 perplexity vs BF16 source; revise file recommendation
Browse files36 unmodified lines37383940414243444546474849505152535455565728 unmodified lines868788899091929394959697989910010110220 unmodified lines12312412512612712812961 unmodified lines19119219319419519619736 unmodified lines> anyway, do not trust the output.> [!WARNING]> Both files load, generate coherent output, and were throughput-benchmarked> on RDNA4 `gfx1201`. That is the **only** validation performed. No Strix Halo> testing and **no quality evaluation of any kind** β see [What was not> measured](#what-was-not-measured) before relying on either file.## Which file?| File | Size | Effective BPW | Pick it if || --- | ---: | ---: | --- || `KAT-Coder-V2.5-Dev-Q4_0_ROCMFP4_STRIX_LEAN.gguf` | 17.32 GiB | 4.29 | You want the smaller, faster file. Recommended default. || `KAT-Coder-V2.5-Dev-Q4_0_ROCMFP4.gguf` | 21.18 GiB | 5.25 | You want more bits on the expert down-projections. |`STRIX_LEAN` is 18% smaller *and* measurably faster on both backends, so it isthe recommended starting point despite the Strix-oriented name. The recipe wastuned on `gfx1151`; nothing about the file format is Strix-specific.## Why the sizes differ from the nominal BPW28 unmodified lines- **Use Vulkan on this hardware.** Vulkan decodes roughly **2Γ faster** thanHIP/ROCm for both files (122 vs 59 t/s on `STRIX_LEAN`) and also leads onprompt fill. This matches ROCmFPX's own Strix Halo findings.- **`STRIX_LEAN` wins on both axes.** It is 18% smaller *and* faster β+13% decode and +5% prefill on Vulkan, +13% decode and +45% prefill on ROCm.No control quant (Q4_K_M or similar) was benchmarked, so these numbers comparethe two ROCmFP4 files against each other, not against ordinary GGUF quants.## What was not measured- **Output quality.** No perplexity, KL-divergence, HumanEval, or MBPPcomparison against the BF16 source. Neither file has been quality-checked atall.- **Agentic and tool-calling behavior**, which is the point of a coding model.Untested.- **Any hardware other than `gfx1201`.** Not tested on Strix Halo, RDNA3,20 unmodified lines```bash./build-rdna4/bin/llama-server \-m KAT-Coder-V2.5-Dev-Q4_0_ROCMFP4_STRIX_LEAN.gguf \-dev Vulkan0 \-ngl 999 \-fa on \61 unmodified lines- Requires the ROCmFPX fork; no upstream llama.cpp compatibility.- Validated on exactly one `gfx1201` host, batch 1, shallow context.- No quality evaluation of any kind has been published for these artifacts.- 34.66B MoE: needs ~18β22 GB for weights plus KV cache. Comfortable on a32 GB card, tight on 24 GB with meaningful context.36 unmodified lines373839404142434445464748495051525354555657585960616263646528 unmodified lines94959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313420 unmodified lines15515615715815916016161 unmodified lines22322422522622722822936 unmodified lines> anyway, do not trust the output.> [!WARNING]> Validation was performed on RDNA4 `gfx1201` only: both files load, generate> coherent output, were throughput-benchmarked, and were measured against the> BF16 source for wikitext-2 perplexity. No Strix Halo testing and **no> code-specific or agentic evaluation** β see [What was not> measured](#what-was-not-measured) before relying on either file.## Which file?| File | Size | Effective BPW | Wikitext-2 PPL | Pick it if || --- | ---: | ---: | ---: | --- || `KAT-Coder-V2.5-Dev-Q4_0_ROCMFP4.gguf` | 21.18 GiB | 5.25 | 6.9182 (+1.38%) | You care about output quality. **Recommended for coding.** || `KAT-Coder-V2.5-Dev-Q4_0_ROCMFP4_STRIX_LEAN.gguf` | 17.32 GiB | 4.29 | 7.1079 (+4.16%) | You need the smaller file or the extra decode speed. |This is a **real tradeoff, not a clean win for either file.** `STRIX_LEAN` is18% smaller and 13% faster at decode, but gives up three times as muchperplexity against the BF16 source. For a coding model β where a single wrongtoken breaks a program β the plain `Q4_0_ROCMFP4` is the safer default, and21.18 GiB still fits a 32 GB card comfortably.Take `STRIX_LEAN` if you are memory-constrained (24 GB cards), or if you arethroughput-bound and have validated that the quality holds on your own tasks.Its recipe was tuned on `gfx1151`; nothing about the file format isStrix-specific.## Why the sizes differ from the nominal BPW28 unmodified lines- **Use Vulkan on this hardware.** Vulkan decodes roughly **2Γ faster** thanHIP/ROCm for both files (122 vs 59 t/s on `STRIX_LEAN`) and also leads onprompt fill. This matches ROCmFPX's own Strix Halo findings.- **`STRIX_LEAN` is the faster file** β +13% decode and +5% prefill on Vulkan,+13% decode and +45% prefill on ROCm β but see the quality section belowbefore choosing it on speed alone.No control quant (Q4_K_M or similar) was benchmarked, so these numbers comparethe two ROCmFP4 files against each other, not against ordinary GGUF quants.## Measured quality β wikitext-2 perplexity`llama-perplexity`, full wikitext-2 test set (580 chunks), `-c 512 -b 512`,FlashAttention on, Vulkan. The BF16 source GGUF was measured on the same hostwith the same settings, split across three GPUs.| File | BPW | PPL | Ξ vs BF16 || --- | ---: | ---: | ---: || `KAT-Coder-V2.5-Dev-BF16.gguf` (source) | 16.01 | 6.8237 Β± 0.04537 | β || `Q4_0_ROCMFP4` | 5.25 | 6.9182 Β± 0.04607 | **+1.38%** || `Q4_0_ROCMFP4_STRIX_LEAN` | 4.29 | 7.1079 Β± 0.04762 | **+4.16%** |Both quants land where you would expect for their bit budgets, and neither isdegenerate. The gap between them is larger than the error bars, so it is areal difference and not measurement noise: `STRIX_LEAN` buys its 18% sizereduction with roughly 3Γ the perplexity cost.Perplexity is a weak proxy for coding ability. It measures next-tokenprediction on English Wikipedia, not code correctness or tool-call formatting.Treat it as a floor check β it rules out a broken quantization, it does notestablish that either file codes as well as the source.## What was not measured- **Coding ability.** No HumanEval, MBPP, or any code benchmark. Wikitext-2perplexity was measured (see above), but it does not measure codecorrectness.- **KL-divergence** against the BF16 source. Perplexity only.- **Agentic and tool-calling behavior**, which is the point of a coding model.Untested.- **Any hardware other than `gfx1201`.** Not tested on Strix Halo, RDNA3,20 unmodified lines```bash./build-rdna4/bin/llama-server \-m KAT-Coder-V2.5-Dev-Q4_0_ROCMFP4.gguf \-dev Vulkan0 \-ngl 999 \-fa on \61 unmodified lines- Requires the ROCmFPX fork; no upstream llama.cpp compatibility.- Validated on exactly one `gfx1201` host, batch 1, shallow context.- Quality evidence is wikitext-2 perplexity only; no code or agentic evals.- 34.66B MoE: needs ~18β22 GB for weights plus KV cache. Comfortable on a32 GB card, tight on 24 GB with meaningful context.
README.md+49-17