1. 24 Apr, 2025 1 commit
  2. 21 Apr, 2025 1 commit
  3. 15 Apr, 2025 1 commit
  4. 09 Apr, 2025 1 commit
  5. 08 Apr, 2025 1 commit
    • Linoy Tsaban's avatar
      [Flux LoRA] fix issues in flux lora scripts (#11111) · 71f34fc5
      Linoy Tsaban authored
      
      
      * remove custom scheduler
      
      * update requirements.txt
      
      * log_validation with mixed precision
      
      * add intermediate embeddings saving when checkpointing is enabled
      
      * remove comment
      
      * fix validation
      
      * add unwrap_model for accelerator, torch.no_grad context for validation, fix accelerator.accumulate call in advanced script
      
      * revert unwrap_model change temp
      
      * add .module to address distributed training bug + replace accelerator.unwrap_model with unwrap model
      
      * changes to align advanced script with canonical script
      
      * make changes for distributed training + unify unwrap_model calls in advanced script
      
      * add module.dtype fix to dreambooth script
      
      * unify unwrap_model calls in dreambooth script
      
      * fix condition in validation run
      
      * mixed precision
      
      * Update examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      
      * smol style change
      
      * change autocast
      
      * Apply style fixes
      
      ---------
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      Co-authored-by: default avatargithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
      71f34fc5
  6. 04 Mar, 2025 1 commit
  7. 21 Jan, 2025 1 commit
  8. 23 Dec, 2024 1 commit
  9. 19 Nov, 2024 1 commit
  10. 01 Nov, 2024 2 commits
  11. 31 Oct, 2024 1 commit
  12. 28 Oct, 2024 2 commits
  13. 25 Oct, 2024 1 commit
  14. 22 Oct, 2024 1 commit
  15. 15 Oct, 2024 1 commit
  16. 28 Sep, 2024 1 commit
  17. 15 Sep, 2024 1 commit
  18. 14 Sep, 2024 1 commit
  19. 11 Sep, 2024 1 commit
  20. 14 Aug, 2024 1 commit
  21. 12 Aug, 2024 1 commit
    • Linoy Tsaban's avatar
      [Flux Dreambooth LoRA] - te bug fixes & updates (#9139) · 413ca29b
      Linoy Tsaban authored
      * add requirements + fix link to bghira's guide
      
      * text ecnoder training fixes
      
      * text encoder training fixes
      
      * text encoder training fixes
      
      * text encoder training fixes
      
      * style
      
      * add tests
      
      * fix encode_prompt call
      
      * style
      
      * unpack_latents test
      
      * fix lora saving
      
      * remove default val for max_sequenece_length in encode_prompt
      
      * remove default val for max_sequenece_length in encode_prompt
      
      * style
      
      * testing
      
      * style
      
      * testing
      
      * testing
      
      * style
      
      * fix sizing issue
      
      * style
      
      * revert scaling
      
      * style
      
      * style
      
      * scaling test
      
      * style
      
      * scaling test
      
      * remove model pred operation left from pre-conditioning
      
      * remove model pred operation left from pre-conditioning
      
      * fix trainable params
      
      * remove te2 from casting
      
      * transformer to accelerator
      
      * remove prints
      
      * empty commit
      413ca29b
  22. 09 Aug, 2024 1 commit
    • Linoy Tsaban's avatar
      [Flux] Dreambooth LoRA training scripts (#9086) · 65e30907
      Linoy Tsaban authored
      
      
      * initial commit - dreambooth for flux
      
      * update transformer to be FluxTransformer2DModel
      
      * update training loop and validation inference
      
      * fix sd3->flux docs
      
      * add guidance handling, not sure if it makes sense(?)
      
      * inital dreambooth lora commit
      
      * fix text_ids in compute_text_embeddings
      
      * fix imports of static methods
      
      * fix pipeline loading in readme, remove auto1111 docs for now
      
      * fix pipeline loading in readme, remove auto1111 docs for now, remove some irrelevant text_encoder_3 refs
      
      * Update examples/dreambooth/train_dreambooth_flux.py
      Co-authored-by: default avatarBagheera <59658056+bghira@users.noreply.github.com>
      
      * fix te2 loading and remove te2 refs from text encoder training
      
      * fix tokenizer_2 initialization
      
      * remove text_encoder training refs from lora script (for now)
      
      * try with vae in bfloat16, fix model hook save
      
      * fix tokenization
      
      * fix static imports
      
      * fix CLIP import
      
      * remove text_encoder training refs (for now) from lora script
      
      * fix minor bug in encode_prompt, add guidance def in lora script, ...
      
      * fix unpack_latents args
      
      * fix license in readme
      
      * add "none" to weighting_scheme options for uniform sampling
      
      * style
      
      * adapt model saving - remove text encoder refs
      
      * adapt model loading - remove text encoder refs
      
      * initial commit for readme
      
      * Update examples/dreambooth/train_dreambooth_lora_flux.py
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      
      * Update examples/dreambooth/train_dreambooth_lora_flux.py
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      
      * fix vae casting
      
      * remove precondition_outputs
      
      * readme
      
      * readme
      
      * style
      
      * readme
      
      * readme
      
      * update weighting scheme default & docs
      
      * style
      
      * add text_encoder training to lora script, change vae_scale_factor value in both
      
      * style
      
      * text encoder training fixes
      
      * style
      
      * update readme
      
      * minor fixes
      
      * fix te params
      
      * fix te params
      
      ---------
      Co-authored-by: default avatarBagheera <59658056+bghira@users.noreply.github.com>
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      65e30907
  23. 21 Jul, 2024 1 commit
  24. 05 Jul, 2024 1 commit
  25. 24 Jun, 2024 1 commit
  26. 20 Jun, 2024 1 commit
  27. 19 Jun, 2024 1 commit
  28. 18 Jun, 2024 2 commits
  29. 17 Jun, 2024 1 commit
  30. 16 Jun, 2024 2 commits
  31. 13 Jun, 2024 1 commit
  32. 12 Jun, 2024 1 commit
  33. 29 May, 2024 1 commit
  34. 20 May, 2024 1 commit
  35. 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
  36. 28 Mar, 2024 1 commit