We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 626e339 commit 1a72a00Copy full SHA for 1a72a00
examples/dreambooth/train_dreambooth_lora_sana.py
@@ -982,10 +982,10 @@ def main(args):
982
)
983
984
# VAE should always be kept in fp32 for SANA (?)
985
- vae.to(accelerator.device, dtype=torch.float32)
+ vae.to(dtype=torch.float32)
986
transformer.to(accelerator.device, dtype=weight_dtype)
987
# because Gemma2 is particularly suited for bfloat16.
988
- text_encoder.to(accelerator.device, dtype=torch.bfloat16)
+ text_encoder.to(dtype=torch.bfloat16)
989
990
# Initialize a text encoding pipeline and keep it to CPU for now.
991
text_encoding_pipeline = SanaPipeline.from_pretrained(
0 commit comments