Feature Extraction
Transformers
GGUF
Safetensors
qwen3
dflash
speculative-decoding
diffusion
efficiency
flash-decoding
qwen
diffusion-language-model
text-generation
custom_code
text-generation-inference
conversational
Instructions to use Anbeeld/Qwen3.6-27B-DFlash-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Anbeeld/Qwen3.6-27B-DFlash-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Anbeeld/Qwen3.6-27B-DFlash-GGUF", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Anbeeld/Qwen3.6-27B-DFlash-GGUF", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Anbeeld/Qwen3.6-27B-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/Qwen3.6-27B-DFlash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Anbeeld/Qwen3.6-27B-DFlash-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/Qwen3.6-27B-DFlash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Anbeeld/Qwen3.6-27B-DFlash-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/Qwen3.6-27B-DFlash-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Anbeeld/Qwen3.6-27B-DFlash-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/Qwen3.6-27B-DFlash-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Anbeeld/Qwen3.6-27B-DFlash-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Anbeeld/Qwen3.6-27B-DFlash-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Anbeeld/Qwen3.6-27B-DFlash-GGUF with Ollama:
ollama run hf.co/Anbeeld/Qwen3.6-27B-DFlash-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Anbeeld/Qwen3.6-27B-DFlash-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/Qwen3.6-27B-DFlash-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/Qwen3.6-27B-DFlash-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Anbeeld/Qwen3.6-27B-DFlash-GGUF with Docker Model Runner:
docker model run hf.co/Anbeeld/Qwen3.6-27B-DFlash-GGUF:Q4_K_M
- Lemonade
How to use Anbeeld/Qwen3.6-27B-DFlash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Anbeeld/Qwen3.6-27B-DFlash-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.6-27B-DFlash-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Anbeeld/Qwen3.6-27B-DFlash-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/Qwen3.6-27B-DFlash-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/Qwen3.6-27B-DFlash-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Anbeeld/Qwen3.6-27B-DFlash-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/Qwen3.6-27B-DFlash-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/Qwen3.6-27B-DFlash-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"
Restore README image asset
Browse files
README.md
CHANGED
|
@@ -1,125 +1,125 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: z-lab/Qwen3.6-27B-DFlash
|
| 3 |
-
tags:
|
| 4 |
-
- transformers
|
| 5 |
-
- safetensors
|
| 6 |
-
- qwen3
|
| 7 |
-
- feature-extraction
|
| 8 |
-
- dflash
|
| 9 |
-
- speculative-decoding
|
| 10 |
-
- diffusion
|
| 11 |
-
- efficiency
|
| 12 |
-
- flash-decoding
|
| 13 |
-
- qwen
|
| 14 |
-
- diffusion-language-model
|
| 15 |
-
- text-generation
|
| 16 |
-
- custom_code
|
| 17 |
-
- arxiv:2602.06036
|
| 18 |
-
- license:mit
|
| 19 |
-
- text-generation-inference
|
| 20 |
-
- endpoints_compatible
|
| 21 |
-
- region:us
|
| 22 |
-
---
|
| 23 |
-
|
| 24 |
-
# Qwen 3.6 27B DFlash GGUF
|
| 25 |
-
|
| 26 |
-
GGUF quantizations of [**z-lab DFlash draft model**](https://huggingface.co/z-lab/Qwen3.6-27B-DFlash) for [**Qwen 3.6 27B**](https://huggingface.co/Qwen/Qwen3.6-27B).
|
| 27 |
-
|
| 28 |
-
Use with [BeeLlama.cpp](https://github.com/Anbeeld/beellama.cpp), a llama.cpp fork with advanced quantization features.
|
| 29 |
-
|
| 30 |
-
---
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
# Qwen3.6-27B-DFlash
|
| 34 |
-
[**Paper**](https://arxiv.org/abs/2602.06036) | [**GitHub**](https://github.com/z-lab/dflash) | [**Blog**](https://z-lab.ai/projects/dflash/)
|
| 35 |
-
|
| 36 |
-
**This model is still under training, and inference engine support may not be fully available yet due to architectural changes, including causal SWA layers.**
|
| 37 |
-
|
| 38 |
-
**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.
|
| 39 |
-
|
| 40 |
-
This model is the **drafter** component. It must be used in conjunction with the target model `Qwen/Qwen3.6-27B`.
|
| 41 |
-
|
| 42 |
-
<div align="center">
|
| 43 |
-
<img src="
|
| 44 |
-
</div>
|
| 45 |
-
|
| 46 |
-
## Quick Start
|
| 47 |
-
|
| 48 |
-
### Installation
|
| 49 |
-
|
| 50 |
-
vLLM (We temporarily modify the installation through this PR to support interleaved SWA and ensure correct handling of target hidden states for optimal performance):
|
| 51 |
-
```bash
|
| 52 |
-
uv pip install vllm
|
| 53 |
-
uv pip install -U --torch-backend=auto "vllm @ git+https://github.com/vllm-project/vllm.git@refs/pull/40898/head"
|
| 54 |
-
```
|
| 55 |
-
|
| 56 |
-
SGLang:
|
| 57 |
-
```bash
|
| 58 |
-
uv pip install "git+https://github.com/sgl-project/sglang.git@refs/pull/23000/head#subdirectory=python"
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
### Launch Server
|
| 62 |
-
|
| 63 |
-
vLLM:
|
| 64 |
-
```bash
|
| 65 |
-
vllm serve Qwen/Qwen3.6-27B \
|
| 66 |
-
--speculative-config '{"method": "dflash", "model": "z-lab/Qwen3.6-27B-DFlash", "num_speculative_tokens": 15}' \
|
| 67 |
-
--attention-backend flash_attn \
|
| 68 |
-
--max-num-batched-tokens 32768
|
| 69 |
-
```
|
| 70 |
-
|
| 71 |
-
SGLang:
|
| 72 |
-
```bash
|
| 73 |
-
# Optional: enable schedule overlapping (experimental, may not be stable)
|
| 74 |
-
# export SGLANG_ENABLE_SPEC_V2=1
|
| 75 |
-
# export SGLANG_ENABLE_DFLASH_SPEC_V2=1
|
| 76 |
-
# export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
|
| 77 |
-
|
| 78 |
-
python -m sglang.launch_server \
|
| 79 |
-
--model-path Qwen/Qwen3.6-27B \
|
| 80 |
-
--speculative-algorithm DFLASH \
|
| 81 |
-
--speculative-draft-model-path z-lab/Qwen3.6-27B-DFlash \
|
| 82 |
-
--speculative-num-draft-tokens 16 \
|
| 83 |
-
--tp-size 1 \
|
| 84 |
-
--attention-backend fa3 \
|
| 85 |
-
--mem-fraction-static 0.75 \
|
| 86 |
-
--mamba-scheduler-strategy extra_buffer \
|
| 87 |
-
--trust-remote-code
|
| 88 |
-
```
|
| 89 |
-
|
| 90 |
-
### Usage
|
| 91 |
-
|
| 92 |
-
```python
|
| 93 |
-
from openai import OpenAI
|
| 94 |
-
|
| 95 |
-
client = OpenAI(base_url="http://localhost:30000/v1", api_key="EMPTY")
|
| 96 |
-
|
| 97 |
-
response = client.chat.completions.create(
|
| 98 |
-
model="Qwen/Qwen3.6-27B",
|
| 99 |
-
messages=[{"role": "user", "content": "Write a quicksort in Python."}],
|
| 100 |
-
max_tokens=4096,
|
| 101 |
-
temperature=0.0
|
| 102 |
-
)
|
| 103 |
-
print(response.choices[0].message.content)
|
| 104 |
-
```
|
| 105 |
-
|
| 106 |
-
## Benchmark Results
|
| 107 |
-
|
| 108 |
-
N/A
|
| 109 |
-
|
| 110 |
-
## Acknowledgements
|
| 111 |
-
|
| 112 |
-
Special thanks to [David Wang](https://davidwa.ng/) for his outstanding engineering support on this project. We are also grateful to [Modal](https://modal.com/), [InnoMatrix](https://innomatrix.ai), and [Yotta Labs](https://www.yottalabs.ai/) for providing the compute resources used to train this draft model.
|
| 113 |
-
|
| 114 |
-
## Citation
|
| 115 |
-
|
| 116 |
-
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](https://forms.gle/4YNwfqb4nJdqn6hq9).
|
| 117 |
-
|
| 118 |
-
```bibtex
|
| 119 |
-
@article{chen2026dflash,
|
| 120 |
-
title = {{DFlash: Block Diffusion for Flash Speculative Decoding}},
|
| 121 |
-
author = {Chen, Jian and Liang, Yesheng and Liu, Zhijian},
|
| 122 |
-
journal = {arXiv preprint arXiv:2602.06036},
|
| 123 |
-
year = {2026}
|
| 124 |
-
}
|
| 125 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: z-lab/Qwen3.6-27B-DFlash
|
| 3 |
+
tags:
|
| 4 |
+
- transformers
|
| 5 |
+
- safetensors
|
| 6 |
+
- qwen3
|
| 7 |
+
- feature-extraction
|
| 8 |
+
- dflash
|
| 9 |
+
- speculative-decoding
|
| 10 |
+
- diffusion
|
| 11 |
+
- efficiency
|
| 12 |
+
- flash-decoding
|
| 13 |
+
- qwen
|
| 14 |
+
- diffusion-language-model
|
| 15 |
+
- text-generation
|
| 16 |
+
- custom_code
|
| 17 |
+
- arxiv:2602.06036
|
| 18 |
+
- license:mit
|
| 19 |
+
- text-generation-inference
|
| 20 |
+
- endpoints_compatible
|
| 21 |
+
- region:us
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# Qwen 3.6 27B DFlash GGUF
|
| 25 |
+
|
| 26 |
+
GGUF quantizations of [**z-lab DFlash draft model**](https://huggingface.co/z-lab/Qwen3.6-27B-DFlash) for [**Qwen 3.6 27B**](https://huggingface.co/Qwen/Qwen3.6-27B).
|
| 27 |
+
|
| 28 |
+
Use with [BeeLlama.cpp](https://github.com/Anbeeld/beellama.cpp), a llama.cpp fork with advanced quantization features.
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
# Qwen3.6-27B-DFlash
|
| 34 |
+
[**Paper**](https://arxiv.org/abs/2602.06036) | [**GitHub**](https://github.com/z-lab/dflash) | [**Blog**](https://z-lab.ai/projects/dflash/)
|
| 35 |
+
|
| 36 |
+
**This model is still under training, and inference engine support may not be fully available yet due to architectural changes, including causal SWA layers.**
|
| 37 |
+
|
| 38 |
+
**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.
|
| 39 |
+
|
| 40 |
+
This model is the **drafter** component. It must be used in conjunction with the target model `Qwen/Qwen3.6-27B`.
|
| 41 |
+
|
| 42 |
+
<div align="center">
|
| 43 |
+
<img src="assets/dflash_system.png" alt="DFlash Architecture" width="100%">
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+
## Quick Start
|
| 47 |
+
|
| 48 |
+
### Installation
|
| 49 |
+
|
| 50 |
+
vLLM (We temporarily modify the installation through this PR to support interleaved SWA and ensure correct handling of target hidden states for optimal performance):
|
| 51 |
+
```bash
|
| 52 |
+
uv pip install vllm
|
| 53 |
+
uv pip install -U --torch-backend=auto "vllm @ git+https://github.com/vllm-project/vllm.git@refs/pull/40898/head"
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
SGLang:
|
| 57 |
+
```bash
|
| 58 |
+
uv pip install "git+https://github.com/sgl-project/sglang.git@refs/pull/23000/head#subdirectory=python"
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
### Launch Server
|
| 62 |
+
|
| 63 |
+
vLLM:
|
| 64 |
+
```bash
|
| 65 |
+
vllm serve Qwen/Qwen3.6-27B \
|
| 66 |
+
--speculative-config '{"method": "dflash", "model": "z-lab/Qwen3.6-27B-DFlash", "num_speculative_tokens": 15}' \
|
| 67 |
+
--attention-backend flash_attn \
|
| 68 |
+
--max-num-batched-tokens 32768
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
SGLang:
|
| 72 |
+
```bash
|
| 73 |
+
# Optional: enable schedule overlapping (experimental, may not be stable)
|
| 74 |
+
# export SGLANG_ENABLE_SPEC_V2=1
|
| 75 |
+
# export SGLANG_ENABLE_DFLASH_SPEC_V2=1
|
| 76 |
+
# export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
|
| 77 |
+
|
| 78 |
+
python -m sglang.launch_server \
|
| 79 |
+
--model-path Qwen/Qwen3.6-27B \
|
| 80 |
+
--speculative-algorithm DFLASH \
|
| 81 |
+
--speculative-draft-model-path z-lab/Qwen3.6-27B-DFlash \
|
| 82 |
+
--speculative-num-draft-tokens 16 \
|
| 83 |
+
--tp-size 1 \
|
| 84 |
+
--attention-backend fa3 \
|
| 85 |
+
--mem-fraction-static 0.75 \
|
| 86 |
+
--mamba-scheduler-strategy extra_buffer \
|
| 87 |
+
--trust-remote-code
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
### Usage
|
| 91 |
+
|
| 92 |
+
```python
|
| 93 |
+
from openai import OpenAI
|
| 94 |
+
|
| 95 |
+
client = OpenAI(base_url="http://localhost:30000/v1", api_key="EMPTY")
|
| 96 |
+
|
| 97 |
+
response = client.chat.completions.create(
|
| 98 |
+
model="Qwen/Qwen3.6-27B",
|
| 99 |
+
messages=[{"role": "user", "content": "Write a quicksort in Python."}],
|
| 100 |
+
max_tokens=4096,
|
| 101 |
+
temperature=0.0
|
| 102 |
+
)
|
| 103 |
+
print(response.choices[0].message.content)
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
## Benchmark Results
|
| 107 |
+
|
| 108 |
+
N/A
|
| 109 |
+
|
| 110 |
+
## Acknowledgements
|
| 111 |
+
|
| 112 |
+
Special thanks to [David Wang](https://davidwa.ng/) for his outstanding engineering support on this project. We are also grateful to [Modal](https://modal.com/), [InnoMatrix](https://innomatrix.ai), and [Yotta Labs](https://www.yottalabs.ai/) for providing the compute resources used to train this draft model.
|
| 113 |
+
|
| 114 |
+
## Citation
|
| 115 |
+
|
| 116 |
+
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](https://forms.gle/4YNwfqb4nJdqn6hq9).
|
| 117 |
+
|
| 118 |
+
```bibtex
|
| 119 |
+
@article{chen2026dflash,
|
| 120 |
+
title = {{DFlash: Block Diffusion for Flash Speculative Decoding}},
|
| 121 |
+
author = {Chen, Jian and Liang, Yesheng and Liu, Zhijian},
|
| 122 |
+
journal = {arXiv preprint arXiv:2602.06036},
|
| 123 |
+
year = {2026}
|
| 124 |
+
}
|
| 125 |
```
|