Text Generation
Transformers
Safetensors
English
a2d-qwen3
fill-mask
DLLM
diffusion-language-model
on-policy-distillation
post-training
conversational
Instructions to use divelab/OPDLM-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use divelab/OPDLM-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="divelab/OPDLM-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelWithLMHead model = AutoModelWithLMHead.from_pretrained("divelab/OPDLM-8B", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use divelab/OPDLM-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "divelab/OPDLM-8B" # 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-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/divelab/OPDLM-8B
- SGLang
How to use divelab/OPDLM-8B 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-8B" \ --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-8B", "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-8B" \ --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-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use divelab/OPDLM-8B with Docker Model Runner:
docker model run hf.co/divelab/OPDLM-8B
File size: 2,194 Bytes
cd422be 2758b86 cd422be 1aa9ccf cd422be bf0939c 1aa9ccf bf0939c fab2ee0 bf0939c fab2ee0 bf0939c fab2ee0 bf0939c fab2ee0 bf0939c fab2ee0 bf0939c af0d73b 1aa9ccf bf0939c | 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 57 58 59 60 61 62 63 64 65 66 67 68 69 | ---
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-8B
datasets:
- divelab/opdlm_train_data
arxiv: 2606.06712
---
# OPDLM-8B
OPDLM-8B 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:** ~0.066B tokens of conversion vs. ~50B tokens for 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-8B](https://huggingface.co/Qwen/Qwen3-8B)
- **Model type:** Block diffusion language model (decoder-based)
- **Block size:** 4
- **Parameters:** ~8B
- **Language:** English
- **License:** MIT
## Training
- **Method:** On-policy distillation from a frozen ARLM teacher into a block DLM student.
- **Conversion budget:** ~0.066B tokens
- **Data:** [opdlm_train_data](https://huggingface.co/datasets/divelab/opdlm_train_data)
## Evaluation
| Benchmark | Score |
|-------------|-------|
| MMLU | 70.9 |
| MMLU-Pro | 53.7 |
| GPQA-Diamond| 36.1 |
| IFEval | 50.1 |
| GSM8K | 87.1 |
| MATH500 | 71.2 |
| AIME-24 | 14.7 |
| AIME-25 | 12.4 |
| HumanEval | 59.8 |
| MBPP | 48.7 |
Decoding: static (one token per step)
## 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},
}
``` |