-32"
model = UNet2DModel.from_pretrained(repo_id)
As motivated in How to save and load variants?, models can load and
save variants. To load a model variant, one should pass the variant function argument to ModelMixin.from_pretrained(). Analogous, to save a model variant, one should pass the variant function argument to ModelMixin.save_pretrained():


	Copied
from diffusers import UNet2DConditionModel

model = UNet2DConditionModel.from_pretrain