Instructions to use khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-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 khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-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 khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
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 khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
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 khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
Use Docker
docker model run hf.co/khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-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": "khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
- Ollama
How to use khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF with Ollama:
ollama run hf.co/khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
- Unsloth Studio
How to use khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-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 khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-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 khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF to start chatting
- Pi
How to use khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
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": "khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF with Docker Model Runner:
docker model run hf.co/khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
- Lemonade
How to use khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-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 khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
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 khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M
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 "khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF:Q4_K_M" \ --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"
Qwen3-4B-Kimi2.5-Reasoning-Distilled : GGUF
| Model | Score |
|---|---|
| khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled | 76.09 |
| Qwen/Qwen3-4B-Thinking-2507 | 73.73 |
- Benchmark: khazarai/Multi-Domain-Reasoning-Benchmark
- Total Questions: 100
Qwen3-4B-Kimi2.5-Reasoning-Distilled is a fine-tuned language model optimized for structured, long-form reasoning. It is derived from the Qwen3-4b-Thinking-2507 base model and fine-tuned using a specialized distillation dataset generated by Kimi-2.5-thinking.
This model is designed to bridge the gap between small, efficient models (0.6B–4B range) and the complex reasoning capabilities typically found in much larger models. It excels at breaking down problems, self-correcting, and providing detailed analytical answers.
Base Model: Qwen3-4b-Thinking-2507
Training Technique: Unsloth + QLoRa
Available Model files:
qwen3-4b-thinking-2507.BF16.ggufqwen3-4b-thinking-2507.Q8_0.ggufqwen3-4b-thinking-2507.Q6_K.ggufqwen3-4b-thinking-2507.Q4_K_M.gguf
Ollama
An Ollama Modelfile is included for easy deployment.
Provided Quants
(sorted by size, not necessarily quality. IQ-quants are often preferable over similar sized non-IQ quants)
| Type | Size/GB | Notes |
|---|---|---|
| Q4_K_M | 2.5 | fast, recommended |
| Q6_K | 3.3 | very good quality |
| Q8_0 | 4.2 | fast, best quality |
| f16 | 8.0 | 16 bpw, overkill |
Here is a handy graph by ikawrakow comparing some lower-quality quant types (lower is better):
And here are Artefact2's thoughts on the matter: https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9
Dataset
The model was fine-tuned on the khazarai/kimi-2.5-high-reasoning-250x
Dataset Composition:
- Total Samples: 250
- Total Tokens: 1,114,407
- Teacher Model: Kimi-2.5-Thinking
Acknowledgements
Unsloth for the incredibly fast and memory-efficient training framework.
- Downloads last month
- 2,734
4-bit
6-bit
8-bit
16-bit
Model tree for khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF
Base model
Qwen/Qwen3-4B-Thinking-2507

ollama run hf.co/khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled-GGUF: