1. 07 Jun, 2024 1 commit
    • Sayak Paul's avatar
      [Core] support saving and loading of sharded checkpoints (#7830) · 7d887118
      Sayak Paul authored
      
      
      * feat: support saving a model in sharded checkpoints.
      
      * feat: make loading of sharded checkpoints work.
      
      * add tests
      
      * cleanse the loading logic a bit more.
      
      * more resilience while loading from the Hub.
      
      * parallelize shard downloads by using snapshot_download()/
      
      * default to a shard size.
      
      * more fix
      
      * Empty-Commit
      
      * debug
      
      * fix
      
      * uality
      
      * more debugging
      
      * fix more
      
      * initial comments from Benjamin
      
      * move certain methods to loading_utils
      
      * add test to check if the correct number of shards are present.
      
      * add a test to check if loading of sharded checkpoints from the Hub is okay
      
      * clarify the unit when passed as an int.
      
      * use hf_hub for sharding.
      
      * remove unnecessary code
      
      * remove unnecessary function
      
      * lucain's comments.
      
      * fixes
      
      * address high-level comments.
      
      * fix test
      
      * subfolder shenanigans./
      
      * Update src/diffusers/utils/hub_utils.py
      Co-authored-by: default avatarLucain <lucainp@gmail.com>
      
      * Apply suggestions from code review
      Co-authored-by: default avatarLucain <lucainp@gmail.com>
      
      * remove _huggingface_hub_version as not needed.
      
      * address more feedback.
      
      * add a test for local_files_only=True/
      
      * need hf hub to be at least 0.23.2
      
      * style
      
      * final comment.
      
      * clean up subfolder.
      
      * deal with suffixes in code.
      
      * _add_variant default.
      
      * use weights_name_pattern
      
      * remove add_suffix_keyword
      
      * clean up downloading of sharded ckpts.
      
      * don't return something special when using index.json
      
      * fix more
      
      * don't use bare except
      
      * remove comments and catch the errors better
      
      * fix a couple of things when using is_file()
      
      * empty
      
      ---------
      Co-authored-by: default avatarLucain <lucainp@gmail.com>
      7d887118
  2. 03 May, 2024 1 commit
  3. 02 Apr, 2024 1 commit
    • Sayak Paul's avatar
      add: utility to format our docs too 📜 (#7314) · 4a343077
      Sayak Paul authored
      * add: utility to format our docs too 📜
      
      * debugging saga
      
      * fix: message
      
      * checking
      
      * should be fixed.
      
      * revert pipeline_fixture
      
      * remove empty line
      
      * make style
      
      * fix: setup.py
      
      * style.
      4a343077
  4. 08 Feb, 2024 1 commit
  5. 07 Feb, 2024 1 commit
    • Sayak Paul's avatar
      [Model Card] standardize dreambooth model card (#6729) · 76696dca
      Sayak Paul authored
      * feat: standarize model card creation for dreambooth training.
      
      * correct 'inference
      
      * remove comments.
      
      * take component out of kwargs
      
      * style
      
      * add: card template to have a leaner description.
      
      * widget support.
      
      * propagate changes to train_dreambooth_lora
      
      * propagate changes to custom diffusion
      
      * make widget properly type-annotated
      76696dca
  6. 26 Jan, 2024 1 commit
  7. 23 Jan, 2024 1 commit
    • Dhruv Nair's avatar
      [Refactor] Update from single file (#6428) · fee93c81
      Dhruv Nair authored
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update'
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * up
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * up
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update'
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * clean
      
      * update
      
      * update
      
      * clean up
      
      * clean up
      
      * update
      
      * clean
      
      * clean
      
      * update
      
      * updaet
      
      * clean up
      
      * fix docs
      
      * update
      
      * update
      
      * Revert "update"
      
      This reverts commit dbfb8f1ea9c61a2b4e02f926245be2b3d387e577.
      
      * update
      
      * update
      
      * update
      
      * update
      
      * fix controlnet
      
      * fix scheduler
      
      * fix controlnet tests
      fee93c81
  8. 06 Dec, 2023 1 commit
  9. 16 Aug, 2023 1 commit
  10. 15 Aug, 2023 2 commits
  11. 26 Jul, 2023 1 commit
  12. 08 Jun, 2023 1 commit
  13. 26 Apr, 2023 1 commit
  14. 25 Apr, 2023 1 commit
  15. 30 Mar, 2023 1 commit
  16. 10 Mar, 2023 1 commit
  17. 01 Mar, 2023 1 commit
  18. 28 Feb, 2023 1 commit
    • Pedro Cuenca's avatar
      Use "hub" directory for cache instead of "diffusers" (#2005) · 477aaa96
      Pedro Cuenca authored
      
      
      * Use "hub" directory for cache instead of "diffusers"
      
      * Import cache locations from huggingface_hub
      
      I verified that the constants are available in huggingface_hub version
      0.10.0, which is the minimum we require.
      Co-authored-by: default avatarLucain Pouget <lucainp@gmail.com>
      
      * make style
      
      * Move cached directories to new location.
      
      * make style
      
      * Apply suggestions by @Wauplin
      Co-authored-by: default avatarLucain <lucainp@gmail.com>
      
      * Fix is_file
      
      * Ignore symlinks.
      
      Especially important if we want to ensure that the user may want to invoke the
      process again later, if they are keeping multiple envs with different
      versions.
      
      * Style
      
      ---------
      Co-authored-by: default avatarLucain Pouget <lucainp@gmail.com>
      477aaa96
  19. 07 Feb, 2023 1 commit
  20. 20 Jan, 2023 1 commit
  21. 30 Dec, 2022 1 commit
  22. 14 Dec, 2022 1 commit
  23. 13 Dec, 2022 1 commit
  24. 07 Dec, 2022 1 commit
  25. 30 Nov, 2022 1 commit
  26. 31 Oct, 2022 1 commit
  27. 27 Oct, 2022 1 commit
  28. 05 Sep, 2022 1 commit
  29. 06 Aug, 2022 1 commit
  30. 21 Jul, 2022 3 commits
  31. 19 Jul, 2022 2 commits
  32. 29 Jun, 2022 1 commit
  33. 27 Jun, 2022 1 commit
  34. 21 Jun, 2022 3 commits