Run this model with HF Jobs
Run apple/dStreamer on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/apple/dStreamer. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/apple/dStreamer on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use apple/dStreamer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use apple/dStreamer with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download apple/dStreamer --local-dir dStreamer
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Model card: links, demo animations, highlights
Browse files6 unmodified lines789101112131415161718192021222 unmodified lines252627282930313233343536373839404142434445462 unmodified lines4950515253545556575859606 unmodified lines- speculative-decoding- vllm- mlx---# DStreamer drafters for Qwen3-4BDrafter checkpoints for [DStreamer](https://github.com/apple-aiml-research/ml-dStreamer), a lossless,diffusion-based speculative decoding method. The drafter is a small adapter that reads the targetmodel's KV cache and drafts a whole window in one pass, with no separate draft model or draft KVcache. DStreamer trains it in three stages: diffusion initialization, consistency distillation,and acceptance-aligned reinforcement learning that rewards drafts the target accepts. Output isidentical to the target model's own decoding.| folder | contents | use with ||---|---|---|2 unmodified linesTarget model: [Qwen/Qwen3-4B](https://huggingface.co/Qwen/Qwen3-4B), non-thinking chat format.## UsageDownload into the code repository:```bashgit clone https://github.com/apple-aiml-research/ml-dStreamer && cd ml-dStreamerhuggingface-cli download apple/dStreamer --local-dir checkpoints```**vLLM:**```bashbash vllm-port/setup.shbash vllm-port/scripts/run_dstreamer_vllm.sh --adapter checkpoints/qwen3-4b-k4/adapter.pt --cudagraphs```**Apple silicon (MLX):**```bash2 unmodified lines--ckpt-dir checkpoints/qwen3-4b-gru-k16 --prompts data/toy/gsm8k_qwen3_4b_greedy.jsonl --limit 4```See the [repository](https://github.com/apple-aiml-research/ml-dStreamer) for training, benchmarks and RLVR.## CitationPaper: *DStreamer: Acceptance-Aligned Diffusion Streaming for High-Throughput Serving and Online RLVR*(link to follow).## License6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344452 unmodified lines4849505152535455565758596061626364656667686970712 unmodified lines74757677787980818283848586878889909192939495966 unmodified lines- speculative-decoding- vllm- mlx- arxiv:2612.04814---<h1 align="center">DStreamer</h1><p align="center"><b>Acceptance-Aligned Diffusion Streaming for High-Throughput Serving and Online RLVR</b></p><p align="center"><a href="https://arxiv.org/abs/2612.04814"><img src="https://img.shields.io/badge/Paper-arXiv%3A2612.04814-b31b1b"></a><a href="https://github.com/apple-aiml-research/ml-dStreamer"><img src="https://img.shields.io/badge/Code-GitHub-181717?logo=github"></a><a href="https://apple-aiml-research.github.io/ml-dStreamer/"><img src="https://img.shields.io/badge/Blog-interactive-3fb950"></a></p><p align="center"><a href="https://apple-aiml-research.github.io/ml-dStreamer/"><img src="https://raw.githubusercontent.com/apple-aiml-research/ml-dStreamer/main/assets/rlvr.gif" width="94%" alt="Online RLVR: a frozen drafter's speedup decays as the policy changes; DStreamer++ keeps it, and the training reward is unchanged"></a></p>DStreamer is a lossless, diffusion-based speculative decoding method. Its drafter is a small adapterthat reads the target model's KV cache and drafts a whole window in one pass, with no separate draftmodel or draft KV cache. Output is identical to the target model's own decoding.| | ||:---:|:---|| **3.8×** | aggregate serving throughput over autoregressive decoding at matched per-request rate (vLLM, Qwen3-4B) || **1.93–2.15×** | end-to-end RLVR training speedup across Qwen3-4B, 8B and 14B, with preserved final policy quality || **0** | additional KV cache for the drafter |**How it is trained.** DStreamer trains the drafter in three stages: **diffusion initialization**,**consistency distillation**, and **acceptance-aligned reinforcement learning** that rewards drafts thetarget accepts. During RLVR the policy keeps changing, so **DStreamer++** keeps updating the drafter onthe same rollouts; the rollouts stay exact samples from the current policy.## Checkpoints| folder | contents | use with ||---|---|---|2 unmodified linesTarget model: [Qwen/Qwen3-4B](https://huggingface.co/Qwen/Qwen3-4B), non-thinking chat format.## Quick start```bashgit clone https://github.com/apple-aiml-research/ml-dStreamer && cd ml-dStreamerhuggingface-cli download apple/dStreamer --local-dir checkpoints```**vLLM serving:**```bashbash vllm-port/setup.shbash vllm-port/scripts/run_dstreamer_vllm.sh --adapter checkpoints/qwen3-4b-k4/adapter.pt --cudagraphs```<p align="center"><img src="https://raw.githubusercontent.com/apple-aiml-research/ml-dStreamer/main/assets/demo.gif" width="94%" alt="Autoregressive decoding, EAGLE-3, DFlash and DStreamer on 256 concurrent requests in vLLM"></p>**Apple silicon (MLX):**```bash2 unmodified lines--ckpt-dir checkpoints/qwen3-4b-gru-k16 --prompts data/toy/gsm8k_qwen3_4b_greedy.jsonl --limit 4```<p align="center"><img src="https://raw.githubusercontent.com/apple-aiml-research/ml-dStreamer/main/assets/demo_mlx.gif" width="94%" alt="Autoregressive decoding vs DStreamer on an Apple M3 Max"></p>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
README.md+50-14