Views
No views yet

distill-WeDLM-KL is a 0.6B diffusion language model distilled from WeDLM-8B-Instruct (8B dense) into the Qwen3-0.6B-diffusion-bd3lm-v0.1 student in the Shared-Tokenizer (Pipeline B) of the TIDE framework. Forward token-level KL distillation baseline.Qwen3-0.6B-diffusion-bd3lm-v0.1 (BD3LM, block_size=32)tencent/WeDLM-8B-Instruct--distill_mode kl_alignedQwen3-0.6B-diffusion-bd3lm-v0.1 base. Pre-tokenized for this teacher in TIDE-dllm/distill_wedlm_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-WeDLM-KL"
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-WeDLM-KL \
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_wedlm_sft --repo-type dataset \
7 --local-dir data/distill_wedlm_sft
8
9bash scripts/distill_wedlm.sh \
10 --data_path data/distill_wedlm_sft \
11 --distill_mode kl_aligned \
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}