Shorten the model card to the evaluation settings and results
Browse files
README.md
CHANGED
|
@@ -14,163 +14,38 @@ tags:
|
|
| 14 |
|
| 15 |
# Muse Spark Open DFlash2
|
| 16 |
|
| 17 |
-
|
| 18 |
[meta-models/Muse-Spark-Open-816B-A42B-NVFP4](https://huggingface.co/meta-models/Muse-Spark-Open-816B-A42B-NVFP4).
|
| 19 |
-
It drafts 7 tokens per step in one parallel pass, conditioned on hidden states from five layers of
|
| 20 |
-
the target. It was trained for 2 epochs on
|
| 21 |
-
[Inferact/Muse-Spark-Open-Speculators](https://huggingface.co/datasets/Inferact/Muse-Spark-Open-Speculators),
|
| 22 |
-
the target's own answers to every prompt in open-perfectblend.
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
| 38 |
-
|
|
| 39 |
-
|
|
| 40 |
-
|
|
| 41 |
-
|
|
| 42 |
-
|
|
| 43 |
-
|
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
up to 4,608 draft blocks (anchors) per sequence. Muon optimizer (lr 3e-3), cosine schedule, cross-entropy loss with
|
| 57 |
-
DPACE per-position weights, seed 42.
|
| 58 |
-
- **Code:** Inferact's fork of speculators (upstream 21192d6 plus online-training and DFlash2
|
| 59 |
-
metric changes).
|
| 60 |
-
|
| 61 |
-
Validation on the held-out 1% after each epoch (teacher-forced, the trainer's selector path):
|
| 62 |
-
|
| 63 |
-
| After epoch | Acceptance length | Accept rate, positions 1 to 7 | Loss |
|
| 64 |
-
| --- | ---: | --- | ---: |
|
| 65 |
-
| 1 (step 38,137) | 3.814 | 0.801 0.608 0.455 0.341 0.258 0.198 0.153 | 1.772 |
|
| 66 |
-
| 2 (step 76,268) | **4.271** | 0.844 0.678 0.534 0.418 0.329 0.260 0.207 | 1.585 |
|
| 67 |
-
|
| 68 |
-
## Usage with vLLM
|
| 69 |
-
|
| 70 |
-
The evaluations below ran on Inferact's Muse Spark build of vLLM (`a34ca64c`, image
|
| 71 |
-
`inferactinc/mpk-oss:muse-spark-a34ca64-fi6b49d21c-arm64-cu130`) with the V2 model runner, which
|
| 72 |
-
holds this build's DFlash2 drafter.
|
| 73 |
-
|
| 74 |
-
```bash
|
| 75 |
-
VLLM_USE_V2_MODEL_RUNNER=1 vllm serve meta-models/Muse-Spark-Open-816B-A42B-NVFP4 \
|
| 76 |
-
--tensor-parallel-size 4 --enable-expert-parallel --language-model-only \
|
| 77 |
-
--kv-cache-dtype fp8 --attention-backend FLASHINFER --linear-backend flashinfer_cutedsl \
|
| 78 |
-
--speculative-config '{"method":"dflash","model":"Inferact/Muse-Spark-Open-DFlash2","num_speculative_tokens":7}'
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
Two things are required on build `a34ca64c`:
|
| 82 |
-
|
| 83 |
-
- **Pass `"method":"dflash"`.** Without it, the build picks the method from the draft's path and
|
| 84 |
-
can fall back to `draft_model`, which runs the draft without the target's hidden states and
|
| 85 |
-
accepts nothing.
|
| 86 |
-
- **Cast the target's hidden states to the draft's dtype.** Muse keeps its residual stream in
|
| 87 |
-
FP32, and the generic DFlash draft feeds it to its BF16 `fc` unchanged, which fails with
|
| 88 |
-
"expected mat1 and mat2 to have the same dtype". The evaluations used a one-line patch to
|
| 89 |
-
`vllm/model_executor/models/qwen3_dflash.py`:
|
| 90 |
-
`self.model.fc(hidden_states.to(self.model.fc.weight.dtype))`. Muse's own DSpark draft already
|
| 91 |
-
casts there; the engine fix is pending.
|
| 92 |
-
|
| 93 |
-
## Evaluation
|
| 94 |
-
|
| 95 |
-
### Server
|
| 96 |
-
|
| 97 |
-
One node of 4 NVIDIA GB200 GPUs, one engine:
|
| 98 |
-
|
| 99 |
-
| Setting | Value |
|
| 100 |
-
| --- | --- |
|
| 101 |
-
| Engine | vLLM `a34ca64c` (Muse Spark build), V2 model runner, plus the cast patch above |
|
| 102 |
-
| Target | `meta-models/Muse-Spark-Open-816B-A42B-NVFP4` at revision `4239e4db19376904f2e82c167e78f70abb5455fe` |
|
| 103 |
-
| Parallelism | Tensor parallel 4 with expert parallelism |
|
| 104 |
-
| Speculative config | `{"method":"dflash","model":<this repo>,"num_speculative_tokens":7}`; every other key at the build's default (below) |
|
| 105 |
-
| Verification | `rejection_sample_method` `standard`: token-by-token rejection sampling. Draft token *x* is accepted with probability p(*x*) under the target's sampling distribution, stopping at the first rejection; the rejected position is resampled from the target without *x*; a bonus token follows a full accept. Greedy requests accept only the target's argmax. Block verification and adaptive verification off. |
|
| 106 |
-
| Drafting | `draft_sample_method` `greedy`: the selector's top candidate at each position, with no draft probabilities passed to verification |
|
| 107 |
-
| Sampling defaults | From the target's `generation_config.json`: temperature 1.0, top_k 64, top_p 1.0 (requests may override) |
|
| 108 |
-
| KV cache and attention | FP8 KV cache, FlashInfer attention, `VLLM_KV_CACHE_LAYOUT=LBHNC` |
|
| 109 |
-
| Limits | `--max-model-len 16384 --max-num-seqs 64 --max-num-batched-tokens 16384 --gpu-memory-utilization 0.88` |
|
| 110 |
-
| Other flags | `--no-enable-prefix-caching --enable-chunked-prefill --linear-backend flashinfer_cutedsl --no-enable-flashinfer-autotune --dtype bfloat16 --language-model-only --compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE","max_cudagraph_capture_size":64}'` |
|
| 111 |
-
|
| 112 |
-
### Client
|
| 113 |
-
|
| 114 |
-
The Rust `vllm-bench` from vLLM `main` (`803bc13cf9`, `rust/`), one benchmark at a time against
|
| 115 |
-
the one server:
|
| 116 |
-
|
| 117 |
-
- Chat completions (`--backend openai-chat`, `/v1/chat/completions`); the server applies the
|
| 118 |
-
target's chat template with its defaults (reasoning effort `xhigh`).
|
| 119 |
-
- `--temperature 1.0 --top-p 0.95`; top_k is not sent, so the server's 64 applies. Effective
|
| 120 |
-
sampling: T=1.0, top_p 0.95, top_k 64.
|
| 121 |
-
- `max_tokens` is a per-benchmark cap (table below), with no `ignore_eos`: a response ends at the
|
| 122 |
-
end-of-turn token or the cap.
|
| 123 |
-
- Prompts shuffled with seed 0, `--no-oversample` (no prompt repeats); the client skips rows it
|
| 124 |
-
cannot use (multi-turn or masked).
|
| 125 |
-
- Acceptance comes from the server's `vllm:spec_decode_*` counters, read from `/metrics` before
|
| 126 |
-
and after each benchmark. The pooled row sums the counters over all 13 benchmarks.
|
| 127 |
-
|
| 128 |
-
Example (MT-Bench):
|
| 129 |
-
|
| 130 |
-
```bash
|
| 131 |
-
vllm-bench --backend openai-chat --base-url http://<server>:8000 \
|
| 132 |
-
--model <target path> --tokenizer <target path> \
|
| 133 |
-
--dataset-name hf --dataset-path philschmid/mt-bench --hf-subset default --hf-split train \
|
| 134 |
-
--hf-output-len 1024 --num-prompts 80 --no-oversample --max-concurrency 32 \
|
| 135 |
-
--temperature 1.0 --top-p 0.95 --save-result --save-detailed
|
| 136 |
-
```
|
| 137 |
-
|
| 138 |
-
SPEED-Bench rows use `--dataset-name speed-bench --speed-bench-config <config>
|
| 139 |
-
--speed-bench-category <category> --speed-bench-output-len <n>`, and the low-entropy row adds
|
| 140 |
-
`--speed-bench-max-input-len 10240`.
|
| 141 |
-
|
| 142 |
-
### Results (2026-10-27)
|
| 143 |
-
|
| 144 |
-
| Benchmark | Dataset | Prompts used | max_tokens | Concurrency | Acceptance length | Accept rate, positions 1 to 7 |
|
| 145 |
-
| --- | --- | ---: | ---: | ---: | ---: | --- |
|
| 146 |
-
| GSM8K | `openai/gsm8k` main, test | 256 | 1,024 | 32 | **3.925** | 0.77 0.60 0.47 0.37 0.29 0.23 0.19 |
|
| 147 |
-
| MATH-500 | `HuggingFaceH4/MATH-500` | 500 | 2,048 | 32 | 3.898 | 0.77 0.59 0.46 0.37 0.29 0.23 0.19 |
|
| 148 |
-
| SPEED-Bench coding | `nvidia/SPEED-Bench` qualitative | 61 | 2,048 | 16 | 3.658 | 0.74 0.54 0.41 0.32 0.26 0.21 0.18 |
|
| 149 |
-
| HumanEval | `openai/openai_humaneval` | 164 | 1,024 | 16 | 3.653 | 0.74 0.55 0.41 0.32 0.25 0.21 0.17 |
|
| 150 |
-
| MBPP | `Muennighoff/mbpp` full, test | 256 | 1,024 | 32 | 3.576 | 0.74 0.55 0.40 0.31 0.24 0.19 0.15 |
|
| 151 |
-
| AIME 2026 | `math-ai/aime26` | 30 | 4,096 | 30 | 3.559 | 0.74 0.55 0.41 0.31 0.23 0.18 0.14 |
|
| 152 |
-
| SPEED-Bench multilingual | `nvidia/SPEED-Bench` qualitative | 47 | 2,048 | 16 | 3.552 | 0.73 0.54 0.40 0.31 0.24 0.18 0.15 |
|
| 153 |
-
| SPEED-Bench RAG | `nvidia/SPEED-Bench` qualitative | 55 | 2,048 | 16 | 3.467 | 0.73 0.53 0.39 0.29 0.22 0.17 0.13 |
|
| 154 |
-
| SPEED-Bench low entropy | `nvidia/SPEED-Bench` throughput_16k, inputs cut to 10,240 tokens | 302 | 1,536 | 32 | 3.426 | 0.71 0.51 0.37 0.28 0.22 0.18 0.15 |
|
| 155 |
-
| MT-Bench | `philschmid/mt-bench` | 80 | 1,024 | 32 | 3.261 | 0.72 0.50 0.36 0.25 0.19 0.14 0.11 |
|
| 156 |
-
| SWE-bench Pro | `ScaleAI/SWE-bench_Pro` problem statements | 128 | 2,048 | 16 | 3.118 | 0.69 0.47 0.33 0.23 0.17 0.13 0.09 |
|
| 157 |
-
| SPEED-Bench QA | `nvidia/SPEED-Bench` qualitative | 80 | 2,048 | 16 | 3.038 | 0.69 0.47 0.32 0.22 0.15 0.11 0.08 |
|
| 158 |
-
| SPEED-Bench writing | `nvidia/SPEED-Bench` qualitative | 76 | 2,048 | 16 | 2.965 | 0.69 0.46 0.31 0.20 0.14 0.10 0.07 |
|
| 159 |
-
| **Pooled** | | | | | **3.555** | 0.73 0.54 0.40 0.31 0.24 0.19 0.15 |
|
| 160 |
-
|
| 161 |
-
- No request failed. These runs measured acceptance only: there is no speedup or quality check.
|
| 162 |
-
- With the `xhigh` default most of each response is reasoning, and AIME and SPEED-Bench low
|
| 163 |
-
entropy mostly ran to their caps.
|
| 164 |
-
- Math scores highest and open-ended writing and QA lowest. The gap is mostly in the later
|
| 165 |
-
positions; position 1 stays between 0.69 and 0.77 everywhere.
|
| 166 |
-
|
| 167 |
-
### Held-out training prompts, greedy
|
| 168 |
-
|
| 169 |
-
The same server, but greedy requests (temperature 0) on 256 held-out rows of the training data,
|
| 170 |
-
up to 512 tokens each: acceptance length **4.565**, positions 1 to 7 accepted at 0.843 0.697
|
| 171 |
-
0.576 0.475 0.392 0.321 0.261. The epoch-1 checkpoint scored 3.966 on the same prompts.
|
| 172 |
-
|
| 173 |
-
## License
|
| 174 |
-
|
| 175 |
-
This draft was trained on outputs of Muse Spark Open and conditions on its hidden states, so its
|
| 176 |
-
use is subject to the Muse model license.
|
|
|
|
| 14 |
|
| 15 |
# Muse Spark Open DFlash2
|
| 16 |
|
| 17 |
+
DFlash2 draft model for
|
| 18 |
[meta-models/Muse-Spark-Open-816B-A42B-NVFP4](https://huggingface.co/meta-models/Muse-Spark-Open-816B-A42B-NVFP4).
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
## Evaluation settings
|
| 21 |
+
|
| 22 |
+
- **Server:** vLLM (Muse Spark build `a34ca64c`), target NVFP4 with TP4 + EP on 4 GB200 GPUs,
|
| 23 |
+
FP8 KV cache, prefix caching off. Speculative config
|
| 24 |
+
`{"method":"dflash","num_speculative_tokens":7}`: greedy drafts, token-by-token rejection
|
| 25 |
+
sampling (no block verification).
|
| 26 |
+
- **Client:** `vllm-bench`, chat completions, temperature 1.0, top_p 0.95, top_k 64, reasoning
|
| 27 |
+
effort `xhigh` (chat template default), one benchmark at a time.
|
| 28 |
+
- **Metric:** acceptance length = 1 + accepted draft tokens / drafts (includes the bonus token),
|
| 29 |
+
from the server's spec-decode counters.
|
| 30 |
+
|
| 31 |
+
## Results
|
| 32 |
+
|
| 33 |
+
| Benchmark | Prompts | Max tokens | Acceptance length | Accept rate, positions 1-7 |
|
| 34 |
+
| --- | ---: | ---: | ---: | --- |
|
| 35 |
+
| GSM8K | 256 | 1,024 | **3.925** | 0.77 0.60 0.47 0.37 0.29 0.23 0.19 |
|
| 36 |
+
| MATH-500 | 500 | 2,048 | 3.898 | 0.77 0.59 0.46 0.37 0.29 0.23 0.19 |
|
| 37 |
+
| SPEED-Bench coding | 61 | 2,048 | 3.658 | 0.74 0.54 0.41 0.32 0.26 0.21 0.18 |
|
| 38 |
+
| HumanEval | 164 | 1,024 | 3.653 | 0.74 0.55 0.41 0.32 0.25 0.21 0.17 |
|
| 39 |
+
| MBPP | 256 | 1,024 | 3.576 | 0.74 0.55 0.40 0.31 0.24 0.19 0.15 |
|
| 40 |
+
| AIME 2026 | 30 | 4,096 | 3.559 | 0.74 0.55 0.41 0.31 0.23 0.18 0.14 |
|
| 41 |
+
| SPEED-Bench multilingual | 47 | 2,048 | 3.552 | 0.73 0.54 0.40 0.31 0.24 0.18 0.15 |
|
| 42 |
+
| SPEED-Bench RAG | 55 | 2,048 | 3.467 | 0.73 0.53 0.39 0.29 0.22 0.17 0.13 |
|
| 43 |
+
| SPEED-Bench low entropy (10K-token inputs) | 302 | 1,536 | 3.426 | 0.71 0.51 0.37 0.28 0.22 0.18 0.15 |
|
| 44 |
+
| MT-Bench | 80 | 1,024 | 3.261 | 0.72 0.50 0.36 0.25 0.19 0.14 0.11 |
|
| 45 |
+
| SWE-bench Pro | 128 | 2,048 | 3.118 | 0.69 0.47 0.33 0.23 0.17 0.13 0.09 |
|
| 46 |
+
| SPEED-Bench QA | 80 | 2,048 | 3.038 | 0.69 0.47 0.32 0.22 0.15 0.11 0.08 |
|
| 47 |
+
| SPEED-Bench writing | 76 | 2,048 | 2.965 | 0.69 0.46 0.31 0.20 0.14 0.10 0.07 |
|
| 48 |
+
| **Pooled** | | | **3.555** | 0.73 0.54 0.40 0.31 0.24 0.19 0.15 |
|
| 49 |
+
|
| 50 |
+
Greedy decoding (temperature 0) on 256 held-out prompts from the training data, up to 512 tokens
|
| 51 |
+
each: acceptance length **4.565**.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|