Text Generation
Transformers
Safetensors
English
a2d-qwen3
fill-mask
DLLM
diffusion-language-model
on-policy-distillation
post-training
conversational
Instructions to use divelab/OPDLM-0.6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use divelab/OPDLM-0.6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="divelab/OPDLM-0.6B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelWithLMHead model = AutoModelWithLMHead.from_pretrained("divelab/OPDLM-0.6B", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use divelab/OPDLM-0.6B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "divelab/OPDLM-0.6B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "divelab/OPDLM-0.6B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/divelab/OPDLM-0.6B
- SGLang
How to use divelab/OPDLM-0.6B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "divelab/OPDLM-0.6B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "divelab/OPDLM-0.6B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "divelab/OPDLM-0.6B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "divelab/OPDLM-0.6B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use divelab/OPDLM-0.6B with Docker Model Runner:
docker model run hf.co/divelab/OPDLM-0.6B
File size: 1,994 Bytes
f89d485 e6d44e2 f89d485 e6d44e2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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 | ---
license: mit
language:
- en
tags:
- DLLM
- diffusion-language-model
- on-policy-distillation
- post-training
library_name: transformers
pipeline_tag: text-generation
base_model: Qwen/Qwen3-0.6B
datasets:
- divelab/opdlm_train_data
arxiv: 2606.06712
---
# OPDLM-0.6B
OPDLM-0.6B is a block diffusion language model (DLM) obtained by post-training an
autoregressive language model (ARLM) into a diffusion language model via
**on-policy distillation**. arXiv report: [arxiv.org/abs/2606.06712](https://arxiv.org/abs/2606.06712)
## Highlights
- **Converted, not pretrained from scratch:** built from a strong ARLM, reusing its prior.
- **Training-efficient:** orders of magnitude fewer tokens than from-scratch DLM training (same base ARLM).
- **Inference-efficient:** parallel token decoding via block diffusion.
## Model Details
- **Developed by:** DIVE Lab, Texas A&M University
- **Base model:** [Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B)
- **Model type:** Block diffusion language model (decoder-based)
- **Block size:** 4
- **Parameters:** ~0.6B
- **Language:** English
- **License:** MIT
## Training
- **Method:** On-policy distillation from a frozen ARLM teacher into a block DLM student.
- **Conversion budget:** ~<fill in>B tokens
- **Data:** [opdlm_train_data](https://huggingface.co/datasets/divelab/opdlm_train_data)
## Results
For detailed results and benchmarks, please refer to our paper: [arxiv.org/abs/2606.06712](https://arxiv.org/abs/2606.06712)
## Citation
```bibtex
@misc{su2026dataefficientautoregressivetodiffusionlanguagemodels,
title={Data-Efficient Autoregressive-to-Diffusion Language Models via On-Policy Distillation},
author={Xingyu Su and Jacob Helwig and Shubham Parashar and Atharv Chagi and Lakshmi Jotsna and Degui Zhi and James Caverlee and Dileep Kalathil and Shuiwang Ji},
year={2026},
eprint={2606.06712},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2606.06712},
}
``` |