Instructions to use Anbeeld/GLM-5.3-Flash-DFlash2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Anbeeld/GLM-5.3-Flash-DFlash2-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Anbeeld/GLM-5.3-Flash-DFlash2-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Anbeeld/GLM-5.3-Flash-DFlash2-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Anbeeld/GLM-5.3-Flash-DFlash2-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/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Anbeeld/GLM-5.3-Flash-DFlash2-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 Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Anbeeld/GLM-5.3-Flash-DFlash2-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 Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Anbeeld/GLM-5.3-Flash-DFlash2-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 Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Anbeeld/GLM-5.3-Flash-DFlash2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Anbeeld/GLM-5.3-Flash-DFlash2-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": "Anbeeld/GLM-5.3-Flash-DFlash2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M
- SGLang
How to use Anbeeld/GLM-5.3-Flash-DFlash2-GGUF 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 "Anbeeld/GLM-5.3-Flash-DFlash2-GGUF" \ --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": "Anbeeld/GLM-5.3-Flash-DFlash2-GGUF", "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 "Anbeeld/GLM-5.3-Flash-DFlash2-GGUF" \ --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": "Anbeeld/GLM-5.3-Flash-DFlash2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Anbeeld/GLM-5.3-Flash-DFlash2-GGUF with Ollama:
ollama run hf.co/Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Anbeeld/GLM-5.3-Flash-DFlash2-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Anbeeld/GLM-5.3-Flash-DFlash2-GGUF with Docker Model Runner:
docker model run hf.co/Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M
- Lemonade
How to use Anbeeld/GLM-5.3-Flash-DFlash2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.GLM-5.3-Flash-DFlash2-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Anbeeld/GLM-5.3-Flash-DFlash2-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 Anbeeld/GLM-5.3-Flash-DFlash2-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 Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Anbeeld/GLM-5.3-Flash-DFlash2-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Anbeeld/GLM-5.3-Flash-DFlash2-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 "Anbeeld/GLM-5.3-Flash-DFlash2-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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:# Run inference directly in the terminal:
llama cli -hf Anbeeld/GLM-5.3-Flash-DFlash2-GGUF: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/GLM-5.3-Flash-DFlash2-GGUF:# Run inference directly in the terminal:
./llama-cli -hf Anbeeld/GLM-5.3-Flash-DFlash2-GGUF: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/GLM-5.3-Flash-DFlash2-GGUF:# Run inference directly in the terminal:
./build/bin/llama-cli -hf Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:Use Docker
docker model run hf.co/Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:GLM 5.3 Flash DFlash2 GGUF
GGUF quantizations of Inco AI DFlash2 draft model for GLM 5.3 Flash.
Use with BeeLlama.cpp, a llama.cpp fork with advanced quantization features.
GLM-5.3-Flash-DFlash2
This repository contains the DFlash 2 draft model for
zai-org/GLM-5.3-Flash.
It is not a standalone language model: it runs inside a speculative
decoding server and drafts tokens for the target model to verify.
DFlash 2 is a block-diffusion drafter for speculative decoding. It predicts a whole block of tokens in a single pass and keeps the top candidates at every position. A lightweight selector then traces one coherent path through them. Two-tap dynamic convolutions in the backbone keep the draft from decaying toward the end of the block. Decoding is lossless: greedy output matches the target model exactly, and sampling preserves its distribution.
Quick Start
Serve with SGLang:
pip install "sglang[all] @ git+https://github.com/sgl-project/sglang.git@refs/pull/36708/head#subdirectory=python"
sglang serve \
--model-path zai-org/GLM-5.3-Flash \
--trust-remote-code \
--speculative-algorithm DFLASH \
--speculative-draft-model-path incoai/GLM-5.3-Flash-DFlash2 \
--speculative-draft-attention-backend fa4
See the blog post for more details.
Evaluation
- Runtime: SGLang on four NVIDIA GB300 GPUs (TP4), with TRT-LLM DSA and FlashInfer TRT-LLM MoE for the target, FP8 target KV cache, and FlashAttention 4 for DFlash 2 draft attention
- Speculation block size: 8 (7 draft tokens per verification step)
- Sampling: GLM-5.3-Flash's officially recommended parameters (temperature 1.0, top-p 0.95), with the default
Maxreasoning effort - Maximum new tokens: 4096
- Samples: 128 at concurrency 1; 1,024 at concurrency 8 and 32
We compare autoregressive decoding, GLM-5.3-Flash's native MTP, and DFlash 2. All speculative methods propose seven draft tokens per verification step.
Acceptance Length
Acceptance length is the per-request mean of completion tokens divided by verification steps. Higher is better.
| Task | MTP | DFlash 2 |
|---|---|---|
| GSM8K | 5.06 | 5.78 |
| MATH-500 | 4.95 | 5.86 |
| HumanEval | 4.70 | 5.32 |
| MBPP | 4.26 | 4.85 |
| MT-Bench | 3.71 | 4.03 |
Throughput
Throughput is total output tokens divided by end-to-end wall time.
Each cell shows output tok/s (speedup vs. autoregressive).
Concurrency 1
| Task | Autoregressive | MTP | DFlash 2 |
|---|---|---|---|
| GSM8K | 146.8 | 282.6 (1.93×) | 355.4 (2.42×) |
| MATH-500 | 157.5 | 323.2 (2.05×) | 438.9 (2.79×) |
| HumanEval | 166.6 | 323.5 (1.94×) | 436.8 (2.62×) |
| MBPP | 168.2 | 299.5 (1.78×) | 402.2 (2.39×) |
| MT-Bench | 169.3 | 231.1 (1.36×) | 293.2 (1.73×) |
Concurrency 8
| Task | Autoregressive | MTP | DFlash 2 |
|---|---|---|---|
| GSM8K | 582.6 | 825.5 (1.42×) | 922.9 (1.58×) |
| MATH-500 | 794.9 | 1,267.8 (1.59×) | 1,552.3 (1.95×) |
| HumanEval | 897.4 | 1,533.1 (1.71×) | 1,943.5 (2.17×) |
| MBPP | 895.8 | 1,428.0 (1.59×) | 1,821.8 (2.03×) |
| MT-Bench | 864.0 | 1,084.5 (1.26×) | 1,303.2 (1.51×) |
Concurrency 32
| Task | Autoregressive | MTP | DFlash 2 |
|---|---|---|---|
| GSM8K | 917.3 | 1,203.1 (1.31×) | 1,318.3 (1.44×) |
| MATH-500 | 1,635.6 | 2,362.7 (1.44×) | 2,717.0 (1.66×) |
| HumanEval | 2,089.8 | 3,511.4 (1.68×) | 4,198.4 (2.01×) |
| MBPP | 2,102.0 | 3,168.5 (1.51×) | 3,791.4 (1.80×) |
| MT-Bench | 1,831.5 | 2,317.0 (1.27×) | 2,675.0 (1.46×) |
License
This model is released under CC BY-NC-ND 4.0 for research and evaluation. For commercial licensing, contact contact@inco.ai.
Citation
If you find DFlash 2 useful, please cite:
@misc{inco2026dflash2,
title = {{DFlash 2: Keep Drafting Parallel}},
author = {{Inco AI}},
year = {2026},
month = {August},
url = {https://inco.ai/blog/dflash2/}
}
Please also cite the original DFlash paper:
@inproceedings{chen2026dflash,
title = {{DFlash: Block Diffusion for Flash Speculative Decoding}},
author = {Chen, Jian and Liang, Yesheng and Liu, Zhijian},
booktitle = {International Conference on Machine Learning (ICML)},
year = {2026}
}
- Downloads last month
- 2,149
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf Anbeeld/GLM-5.3-Flash-DFlash2-GGUF:# Run inference directly in the terminal: llama cli -hf Anbeeld/GLM-5.3-Flash-DFlash2-GGUF: