Instructions to use Anbeeld/Kimi-K2.5-DFlash-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Anbeeld/Kimi-K2.5-DFlash-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Anbeeld/Kimi-K2.5-DFlash-GGUF", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Anbeeld/Kimi-K2.5-DFlash-GGUF", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Anbeeld/Kimi-K2.5-DFlash-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 Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K
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 Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K
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 Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K
Use Docker
docker model run hf.co/Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use Anbeeld/Kimi-K2.5-DFlash-GGUF with Ollama:
ollama run hf.co/Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use Anbeeld/Kimi-K2.5-DFlash-GGUF with Docker Model Runner:
docker model run hf.co/Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K
- Lemonade
How to use Anbeeld/Kimi-K2.5-DFlash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Anbeeld/Kimi-K2.5-DFlash-GGUF:Q2_K
Run and chat with the model
lemonade run user.Kimi-K2.5-DFlash-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Kimi K2.5 DFlash GGUF
GGUF quantizations of z-lab DFlash draft model for Kimi K2.5.
Use with BeeLlama.cpp, a llama.cpp fork with advanced quantization features.
Kimi-K2.5-DFlash
DFlash is a novel speculative decoding method that utilizes a lightweight block diffusion model for drafting. It enables efficient, high-quality parallel drafting that pushes the limits of inference speed.
This model is the drafter component. It must be used in conjunction with the target model moonshotai/Kimi-K2.5.
Quick Start
Installation
SGLang:
uv pip install "git+https://github.com/sgl-project/sglang.git@refs/pull/20547/head#subdirectory=python"
vLLM:
uv pip install vllm
uv pip install -U vllm --torch-backend=auto --extra-index-url https://wheels.vllm.ai/nightly
Please refer to PR39930 to see how to use DFlash with Kimi-K2.5 on vLLM.
Launch Server
SGLang:
# Optional: enable schedule overlapping (experimental, may not be stable)
# export SGLANG_ENABLE_SPEC_V2=1
# export SGLANG_ENABLE_DFLASH_SPEC_V2=1
# export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
python -m sglang.launch_server \
--model-path moonshotai/Kimi-K2.5 \
--speculative-algorithm DFLASH \
--speculative-draft-model-path z-lab/Kimi-K2.5-DFlash \
--speculative-num-draft-tokens 8 \
--tp-size 8 \
--attention-backend trtllm_mla \
--speculative-draft-attention-backend fa4 \
--mem-fraction-static 0.9 \
--speculative-dflash-draft-window-size 4096 \
--trust-remote-code
Tip: For long-context or agentic workloads, add
--speculative-dflash-draft-window-size WINDOW_SIZEto enable sliding-window attention for the drafter.
Usage
from openai import OpenAI
client = OpenAI(base_url="http://localhost:30000/v1", api_key="EMPTY")
response = client.chat.completions.create(
model="moonshotai/Kimi-K2.5",
messages=[{"role": "user", "content": "Write a quicksort in Python."}],
max_tokens=4096,
)
print(response.choices[0].message.content)
Benchmark Results
Acceptance Length
- Thinking: enabled
- Max new tokens: 4096
- Block size: 8
- SGLang results.
| Dataset | Accept Length |
|---|---|
| GSM8K | 5.3 |
| Math500 | 5.5 |
| HumanEval | 5.3 |
| MBPP | 4.5 |
| MT-Bench | 3.7 |
Throughput
| Dataset | C=32 |
|---|---|
| GSM8K | 2015 |
| Math500 | 3096 |
| HumanEval | 3146 |
| MBPP | 2940 |
| MT-Bench | 2146 |
Acknowledgements
Special thanks to David Wang for his outstanding engineering support on this project. We are also grateful to Modal, InnoMatrix, and Yotta Labs for providing the compute resources used to train this draft model.
Citation
If you find DFlash useful, please cite our work. To share feedback on DFlash or request new model support, please fill out this form: DFlash Feedback.
@article{chen2026dflash,
title = {{DFlash: Block Diffusion for Flash Speculative Decoding}},
author = {Chen, Jian and Liang, Yesheng and Liu, Zhijian},
journal = {arXiv preprint arXiv:2602.06036},
year = {2026}
}
- Downloads last month
- 217
2-bit
3-bit
16-bit
Model tree for Anbeeld/Kimi-K2.5-DFlash-GGUF
Base model
z-lab/Kimi-K2.5-DFlash