Downloads · 30 days
102
16% of all-time downloads
shanjiaz/Qwen3-4B-speculator-b16.dspark
Qwen3-4B-speculator-b16.dspark is a text generation model from shanjiaz. Use it when you need the model to write or continue text. It is set up for speculators. The card lists the license as apache-2.0.
This repository contains a DSpark speculative decoding draft model trained for Qwen/Qwen3-4B. It proposes up to 16 tokens per decoding iteration and is intended for use with the vllm-project/speculators implementation…
Downloads · 30 days
102
16% of all-time downloads
All-time downloads
642
Public
Parameters
615M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 100%
From the Hugging Face model README
This repository contains a DSpark speculative decoding draft model trained for
Qwen/Qwen3-4B. It proposes up to 16
tokens per decoding iteration and is intended for use with the
vllm-project/speculators
implementation and vLLM.
This is an experimental baseline checkpoint. It was trained for one epoch with the standard cross-entropy and total-variation objective; it was not trained with D-PARD.
Qwen/Qwen3-4BThe model was trained from the speculators main branch at commit
ae96c74c0771ca4fb920df1279f41f60e54db2cc.
0.1 * CE + 0.9 * TVspeculators: 0.7.0.dev150The complete invocation is included in train_command.txt.
| Metric | Value |
|---|---|
| Loss | 0.2620 |
| Cross-entropy loss | 0.4829 |
| Total-variation loss | 0.1064 |
| Acceptance rate | 0.4361 |
| Acceptance length | 4.5802 |
| Full accuracy | 0.4958 |
The checkpoint was evaluated with the D-PARD evaluation implementation on
RedHatAI/speculator_benchmarks, with temperature 0, maximum generation length
128, maximum concurrency 128, and up to 200 requests per category.
| Category | Acceptance length |
|---|---|
| HumanEval | 4.9515 |
| Math reasoning | 6.2743 |
| QA | 4.0288 |
| Question | 4.0356 |
| RAG | 3.9408 |
| Summarization | 2.8349 |
| Tool call | 3.8006 |
| Translation | 4.0431 |
| Writing | 4.0295 |
| Weighted overall | 4.4054 |
The weighted overall result is computed as
1 + total accepted speculative tokens / total draft iterations.
For context, under the same dataset and sampling settings,
RedHatAI/Qwen3-4B-speculator.dspark using 8 speculative tokens achieved a
weighted acceptance length of 4.7543. These numbers are not a strict
architecture-controlled comparison because the models use different block
sizes (16 versus 8).
Use this repository as the speculative model for Qwen/Qwen3-4B through a
version of vLLM and speculators that supports DSpark. The verifier model and
tokenizer must remain Qwen/Qwen3-4B, and the configured speculative-token
count is 16.