|
Download README.md from DCTR/ours-draft-DFlash: direct link, hf CLI and curl.
- Browser
- Download file 1.7 kB
-
https://huggingface.co/DCTR/ours-draft-DFlash/resolve/main/README.md
- Command line
-
hf download hf://DCTR/ours-draft-DFlash/README.md
-
curl -L -o README.md https://huggingface.co/DCTR/ours-draft-DFlash/resolve/main/README.md
1.7 kB
metadata
license: apache-2.0
base_model:
- DCTR/ours-BF16
tags:
- speculative-decoding
- dflash
- PEAR
- Qwen3.8
ours-draft-DFlash
A DFlash2 block-diffusion draft model for speculative decoding of DCTR/ours-BF16 and DCTR/ours-NVFP4.
- Architecture: 5 draft layers, block size 8; it reads the target's hidden states from layers 5 / 19 / 33 / 47 / 61 and borrows the target's embedding and
lm_head, so it only works with the target above. - Training: initialized from a DFlash2 draft of Qwen3.8-27B-PEAR (block size 8) and fine-tuned on 224 trajectories of ours-BF16 on the four LIBERO suites (70 trajectories on unseen tasks held out), learning rate 3e-5 (swept 3e-5 to 1e-3).
- Result: the speculative output distribution is identical to the target's. With this draft family, decoding is about 3.5x faster than without a draft (BF16, 2 x H100: 233 vs. 66 tok/s, 4.2 accepted tokens per verification). The fine-tune matches its initialization (offline acceptance +0.2%, 479 vs. 481 tok/s in serving).
Usage
--speculative-num-draft-tokens must equal the block size (8); a mismatch runs silently wrong.
python -m sglang.launch_server \
--model-path DCTR/ours-BF16 \
--tp-size 2 \
--attention-backend fa3 \
--mamba-ssm-dtype float32 \
--speculative-algorithm DFLASH \
--speculative-draft-model-path DCTR/ours-draft-DFlash \
--speculative-num-draft-tokens 8 \
--speculative-draft-attention-backend fa3
Tested with SGLang 0.5.23 (DFlash2 support).