Text Generation
Transformers
Safetensors
English
qwen3_5_moe
image-text-to-text
reap
expert-pruning
pruning
Mixture of Experts
qwen3.5
code
agentic-coding
conversational
Instructions to use Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16") model = AutoModelForMultimodalLM.from_pretrained("Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16
- SGLang
How to use Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16 with Docker Model Runner:
docker model run hf.co/Ttimms/KAT-Coder-V2.5-Dev-REAP-50-bf16
Commit History
-
Revert diagram figures to the A16 card's own published numbers
Verified signatureA prior commit today changed these to 90.9/89.9, taken from the W4A4 comparison table and the on-disk eval artifact. The A16 card itself publishes 89.0/90.5, so the diagram was correct before. Restored, keeping the single-draw label. The A16-card vs artifact discrepancy is a separate open question.f160142 -
Fix diagram benchmark figures; label accuracy as single draws
Verified signatureThe mermaid Bench node read HumanEval+ 89.0 / MBPP+ 90.5, contradicting the A16 card's own results table (90.9 / 89.9). Same node was wrong on four KAT cards. Also labels the cited accuracy figures as single greedy draws, since the harness has a measured 1.85-4.27 pp run-to-run spread.e05f806
-
card: add Architecture section with a mermaid build/serve pipeline diagram
e5ecaad
-
docs: update pipeline repo link to canonical name (kat-coder-nvfp4)
750e620
-
add tokenizer_config.json
Verified signature1ad127e -
add tokenizer.json
Verified signature8d13a41 -
add reap_args.yaml
Verified signatureb293dbc -
add model.safetensors
Verified signaturead88623 -
add generation_config.json
Verified signaturefce99f0 -
add config.json
Verified signature5a05162 -
add chat_template.jinja
Verified signature041c5ef -
card
Verified signature4e71ab5 -
initial commit
Verified signaturea1b649a