DCore-Qwen3-8B-Budget8
Draft model of DCore for speculative decoding with Qwen/Qwen3-8B as the target model, trained with a draft budget of 8 tokens per block.
DCore = DFlare (draft architecture) + D-Pace (training recipe).
This is a draft model: it is conditioned on hidden states of the target model and is not meant to be used as a standalone language model.
Paper: arXiv:2610.24993
Model Details
| Item | Value |
|---|---|
| Target model | Qwen/Qwen3-8B (36 layers) |
| Draft architecture | DFlareDraftModel |
| Draft layers | 5 |
| Hidden size / heads / KV heads | 4096 / 32 / 8 |
| Block size (budget) | 8 |
| Target layers used as context features | 1, 5, 9, 13, 17, 21, 25, 29, 33 |
| Mask token id | 151669 |
| Vocabulary | 151936 (Qwen3 tokenizer) |
| Precision | bfloat16 |
| Training data | PerfectBlend |
DFlare is a DFlash variant with two structural changes:
- Cross-attention uses separate k/v projections for the context (target hidden states) and for the draft tokens.
- Multi-layer target hidden states are fused with a learnable
layer_fusion_weights[D, T]matrix instead of a singleLinear(T*H -> H).
Files
model.safetensors: draft model weightsconfig.json: draft config (Qwen3 config +block_size/dflash_config)dflare.py,dflash.py,registry.py: modeling code, loaded viaauto_map
Usage
from transformers import AutoModel
draft = AutoModel.from_pretrained(
"ernie-research/DCore-Qwen3-8B-Budget8",
trust_remote_code=True,
dtype="bfloat16",
)
The draft model must be paired with Qwen/Qwen3-8B as the target model in a speculative decoding framework that supports DFlash-style block drafting.
Collection
Part of the DCore collection by ERNIE Research.