Text Generation
Transformers
Safetensors
multilingual
qwen3
conversational
text-generation-inference
Instructions to use Kwaipilot/KAT-Dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kwaipilot/KAT-Dev with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Kwaipilot/KAT-Dev") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Kwaipilot/KAT-Dev") model = AutoModelForCausalLM.from_pretrained("Kwaipilot/KAT-Dev", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kwaipilot/KAT-Dev with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kwaipilot/KAT-Dev" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kwaipilot/KAT-Dev", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Kwaipilot/KAT-Dev
- SGLang
How to use Kwaipilot/KAT-Dev 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 "Kwaipilot/KAT-Dev" \ --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": "Kwaipilot/KAT-Dev", "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 "Kwaipilot/KAT-Dev" \ --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": "Kwaipilot/KAT-Dev", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Kwaipilot/KAT-Dev with Docker Model Runner:
docker model run hf.co/Kwaipilot/KAT-Dev
Commit History
-
Add pipeline tag, paper link, and project page metadata
Verified signatureThis PR enhances the `Kwaipilot/KAT-Dev` model card by: - Adding the `pipeline_tag: text-generation` to the metadata for better discoverability of this large language model. - Adding the `project_page: https://kwaipilot.github.io/KAT-Coder/` to the metadata, linking to the existing project blog for comprehensive details. - Including a direct link to the associated paper, [KAT-Coder Technical Report](https://huggingface.co/papers/2510.18779), at the beginning of the model card content for clear attribution. These updates aim to provide users with more complete and easily accessible information about the model.6bb7af7
-
Update README.md
Verified signature62012dd
-
Update README.md
Verified signature7ec96f1 -
Update README.md
Verified signature6c5678c -
Update README.md
Verified signature6a84153 -
Update README.md
Verified signature21fe6f9 -
Delete LICENSE
Verified signatureb157220 -
Update README.md
Verified signature5aa63e9
-
Update README.md
Verified signature674efd4
-
Upload LICENSE
Verified signatured1fd33f
-
Upload qwen3coder_tool_parser.py
Verified signature5a0c9ac
-
Update README.md
Verified signatured0c503b -
Update README.md
Verified signature0ea5921
-
Update README.md
Verified signature19928c5 -
Update README.md
Verified signaturecebdde4 -
Update README.md
Verified signature2560616
-
update
rootSigned-off-by: root <root@rack-ge107-ya-20250517193240.idczw.hb1.kwaidc.com>f1bc1f0
-
Update README.md
Verified signaturee8fd46a -
Update chat_template.jinja
Verified signaturebb77a7c -
Update README.md
Verified signatured3728cf -
Update README.md
Verified signature2a58a3a -
Update README.md
Verified signature75c1193 -
Initial commit
root3a5b714 -
initial commit
Verified signature8699bbd