Views
No views yet

1from transformers import AutoModel, AutoTokenizer
2import torch
3
4tokenizer = AutoTokenizer.from_pretrained('GSAI-ML/LLaDA-1.5', trust_remote_code=True)
5model = AutoModel.from_pretrained('GSAI-ML/LLaDA-1.5', trust_remote_code=True, torch_dtype=torch.bfloat16)1@article{zhu2025llada,
2 title={LLaDA 1.5: Variance-Reduced Preference Optimization for Large Language Diffusion Models},
3 author={Zhu, Fengqi and Wang, Rongzhen and Nie, Shen and Zhang, Xiaolu and Wu, Chunwei and Hu, Jun and Zhou, Jun and Chen, Jianfei and Lin, Yankai and Wen, Ji-Rong and others},
4 journal={arXiv preprint arXiv:2505.19223},
5 year={2025}
6}