DFlash-PM-b7-ep3
Draft model for speculative decoding with Qwen/Qwen3-8B as the target, from the LongDSpec study
(multi-step denoising drafters). Fine-tuned from deepseek-ai/dflash_qwen3_8b_block7.
PartialMask: blocks keep the released all-[MASK] task with prob p_full and otherwise show each slot's true token with prob 1 - t (t ~ U(0, 1)); visible labels are dropped from the loss. Lets the drafter denoise a block in several steps and accept a warm start.
Usage
Drop-in replacement for the released DFlash drafter (Qwen3DSparkModel.from_pretrained, DeepSpec). Target model: Qwen/Qwen3-8B (hidden states of 5 target layers are inputs).
Training data
Prompts from mlabonne/open-perfectblend (user-first conversations, deduplicated, 8-gram decontaminated against
MT-Bench, GSM8K, HumanEval, MATH-500, MBPP), answers regenerated by Qwen3-8B (non-thinking, temperature 0.7,
top-p 0.8, top-k 20, max 4096 tokens).
Hyperparameters
| arg | value |
|---|---|
target |
Qwen/Qwen3-8B |
draft |
deepseek-ai/dflash_qwen3_8b_block7 |
max_length |
4096 |
p_full |
0.5 |
gamma |
4.0 |
accum |
16 |
micro_batch |
1 |
max_batch_tokens |
16384 |
lr |
0.0001 |
warmup |
0.04 |
epochs |
3.0 |
max_steps |
None |
max_examples |
None |
eval_every |
500 |
eval_seqs |
64 |
num_checkpoints |
6 |
save_every |
2000 |
state_every |
1000 |
compile |
False |
target_device |
None |
num_anchors |
None |
seed |
20261118 |
wandb |
online |
wandb_project |
longdspec-drafters |
wandb_name |
None |
hub_repo |
auto |
hub_private |
False |
keep_final |
False |
Steps: 18567 (one RTX PRO 6000).
Train vs held-out curve
teacher-forced metrics on 64 held-out and 64 fixed training sequences (fixed anchors and masks per evaluation): fullmask = all-[MASK] blocks (released K=1 usage), trainmix = the training block mix; accept_len = mean greedy accepted length per block, ce = the training loss.
| step | gap_full_mask_ce | gap_trainmix_ce | heldout_full_mask_accept_len | heldout_full_mask_ce | heldout_trainmix_ce | train_full_mask_accept_len | train_full_mask_ce | train_trainmix_ce |
|---|---|---|---|---|---|---|---|---|
| 0 | 0.1016 | 0.0888 | 4.5249 | 0.9677 | 1.0251 | 4.7051 | 0.8660 | 0.9363 |
| 500 | 0.1459 | 0.1321 | 4.4774 | 0.9300 | 0.8869 | 4.6845 | 0.7841 | 0.7549 |
| 1000 | 0.1652 | 0.1523 | 4.3882 | 0.9667 | 0.9071 | 4.6680 | 0.8015 | 0.7547 |
| 1500 | 0.1823 | 0.1658 | 4.3648 | 0.9793 | 0.9110 | 4.6630 | 0.7970 | 0.7452 |
| 2000 | 0.1999 | 0.1829 | 4.3604 | 0.9867 | 0.9094 | 4.6878 | 0.7867 | 0.7266 |
| 2500 | 0.2047 | 0.1873 | 4.3628 | 0.9868 | 0.9052 | 4.6932 | 0.7821 | 0.7179 |
| 3000 | 0.2135 | 0.1956 | 4.3556 | 0.9893 | 0.9049 | 4.7187 | 0.7759 | 0.7092 |
| 3500 | 0.2214 | 0.2017 | 4.3582 | 0.9883 | 0.9006 | 4.7159 | 0.7669 | 0.6989 |
| 4000 | 0.2221 | 0.2004 | 4.3466 | 0.9880 | 0.8977 | 4.7372 | 0.7660 | 0.6974 |
| 4500 | 0.2198 | 0.1992 | 4.3320 | 0.9897 | 0.8986 | 4.7301 | 0.7699 | 0.6994 |
| 5000 | 0.2301 | 0.2062 | 4.3554 | 0.9887 | 0.8963 | 4.7576 | 0.7587 | 0.6901 |
| 5500 | 0.2319 | 0.2093 | 4.3552 | 0.9889 | 0.8946 | 4.7664 | 0.7570 | 0.6854 |
| 6000 | 0.2353 | 0.2075 | 4.3640 | 0.9895 | 0.8933 | 4.7652 | 0.7541 | 0.6858 |
| 6500 | 0.2717 | 0.2410 | 4.3573 | 1.0000 | 0.9027 | 4.8148 | 0.7283 | 0.6617 |
| 7000 | 0.2717 | 0.2423 | 4.3633 | 0.9968 | 0.8989 | 4.8314 | 0.7251 | 0.6567 |
| 7500 | 0.2926 | 0.2581 | 4.3781 | 0.9948 | 0.8952 | 4.9009 | 0.7023 | 0.6372 |
| 8000 | 0.2970 | 0.2614 | 4.3927 | 0.9946 | 0.8940 | 4.8976 | 0.6976 | 0.6326 |
| 8500 | 0.3150 | 0.2772 | 4.3846 | 0.9924 | 0.8931 | 4.9722 | 0.6774 | 0.6159 |
| 9000 | 0.3201 | 0.2802 | 4.3784 | 0.9915 | 0.8918 | 4.9823 | 0.6713 | 0.6115 |
| 9500 | 0.3207 | 0.2845 | 4.3875 | 0.9851 | 0.8871 | 4.9819 | 0.6644 | 0.6026 |
| 10000 | 0.3358 | 0.2954 | 4.3927 | 0.9856 | 0.8851 | 5.0291 | 0.6498 | 0.5898 |
| 10500 | 0.3346 | 0.2926 | 4.4043 | 0.9792 | 0.8791 | 5.0413 | 0.6446 | 0.5865 |
| 11000 | 0.3402 | 0.2976 | 4.4003 | 0.9791 | 0.8787 | 5.0620 | 0.6390 | 0.5810 |
| 11500 | 0.3434 | 0.3007 | 4.4083 | 0.9780 | 0.8781 | 5.0677 | 0.6347 | 0.5774 |
| 12000 | 0.3456 | 0.3043 | 4.4164 | 0.9755 | 0.8749 | 5.0761 | 0.6299 | 0.5706 |
| 12500 | 0.3932 | 0.3432 | 4.4053 | 1.0023 | 0.8985 | 5.1343 | 0.6090 | 0.5553 |
| 13000 | 0.3992 | 0.3487 | 4.4155 | 0.9995 | 0.8961 | 5.1595 | 0.6003 | 0.5475 |
| 13500 | 0.4049 | 0.3532 | 4.4158 | 1.0015 | 0.8963 | 5.1740 | 0.5966 | 0.5431 |
| 14000 | 0.4102 | 0.3587 | 4.4185 | 0.9988 | 0.8947 | 5.2120 | 0.5886 | 0.5359 |
| 14500 | 0.4145 | 0.3611 | 4.4160 | 0.9988 | 0.8935 | 5.2220 | 0.5843 | 0.5324 |
| 15000 | 0.4132 | 0.3611 | 4.4187 | 0.9964 | 0.8921 | 5.2182 | 0.5832 | 0.5310 |
| 15500 | 0.4156 | 0.3634 | 4.4155 | 0.9971 | 0.8928 | 5.2265 | 0.5815 | 0.5294 |
| 16000 | 0.4155 | 0.3633 | 4.4202 | 0.9955 | 0.8912 | 5.2306 | 0.5800 | 0.5279 |
| 16500 | 0.4194 | 0.3667 | 4.4245 | 0.9964 | 0.8919 | 5.2377 | 0.5770 | 0.5252 |
| 17000 | 0.4208 | 0.3679 | 4.4251 | 0.9963 | 0.8916 | 5.2428 | 0.5755 | 0.5237 |
| 17500 | 0.4203 | 0.3672 | 4.4276 | 0.9954 | 0.8905 | 5.2414 | 0.5752 | 0.5233 |
| 18000 | 0.4207 | 0.3675 | 4.4277 | 0.9953 | 0.8904 | 5.2444 | 0.5747 | 0.5230 |
| 18500 | 0.4207 | 0.3675 | 4.4290 | 0.9953 | 0.8904 | 5.2444 | 0.5747 | 0.5229 |
| 18567 | 0.4207 | 0.3676 | 4.4283 | 0.9953 | 0.8906 | 5.2447 | 0.5747 | 0.5229 |
Speculative-decoding evaluation (acceptance length, latency) is reported separately; this card only records training.
- Downloads last month
- 16
Model tree for Mye0n9/DFlash-PM-b7-ep3
Base model
deepseek-ai/dflash_qwen3_8b_block7