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
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.
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.
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, non-thinking chat format.
Quick start
git clone https://github.com/apple-aiml-research/ml-dStreamer && cd ml-dStreamer
huggingface-cli download apple/dStreamer --local-dir checkpoints
vLLM serving:
bash vllm-port/setup.sh
bash vllm-port/scripts/run_dstreamer_vllm.sh --adapter checkpoints/qwen3-4b-k4/adapter.pt --cudagraphs
Apple silicon (MLX):
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
Training (diffusion initialization, distillation, drafter RL) and RLVR with --mode ar | frozen | online
are documented in the repository.
Citation
@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. The code in the GitHub repository is under the Apple Sample Code License.

# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download apple/dStreamer --local-dir dStreamer