Align model card with updated DSpark README and remove v4 from model names
Browse files
README.md
CHANGED
|
@@ -1,78 +1,155 @@
|
|
| 1 |
---
|
| 2 |
language: en
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
-
base_model:
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
- speculative-decoding
|
| 7 |
- draft-model
|
| 8 |
-
- draftfit
|
| 9 |
- minicpm5
|
|
|
|
|
|
|
| 10 |
license: other
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# Draftfit
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
This
|
| 18 |
|
| 19 |
-
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 25 |
-
| Target only | 175.60 | 50.98 | 50.76 | 51.04 | 51.47 | 51.81 |
|
| 26 |
-
| Official DSpark | 354.69 | 105.38 | 107.83 | 112.19 | 107.79 | 85.86 |
|
| 27 |
-
| **[Draftfit DSpark v4](https://huggingface.co/jayyun98/MiniCPM5-2B-SFT-Draftfit-DSpark)** | **347.94** | **116.15** | **118.29** | **122.28** | **116.04** | **91.99** |
|
| 28 |
-
| **[Draftfit DFlash CE v4](https://huggingface.co/jayyun98/MiniCPM5-2B-SFT-Draftfit-DFlash-CE)** | **294.77** | **89.61** | **89.02** | **99.18** | **92.49** | **79.31** |
|
| 29 |
-
| **[Draftfit DFlash DPACE v4](https://huggingface.co/jayyun98/MiniCPM5-2B-SFT-Draftfit-DFlash-DPACE)** | **304.85** | **89.97** | **89.84** | **103.20** | **91.62** | **76.97** |
|
| 30 |
-
| **[Draftfit DFlash2 v4](https://huggingface.co/jayyun98/MiniCPM5-2B-SFT-Draftfit-DFlash2)** | **not measured** | **80.75** | **78.37** | **92.76** | **87.49** | **70.41** |
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
##
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
|
| 41 |
-
| --- | --- | --- | --- |
|
| 42 |
-
| **DSpark** | Keeps the DSpark draft structure and its anchor, Markov and confidence components; supports same-method adaptation from the official draft. | First control when adapting an existing DSpark to this SFT target or comparing later continual steps. | Closest A100 v4 speed to the official draft: 347.94 versus 354.69 tok/s. This pairing still needs exact serving parity checks. |
|
| 43 |
-
| **DFlash CE** | Block-parallel DFlash trained with token cross-entropy; a direct loss baseline after the guarded DSpark-to-DFlash warm start. | Establish a simple DFlash reference before testing position-weighted objectives or another serving layout. | 294.77 A100 and 89.61 MLX tok/s. Weight transfer required anchor-alignment retraining; it did not preserve DSpark acceptance by itself. |
|
| 44 |
-
| **DFlash DPACE** | Same DFlash serving architecture, but its training loss weights positions by a smoothed prefix-probability and continuation surrogate. | Research whether emphasizing tokens that can extend an accepted prefix helps your own held-out workload; compare with CE under identical serving settings. | 304.85 A100 and 89.97 MLX tok/s. This small speed difference from CE does not establish better acceptance or general speed. |
|
| 45 |
-
| **DFlash2** | Adds block-local grouped convolution and a trained candidate selector to the DFlash family. | Study candidate ranking or a richer draft when your runtime supports DFlash2; benchmark against the same target and prompts. | 80.75 MLX tok/s; A100 serving was unavailable in the tested SGLang 0.5.16 runtime. No A100 speed or deployment claim. |
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
-
|
| 52 |
-
| --- | ---: | ---: | --- |
|
| 53 |
-
| DSpark `v3-best` | 360.26 | 361.36 | Three-run median, v1–v3 held-out set |
|
| 54 |
-
| DFlash CE `v5` | 297.86 | 353.20 | Three-run median, v5 held-out set |
|
| 55 |
-
| DFlash DPACE `v5` | 306.28 | 353.20 | Three console values; raw run JSON missing |
|
| 56 |
-
| DFlash2 | not measured on A100 | — | SGLang 0.5.16 lacked compatible serving |
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
| 63 |
-
- The v4 MLX draft outputs matched the official DSpark outputs on 53/53 held-out prompts at verification width 3. Under the fast BF16 verifier, target-only output matched the official draft on only 18/53, so this **does not establish target-output equivalence**. On A100, the v4 fixed-12 comparison matched the target for 9/12 official/DSpark outputs and 7/12 DFlash CE/DPACE outputs.
|
| 64 |
-
- DFlash2 has MLX execution evidence but no compatible A100 SGLang 0.5.16 serving result. DFlash CE/DPACE likewise need exact token/state diagnosis before deployment.
|
| 65 |
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
-
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
```
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
-
|
| 75 |
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
language: en
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
+
base_model:
|
| 5 |
+
- openbmb/MiniCPM5-2B-DSpark
|
| 6 |
+
- openbmb/MiniCPM5-2B
|
| 7 |
tags:
|
| 8 |
- speculative-decoding
|
| 9 |
- draft-model
|
|
|
|
| 10 |
- minicpm5
|
| 11 |
+
- dspark
|
| 12 |
+
- dflash
|
| 13 |
license: other
|
| 14 |
+
library_name: draftfit
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# Draftfit — MiniCPM5-2B-SFT DFlash DPACE
|
| 18 |
|
| 19 |
+
[Draftfit](https://github.com/JayYun98/Draftfit) trains and adapts speculative-decoding draft models for a **frozen target LLM**.
|
| 20 |
|
| 21 |
+
This checkpoint is the **DFlash DPACE branch** adapted to:
|
| 22 |
|
| 23 |
+
- **Target:** [`openbmb/MiniCPM5-2B-SFT`](https://huggingface.co/openbmb/MiniCPM5-2B-SFT)
|
| 24 |
+
- **Starting draft:** [`openbmb/MiniCPM5-2B-DSpark`](https://huggingface.co/openbmb/MiniCPM5-2B-DSpark)
|
| 25 |
|
| 26 |
+
> Each Draftfit family has separate weights. DSpark, DFlash CE, DFlash DPACE and DFlash2 are **not one universal checkpoint**.
|
| 27 |
|
| 28 |
+
## Results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
+
### A100 / SGLang
|
| 31 |
|
| 32 |
+
| Draft | Overall tok/s |
|
| 33 |
+
| --- | ---: |
|
| 34 |
+
| Target only | 175.60 |
|
| 35 |
+
| Official DSpark | **354.69** |
|
| 36 |
+
| Draftfit DSpark | **347.94** |
|
| 37 |
+
| Draftfit DFlash CE | 294.77 |
|
| 38 |
+
| **Draftfit DFlash DPACE (Mine)** | **304.85** |
|
| 39 |
+
| DFlash2 | not measured |
|
| 40 |
|
| 41 |
+
### MLX / M5 Pro
|
| 42 |
|
| 43 |
+
| Draft | Overall tok/s |
|
| 44 |
+
| --- | ---: |
|
| 45 |
+
| Target only | 50.98 |
|
| 46 |
+
| Official DSpark | 105.38 |
|
| 47 |
+
| Draftfit DSpark | **116.15** |
|
| 48 |
+
| DFlash CE | 89.61 |
|
| 49 |
+
| **Draftfit DFlash DPACE (Mine)** | **89.97** |
|
| 50 |
+
| DFlash2 | 80.75 |
|
| 51 |
|
| 52 |
+
A100 and MLX use different measurement methods, so their absolute numbers should **not** be compared directly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
+
Validation set: **53 held-out conversations**
|
| 55 |
|
| 56 |
+
- PerfectBlend: 35
|
| 57 |
+
- OpenCodeInstruct: 6
|
| 58 |
+
- APIGen-MT: 6
|
| 59 |
+
- Nemotron Agentic: 6
|
| 60 |
|
| 61 |
+
## Domain results — MLX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
+
| Draft | PerfectBlend | OpenCode | APIGen-MT | Nemotron Agentic |
|
| 64 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 65 |
+
| Target only | 50.76 | 51.04 | 51.47 | 51.81 |
|
| 66 |
+
| Official DSpark | 107.83 | 112.19 | 107.79 | 85.86 |
|
| 67 |
+
| Draftfit DSpark | **118.29** | **122.28** | **116.04** | **91.99** |
|
| 68 |
+
| DFlash CE | 89.02 | 99.18 | 92.49 | 79.31 |
|
| 69 |
+
| **Draftfit DFlash DPACE (Mine)** | **89.84** | **103.20** | **91.62** | **76.97** |
|
| 70 |
+
| DFlash2 | 78.37 | 92.76 | 87.49 | 70.41 |
|
| 71 |
|
| 72 |
+
Full prompt-free summary: [`evaluation-v4.json`](evaluation-v4.json)
|
| 73 |
|
| 74 |
+
## Which draft should I use?
|
|
|
|
|
|
|
| 75 |
|
| 76 |
+
| Draft | Best use |
|
| 77 |
+
| --- | --- |
|
| 78 |
+
| **DSpark** | Best first choice when adapting an existing DSpark draft to a new target |
|
| 79 |
+
| **DFlash CE** | Simple block-parallel DFlash baseline |
|
| 80 |
+
| **DFlash DPACE** | Test position-weighted training objectives against CE |
|
| 81 |
+
| **DFlash2** | Research richer candidate ranking / grouped-convolution drafts |
|
| 82 |
|
| 83 |
+
For this MiniCPM5-SFT experiment, **DSpark is the strongest practical baseline**.
|
| 84 |
+
|
| 85 |
+
Draftfit DSpark reached **347.94 tok/s vs 354.69 tok/s** for the official DSpark on A100, while reaching **116.15 vs 105.38 tok/s** in the tested MLX setup.
|
| 86 |
+
|
| 87 |
+
These measurements do **not** establish a general speed advantage.
|
| 88 |
+
|
| 89 |
+
## Revisions
|
| 90 |
+
|
| 91 |
+
| Revision | Description |
|
| 92 |
+
| --- | --- |
|
| 93 |
+
| `main` | DFlash DPACE, primary release |
|
| 94 |
+
| `v5` | Additional 1,000-step continual-training stage on a fresh split |
|
| 95 |
+
|
| 96 |
+
Best observed DSpark A100 result:
|
| 97 |
+
|
| 98 |
+
- Draftfit DSpark [`v3-best`](https://huggingface.co/jayyun98/MiniCPM5-2B-SFT-Draftfit-DSpark/tree/v3-best): **360.26 tok/s**
|
| 99 |
+
- Matching official DSpark: **361.36 tok/s**
|
| 100 |
+
|
| 101 |
+
Different revisions used different held-out sets, so these numbers should not be used to rank revisions directly.
|
| 102 |
+
|
| 103 |
+
## Validation notes
|
| 104 |
+
|
| 105 |
+
The models were trained for **1,000 steps per stage** using disjoint 1,000-conversation training sets.
|
| 106 |
+
|
| 107 |
+
Training mixture per stage:
|
| 108 |
+
|
| 109 |
+
| Dataset | Rows |
|
| 110 |
+
| --- | ---: |
|
| 111 |
+
| PerfectBlend deduplicated | 700 |
|
| 112 |
+
| OpenCodeInstruct | 100 |
|
| 113 |
+
| APIGen-MT-5k | 100 |
|
| 114 |
+
| Nemotron-Agentic-v1 | 100 |
|
| 115 |
+
|
| 116 |
+
Important limitations:
|
| 117 |
+
|
| 118 |
+
- DSpark/DFlash serving correctness still requires exact token/state and acceptance-length validation.
|
| 119 |
+
- DFlash2 was tested on MLX but not on A100 with SGLang 0.5.16.
|
| 120 |
+
- A successfully loaded draft checkpoint does **not** prove correct speculative decoding.
|
| 121 |
+
- Reported speed is specific to the tested target, hardware, verifier settings and prompt set.
|
| 122 |
+
|
| 123 |
+
## Download
|
| 124 |
+
|
| 125 |
+
```bash
|
| 126 |
+
hf download jayyun98/MiniCPM5-2B-SFT-Draftfit-DFlash-DPACE \
|
| 127 |
+
--revision main \
|
| 128 |
+
--local-dir ./draft
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
The repository contains:
|
| 132 |
+
|
| 133 |
+
```text
|
| 134 |
+
config.json
|
| 135 |
+
model.safetensors
|
| 136 |
```
|
| 137 |
|
| 138 |
+
Use them with the pinned MiniCPM5-2B-SFT target and tokenizer.
|
| 139 |
|
| 140 |
+
Training, conversion and benchmarking workflows are documented in:
|
| 141 |
|
| 142 |
+
[Draftfit](https://github.com/JayYun98/Draftfit)
|
| 143 |
+
|
| 144 |
+
## License / data notice
|
| 145 |
+
|
| 146 |
+
The training mixture includes **APIGen-MT-5k**, which is marked **CC BY-NC 4.0** and includes additional generator-provenance restrictions.
|
| 147 |
+
|
| 148 |
+
Treat this release as **research / non-commercial** unless you have reviewed the source dataset terms.
|
| 149 |
+
|
| 150 |
+
See [`SOURCE_TERMS.md`](SOURCE_TERMS.md) and `release_manifest.json`.
|
| 151 |
+
|
| 152 |
+
---
|
| 153 |
|
| 154 |
+
**Experimental research artifact.**
|
| 155 |
+
The reported numbers are not a general production speedup or correctness claim.
|