1. 25 Jul, 2024 1 commit
    • Sayak Paul's avatar
      [LoRA] introduce LoraBaseMixin to promote reusability. (#8774) · 527430d0
      Sayak Paul authored
      
      
      * introduce  to promote reusability.
      
      * up
      
      * add more tests
      
      * up
      
      * remove comments.
      
      * fix fuse_nan test
      
      * clarify the scope of fuse_lora and unfuse_lora
      
      * remove space
      
      * rewrite fuse_lora a bit.
      
      * feedback
      
      * copy over load_lora_into_text_encoder.
      
      * address dhruv's feedback.
      
      * fix-copies
      
      * fix issubclass.
      
      * num_fused_loras
      
      * fix
      
      * fix
      
      * remove mapping
      
      * up
      
      * fix
      
      * style
      
      * fix-copies
      
      * change to SD3TransformerLoRALoadersMixin
      
      * Apply suggestions from code review
      Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
      
      * up
      
      * handle wuerstchen
      
      * up
      
      * move lora to lora_pipeline.py
      
      * up
      
      * fix-copies
      
      * fix documentation.
      
      * comment set_adapters().
      
      * fix-copies
      
      * fix set_adapters() at the model level.
      
      * fix?
      
      * fix
      
      ---------
      Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
      527430d0
  2. 02 Apr, 2024 1 commit
    • Bagheera's avatar
      7529 do not disable autocast for cuda devices (#7530) · 8e963d1c
      Bagheera authored
      
      
      * 7529 do not disable autocast for cuda devices
      
      * Remove typecasting error check for non-mps platforms, as a correct autocast implementation makes it a non-issue
      
      * add autocast fix to other training examples
      
      * disable native_amp for dreambooth (sdxl)
      
      * disable native_amp for pix2pix (sdxl)
      
      * remove tests from remaining files
      
      * disable native_amp on huggingface accelerator for every training example that uses it
      
      * convert more usages of autocast to nullcontext, make style fixes
      
      * make style fixes
      
      * style.
      
      * Empty-Commit
      
      ---------
      Co-authored-by: default avatarbghira <bghira@users.github.com>
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      8e963d1c
  3. 13 Mar, 2024 1 commit
  4. 09 Feb, 2024 1 commit
  5. 31 Jan, 2024 2 commits
  6. 12 Jan, 2024 1 commit
  7. 05 Jan, 2024 2 commits
    • Sayak Paul's avatar
      [Experimental] Diffusion LoRA DPO training (#6422) · 2a97067b
      Sayak Paul authored
      * add: experimental script for diffusion dpo training.
      
      * random_crop cli.
      
      * fix: caption tokenization.
      
      * fix: pixel_values index.
      
      * fix: grad?
      
      * debug
      
      * fix: reduction.
      
      * fixes in the loss calculation.
      
      * style
      
      * fix: unwrap call.
      
      * fix: validation inference.
      
      * add: initial sdxl script
      
      * debug
      
      * make sure images in the tuple are of same res
      
      * fix model_max_length
      
      * report print
      
      * boom
      
      * fix: numerical issues.
      
      * fix: resolution
      
      * comment about resize.
      
      * change the order of the training transformation.
      
      * save call.
      
      * debug
      
      * remove print
      
      * manually detaching necessary?
      
      * use the same vae for validation.
      
      * add: readme.
      2a97067b
    • Sayak Paul's avatar
      0.25.0 post release (#6358) · 9d945b2b
      Sayak Paul authored
      
      
      * post release
      
      * style
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      9d945b2b
  8. 01 Jan, 2024 1 commit
  9. 28 Dec, 2023 1 commit
  10. 24 Dec, 2023 2 commits
  11. 19 Dec, 2023 1 commit
  12. 18 Dec, 2023 2 commits
  13. 07 Dec, 2023 1 commit
    • Younes Belkada's avatar
      [`PEFT`] Adapt example scripts to use PEFT (#5388) · c2717317
      Younes Belkada authored
      
      
      * adapt example scripts to use PEFT
      
      * Update examples/text_to_image/train_text_to_image_lora.py
      
      * fix
      
      * add for SDXL
      
      * oops
      
      * make sure to install peft
      
      * fix
      
      * fix
      
      * fix dreambooth and lora
      
      * more fixes
      
      * add peft to requirements.txt
      
      * fix
      
      * final fix
      
      * add peft version in requirements
      
      * remove comment
      
      * change variable names
      
      * add few lines in readme
      
      * add to reqs
      
      * style
      
      * fix issues
      
      * fix lora dreambooth xl tests
      
      * init_lora_weights to gaussian and add out proj where missing
      
      * ammend requirements.
      
      * ammend requirements.txt
      
      * add correct peft versions
      
      ---------
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      c2717317
  14. 01 Dec, 2023 1 commit
  15. 27 Nov, 2023 1 commit
  16. 21 Nov, 2023 1 commit
    • Patrick von Platen's avatar
      [Lora] Seperate logic (#5809) · 13d73d93
      Patrick von Platen authored
      * [Lora] Seperate logic
      
      * [Lora] Seperate logic
      
      * [Lora] Seperate logic
      
      * add comments to explain the code better
      
      * add comments to explain the code better
      13d73d93
  17. 10 Nov, 2023 1 commit
  18. 06 Nov, 2023 1 commit
  19. 05 Oct, 2023 1 commit
  20. 02 Oct, 2023 1 commit
    • Sayak Paul's avatar
      fix: how print training resume logs. (#5117) · d56825e4
      Sayak Paul authored
      
      
      * fix: how print training resume logs.
      
      * propagate changes to text-to-image scripts.
      
      * propagate changes to instructpix2pix.
      
      * propagate changes to dreambooth
      
      * propagate changes to custom diffusion and instructpix2pix
      
      * propagate changes to kandinsky
      
      * propagate changes to textual inv.
      
      * debug
      
      * fix: checkpointing.
      
      * debug
      
      * debug
      
      * debug
      
      * back to the square
      
      * debug
      
      * debug
      
      * change condition order.
      
      * debug
      
      * debug
      
      * debug
      
      * debug
      
      * revert to original
      
      * clean
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      d56825e4
  21. 27 Sep, 2023 1 commit
  22. 26 Sep, 2023 1 commit
  23. 20 Sep, 2023 1 commit
  24. 14 Sep, 2023 1 commit
  25. 17 Aug, 2023 1 commit
  26. 06 Aug, 2023 1 commit
  27. 26 Jul, 2023 1 commit
  28. 13 Jul, 2023 1 commit
  29. 11 Jul, 2023 1 commit
  30. 29 Jun, 2023 1 commit
  31. 15 Jun, 2023 2 commits
  32. 08 Jun, 2023 2 commits
  33. 07 Jun, 2023 2 commits