Views
No views yet

distill-LLaDA2-CALM is a 0.6B diffusion language model distilled from LLaDA2.0-mini (16B MoE) into the Qwen3-0.6B-diffusion-bd3lm-v0.1 student in the Cross-Tokenizer (Pipeline A) of the TIDE framework. Forward CALM (chunk-level approximate likelihood matching) baseline.Qwen3-0.6B-diffusion-bd3lm-v0.1 (BD3LM, block_size=32)inclusionAI/LLaDA2.0-mini--distill_mode almQwen3-0.6B-diffusion-bd3lm-v0.1 base. Pre-tokenized for this teacher in TIDE-dllm/distill_llada2_sft.pip install torch transformers accelerate[!NOTE] This checkpoint is fully compatible with the BD3LMgenerate(...)routine published withdllm-hub/Qwen3-0.6B-diffusion-bd3lm-v0.1— only the model name changes.
1import torch
2from transformers import AutoModelForMaskedLM, AutoTokenizer
3
4repo = "TIDE-dllm/distill-LLaDA2-CALM"
5device = "cuda" if torch.cuda.is_available() else "cpu"
6
7model = AutoModelForMaskedLM.from_pretrained(
8 repo, dtype=torch.bfloat16, trust_remote_code=True,
9).to(device).eval()
10tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
11
12prompts = [
13 [
14 {"role": "system", "content": "You are a helpful AI assistant."},
15 {"role": "user", "content": "Implement a DFS traversal in Python with clear inline comments."},
16 ],
17]
18encoded = [tokenizer.apply_chat_template(m, add_generation_prompt=True, tokenize=True, enable_thinking=False) for m in prompts]
19# ... use the same `generate()` function as in dllm-hub/Qwen3-0.6B-diffusion-bd3lm-v0.1.1python -u examples/a2d/bd3lm/chat.py \
2 --model_name_or_path TIDE-dllm/distill-LLaDA2-CALM \
3 --chat_template True --block_size 32 --remasking low_confidence \
4 --steps 256 --max_new_tokens 2561git clone https://github.com/PKU-YuanGroup/TIDE && cd TIDE
2pip install -e . && git submodule update --init --recursive
3pip install -e "lm-evaluation-harness[ifeval,math]" && pip install -e "tokenkit[full]"
4
5# Download the pre-tokenized SFT mixture for this teacher
6huggingface-cli download TIDE-dllm/distill_llada2_sft --repo-type dataset \
7 --local-dir data/distill_llada2_sft
8
9bash scripts/distill_llada2.sh \
10 --data_path data/distill_llada2_sft \
11 --distill_mode alm \
12 --num_gpus 81@misc{zhang2026turningtidecrossarchitecturedistillation,
2 title={Turning the TIDE: Cross-Architecture Distillation for Diffusion Large Language Models},
3 author={Gongbo Zhang and Wen Wang and Ye Tian and Li Yuan},
4 year={2026},
5 eprint={2604.26951},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2604.26951},
9}