CoolFace
Modelpublic

UT-IFML/dQwen3.5-0.8B-Base

sourceHugging Faceapache-2.0updated 5d agoView on Hugging Face
1likes744downloads
Model Card

dQwen3.5-0.8B-Base

A masked diffusion language model adapted from Qwen3.5-0.8B. The backbone is hybrid: only its attention layers are made bidirectional, and the Gated DeltaNet layers stay causal. This is a base model, with no instruction tuning.

Paper: dQwen3.5: Hybrid-Attention Diffusion Language Models. Code: https://github.com/AntonXue/dQwen

The dQwen3.5 family

modeltotal paramsbackbone
dQwen3.5-0.8B-Base (this repo)0.75Bhybrid
dQwen3.5-2B-Base1.88Bhybrid
dQwen3.5-4B-Base4.21Bhybrid
dQwen3.5-9B-Base8.95Bhybrid
dQwen3-1.7B-Base1.72Bfull attention (control)

Quickstart

Needs a CUDA GPU and transformers>=5.13 (tested with torch 2.7.1+cu128, flash-linear-attention 0.5.1).

python
import torch
from transformers import AutoModel

model = AutoModel.from_pretrained("UT-IFML/dQwen3.5-0.8B-Base", trust_remote_code=True, dtype=torch.bfloat16).cuda().eval()
print(model.generate("def fibonacci(n):", gen_length=512, stop_strings=["\ndef "]).text)

generate decodes the whole canvas at once, committing positions above a confidence threshold (tau=0.9); pass block_length=32 for left-to-right block decoding, or tau=None, steps_per_block=k for a fixed budget. The 50B-token checkpoint from the paper is revision="step25000-swa".

Citation

bibtex
@article{xue2026dqwen,
  title   = {dQwen3.5: Hybrid-Attention Diffusion Language Models},
  author  = {Xue, Anton and Rout, Litu and Akella, Aditya and Klivans, Adam and Sanghavi, Sujay and Shakkottai, Sanjay},
  journal = {arXiv preprint arXiv:2609.20751},
  year    = {2026}
}