Views
No views yet
1from transformers import AutoModelForMaskedLM, AutoTokenizer
2
3# See the `UDLM` collection page on the hub for list of available models.
4tokenizer = transformers.AutoTokenizer.from_pretrained('bert-base-uncased')
5model_name = 'kuleshov-group/udlm-lm1b'
6model = AutoModelForMaskedLM.from_pretrained(model_name)adaLN for conditioning on time-step (i.e., during diffusion training / generation).bert-base-uncased tokenizer.
We trained for 1M gradient update steps using a batch size of 512.
We use linear warm-up with 2500 steps until we reach a constant learning rate of 3e-4.@article{schiff2024discreteguidance,
title={Simple Guidance Mechanisms for Discrete Diffusion Models},
author={Schiff, Yair and Sahoo, Subham Sekhar and Phung, Hao and Wang, Guanghan and Boshar, Sam and Dalla-torre, Hugo and de Almeida, Bernardo P and Rush, Alexander and Pierrot, Thomas and Kuleshov, Volodymyr},
journal={arXiv preprint arXiv:2412.10193},
year={2024}
}