How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="SJTU-DENG-Lab/MBD-Code-SDAR-8B-Chat-b4", trust_remote_code=True)
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("SJTU-DENG-Lab/MBD-Code-SDAR-8B-Chat-b4", trust_remote_code=True, dtype="auto")
Quick Links

Multi-Block Diffusion Language Models (MBD-LMs)

Model weights of MBD-LMs.

Introduction

Block Diffusion Language Models (BD-LMs) improve diffusion-based text generation with KV caching and flexible-length generation. Multi-Block Diffusion Language Models (MBD-LMs) extend this from Single-Block Diffusion (SingleBD) to Multi-Block Diffusion (MultiBD), where a running-set of consecutive blocks is decoded concurrently for inter-block parallelism.

MBD-LMs are obtained by post-training BD-LMs with Multi-block Teacher Forcing (MultiTF), which integrates teacher forcing and diffusion forcing by training on bounded noise-groups conditioned on clean prefixes, matching practical MultiBD inference states.

Citation

If you find this work useful, please cite:

@article{jin2026multiblock,
  title={Multi-Block Diffusion Language Models},
  author={Jin, Yijie and Xu, Jiajun and Liu, Yuxuan and Xu, Chenkai and Tu, Yi and Li, Jiajun and Tu, Dandan and Yan, Xiaohui and Yu, Kai and Liu, Pengfei and Deng, Zhijie},
  journal={arXiv preprint arXiv:2606.29215},
  year={2026}
}
Downloads last month
541
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including SJTU-DENG-Lab/MBD-Code-SDAR-8B-Chat-b4

Paper for SJTU-DENG-Lab/MBD-Code-SDAR-8B-Chat-b4