torch_device = "cuda" vae.to(torch_device) text_encoder.to(torch_device) unet.to(torch_device)