Downloads · 30 days
56
13% of all-time downloads
prasel/KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF
KAT-Coder-V2.5-Dev-MTP-ROCmFPX-GGUF is a text generation model from prasel. Use it when you need the model to write or continue text. The card lists the license as mit.
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 comp…
Downloads · 30 days
56
13% of all-time downloads
All-time downloads
432
Public
Repo size
90.9 GB
Likes
0
Public
Click a slice to open those files.
.gguf90.9 GB · 100%
From the Hugging Face model README
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.
Before starting, ensure you have an environment configured with AMD ROCm or Vulkan runtimes and the following dependencies installed:
pip or uvClone 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
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
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
Compile the binaries tailored to your target AMD graphics architecture. Swap the build environment flags depending on your system setup.
cd ROCmFPX && git checkout main
# 2. Build for Strix Halo
env JOBS=16 scripts/build-strix-rocmfp4-mtp.sh
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).
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."
llama.cpp codebase framework.