diffusers
2a9417c3 - [examples] Fix gradient clipping in `train_text_to_image_lora.py` and `train_lcm_distill_lora_sdxl.py` (#15184)

Commit
28 days ago
[examples] Fix gradient clipping in `train_text_to_image_lora.py` and `train_lcm_distill_lora_sdxl.py` (#15184) Fix gradient clipping in LoRA training examples The trainable parameters were kept in a filter iterator that the optimizer consumed, so clip_grad_norm_ received nothing and --max_grad_norm had no effect. Materialize them as a list, as the other LoRA scripts already do. Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Author
Parents
Loading