--- license: other license_name: apple-amlr license_link: LICENSE base_model: Qwen/Qwen3-4B tags: - speculative-decoding - vllm - mlx - arxiv:2612.04814 ---

DStreamer

Acceptance-Aligned Diffusion Streaming for High-Throughput Serving and Online RLVR

DStreamer is a lossless, diffusion-based speculative decoding method. Its drafter is a small adapter that reads the target model's KV cache and drafts a whole window in one pass, so it needs **no draft KV cache**. Output is identical to the target model's own decoding. The drafter is trained with diffusion initialization, consistency distillation and acceptance-aligned reinforcement learning. ## Online RLVR: 1.93–2.15× faster training During RLVR the policy keeps changing, so **DStreamer++** keeps updating the drafter on the same rollouts. Rollouts stay exact samples from the current policy: **1.93–2.15×** end-to-end speedup on Qwen3-4B, 8B and 14B, with final policy quality preserved.

Online RLVR: a frozen drafter's speedup decays as the policy changes; DStreamer++ keeps it, and the training reward is unchanged

## Serving throughput Qwen3-4B under vLLM continuous batching on GSM8K, with concurrency swept from 64 to 1024. Each curve plots aggregate system throughput against per-request output rate. DStreamer traces the outer frontier relative to EAGLE-3 and DFlash (block sizes 4 and 16) across the evaluated range. At matched per-request rate it reaches up to **3.8×** the aggregate throughput of autoregressive decoding, with **zero draft KV cache**: the adapter reads the target model's own KV cache.

Serving frontier on GSM8K, Qwen3-4B in vLLM: system throughput vs per-request throughput for DStreamer, DFlash, EAGLE-3 and autoregressive decoding at concurrencies 64 to 1024

## Checkpoints | folder | contents | use with | |---|---|---| | `qwen3-4b-k4/` | `adapter.pt`, `config.json`: 8-layer adapter, 4-token window | vLLM serving, PyTorch decoding, RLVR (`--mode frozen` / `online`) | | `qwen3-4b-gru-k16/` | `adapter.pt`, `head.pt`, `config.json`: 4-layer adapter with a GRU draft head, 16-token window | MLX on Apple silicon | Target model: [Qwen/Qwen3-4B](https://huggingface.co/Qwen/Qwen3-4B), non-thinking chat format. ## Quick start ```bash git clone https://github.com/apple-aiml-research/ml-dStreamer && cd ml-dStreamer huggingface-cli download apple/dStreamer --local-dir checkpoints ``` **vLLM serving:** ```bash bash vllm-port/setup.sh bash vllm-port/scripts/run_dstreamer_vllm.sh --adapter checkpoints/qwen3-4b-k4/adapter.pt --cudagraphs ``` **Apple silicon (MLX):** ```bash pip install mlx mlx-lm PYTHONPATH=. python mlx_port/inference/benchmark_rnn_head.py --model Qwen/Qwen3-4B \ --ckpt-dir checkpoints/qwen3-4b-gru-k16 --prompts data/toy/gsm8k_qwen3_4b_greedy.jsonl --limit 4 ```

Autoregressive decoding vs DStreamer on an Apple M3 Max

Training (diffusion initialization, distillation, drafter RL) and RLVR with `--mode ar | frozen | online` are documented in the [repository](https://github.com/apple-aiml-research/ml-dStreamer). ## Citation ```bibtex @article{bhendawade2026dstreamer, title = {DStreamer: Acceptance-Aligned Diffusion Streaming for High-Throughput Serving and Online RLVR}, author = {Bhendawade, Nikhil and Bartels, Chris and Boominathan, Lokesh and Moosavi Dezfooli, Seyed Mohsen and Nabi, Moin and Belousova, Irina}, journal = {arXiv preprint arXiv:2612.04814}, year = {2026} } ``` ## License The model weights are released under the Apple Machine Learning Research Model License; see [LICENSE](LICENSE). The code in the GitHub repository is under the Apple Sample Code License.