Instructions to use TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm") model = AutoModel.from_pretrained("TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm
- SGLang
How to use TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm 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 "TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm with Docker Model Runner:
docker model run hf.co/TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm
Qwen3.8-27B-DFlash2 โ FP8 (vLLM)
FP8-quantized DFlash 2 draft model for
Qwen/Qwen3.8-27B, packaged for
speculative decoding in vLLM.
This is not a standalone language model. It runs inside a speculative
decoding server and drafts token blocks for the target model to verify. It is
an FP8 requantization of the DFlash 2 drafter published by Inco AI /
incoai/Qwen3.8-27B-DFlash2.
What this is
DFlash 2 is a block-diffusion drafter for speculative decoding: it predicts a whole block of tokens in a single pass, keeps the top candidates at every position, and a lightweight selector traces one coherent path through them. Two-tap dynamic convolutions in the backbone keep the draft from decaying toward the end of the block.
This repository quantizes the transformer projection weights
(q/k/v/o_proj, gate/up/down_proj) to FP8 (E4M3) using
compressed-tensors:
- Weights: FP8, per-channel static scales, symmetric.
- Activations: FP8, dynamic per-token.
- Kept in higher precision (not quantized): the DFlash convolution taps
(
attention_conv,mlp_conv), the candidate selector, thefchead, all norms, and the embeddings.
The FP8 weights shrink the drafter to ~2.1 GB. Because the target model verifies every drafted token, speculative decoding stays distribution-preserving regardless of drafter precision โ quantizing the drafter changes acceptance length (speed), not the correctness of the emitted tokens.
Usage (vLLM)
Requires a vLLM build with DFlash speculative-decoding support
(vLLM PR #53122). Pass this
repo as the speculative model and declare compressed-tensors so the FP8
drafter weights are loaded correctly:
vllm serve Qwen/Qwen3.8-27B \
--speculative-config '{
"method": "dflash",
"model": "TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm",
"quantization": "compressed-tensors",
"num_speculative_tokens": 7
}'
The drafter uses a block size of 8 (7 draft tokens per verification step). Use
Qwen3.8's recommended sampling parameters (temperature 1.0, top_p 0.95, top_k 20).
Attribution
- Drafter architecture and weights: DFlash 2 by Inco AI โ
incoai/Qwen3.8-27B-DFlash2, built on the original DFlash work fromz-lab/dflash. - vLLM integration path: DFlash speculative decoding, vLLM PR #53122.
- FP8 requantization: this repository (compressed-tensors, per-channel).
Citation
@misc{inco2026dflash2,
title = {{DFlash 2: Keep Drafting Parallel}},
author = {{Inco AI}},
year = {2026},
month = {August},
url = {https://inco.ai/blog/dflash2/}
}
@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
- 53
Model tree for TechPrototyper/Qwen3.8-27B-DFlash2-fp8-vllm
Base model
Qwen/Qwen3.8-27B