Instructions to use prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-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 prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-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 prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16 # Run inference directly in the terminal: llama cli -hf prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16 # Run inference directly in the terminal: llama cli -hf prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
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 prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
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 prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
Use Docker
docker model run hf.co/prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
- LM Studio
- Jan
- vLLM
How to use prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-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": "prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
- Ollama
How to use prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF with Ollama:
ollama run hf.co/prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
- Unsloth Studio
How to use prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-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 prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-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 prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF to start chatting
- Pi
How to use prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
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": "prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF with Docker Model Runner:
docker model run hf.co/prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
- Lemonade
How to use prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
Run and chat with the model
lemonade run user.KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF-F16
List all available models
lemonade list
- Hermes Agent
How to use prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-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 prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
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 prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16
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 "prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF:F16" \ --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"
- KATCoder-2.5-Dev to ROCmFPX GGUF Conversion Guide with MTP Header
- π Prerequisites
- π οΈ Step 1: Environment Setup
- π₯ Step 2: Download KATCoder-2.5-Dev Weights
- π Step 3: Extract MTP from Qwen and Inject into KATCoder and then Convert to Base GGUF Format
- β‘ Step 4: Build the ROCmFPX Binary Compiler
- π Step 5: Quantize to ROCmFPX GGUF
- π Step 6: Inference Run
- π License & Attributions
- π Prerequisites
KATCoder-2.5-Dev to ROCmFPX GGUF Conversion Guide with MTP Header
This repository contains instructions and scripts to convert the Kwaipilot/KATCoder-2.5-Dev 35B model into the AMD hardware-optimized ROCmFPX GGUF format (such as ROCmFP4) using charlie12345/ROCmFPX and llama.cpp compilation tools.
ROCmFPX allows up to upto avg 80-90 tps text generation speeds on AMD hardware (like Strix Halo / gfx1151, RDNA2, RDNA3, and RDNA4) compared to standard stock K-quants.
π Prerequisites
Before starting, ensure you have an environment configured with AMD ROCm or Vulkan runtimes and the following dependencies installed:
- OS: Linux (Ubuntu 24.04 recommended) or Windows 10/11
- Hardware: AMD Radeon GPU / APU (e.g., Strix Halo Ryzen AI Max, RX 7900 XTX)
- Python: 3.10+ with
piporuv - Disk Space: ~150 GB (To hold the raw weights, intermediate standard GGUF, and final ROCmFPX outputs)
π οΈ Step 1: Environment Setup
Clone the custom ROCmFPX fork of llama.cpp and install its conversion dependencies.
# Clone the ROCmFPX repository
git clone https://github.com/charlie12345/ROCmFPX
cd ROCmFPX
# Install required Python packages
pip install -r requirements.txt
# Alternatively using uv for faster installation:
# uv pip install -r requirements.txt --index-strategy unsafe-best-match
π₯ Step 2: Download KATCoder-2.5-Dev Weights
Download the original Hugging Face safetensors for the model.
# Ensure huggingface-cli is installed
pip install huggingface_hub
# Download the model weights to a local directory
huggingface-cli download Kwaipilot/KAT-Coder-V2.5-Dev --local-dir ./KAT-Coder-V2.5-Dev
# Download Qwen 3.6 35B A3B for MTP
huggingface-cli download Qwen/Qwen3.6-35B-A3B --local-dir ./Qwen3.6-35B-A3B
π Step 3: Extract MTP from Qwen and Inject into KATCoder and then Convert to Base GGUF Format
Convert the Hugging Face safetensors structure into a standard unquantized 16-bit GGUF base file using the repository's native script.
python graft_mtp.py # cd to the root folder where KATCoder Safetensors and Qwen Safetensors are available and copy graft_mtp.py in that folder and execute
python convert_hf_to_gguf.py ./KAT-Coder-V2.5-Dev-MTP \
--outfile ./KAT-Coder-V2.5-Dev-bf16.gguf \
--outtype bf16
β‘ Step 4: Build the ROCmFPX Binary Compiler
Compile the binaries tailored to your target AMD graphics architecture. Swap the build environment flags depending on your system setup.
For Linux (ROCm / HIP)
cd ROCmFPX && git checkout main
# 2. Build for Strix Halo
env JOBS=16 scripts/build-strix-rocmfp4-mtp.sh
π Step 5: Quantize to ROCmFPX GGUF
Run the compiled llama-quantize tool to compress the model into the optimized ROCmFPX layout. Common targets include rocmfp4 (4-bit format) or rocmfp6.
Reference: https://huggingface.co/plunderstruck/Qwen3.6-27B-MTP-ROCmFP4-GGUF (But didnt use imatrixi for now)
# General syntax: ./build/bin/llama-quantize [input_f16_gguf] [output_gguf] [quant_type]
./build-strix-rocmfp4-mtp/bin/llama-quantize --token-embedding-type f16 --output-tensor-type q6_K KAT-Coder-V2.5-Dev-MTP-bf16.gguf KAT-Coder-V2.5-Dev-MTP-ROCmFP4-STRIX-LEAN-embedF16-headQ6.gguf Q4_0_ROCMFP4_STRIX_LEAN
(Note: You can swap rocmfp4 for other experimental tiers like rocmfp2 or rocmfp6 depending on your required performance-to-perplexity trade-off).
π Step 6: Inference Run
Once the quantization completes, load and prompt the model directly within the ROCmFPX native CLI layer.
./build/bin/llama-cli \
-m ./KAT-Coder-V2.5-Dev-MTP-ROCmFP4-STRIX-LEAN-embedF16-headQ6.gguf \
-n 512 \
--color \
-p "Create a spaceship game inspired by Star Fox using vanilla Three.js and HTML."
π License & Attributions
- Base Model: Developed by Kwaipilot under the Apache 2.0 license.
- Quantization Engine: Created by the ROCmFPX Team building upon the standard
llama.cppcodebase framework.
- Downloads last month
- -
16-bit