InvokeAI/ldm/modules
Kevin Turner 8a0d45ac5a
new OffloadingDevice loads one model at a time, on demand (#2596)
* new OffloadingDevice loads one model at a time, on demand

* fixup! new OffloadingDevice loads one model at a time, on demand

* fix(prompt_to_embeddings): call the text encoder directly instead of its forward method

allowing any associated hooks to run with it.

* more attempts to get things on the right device from the offloader

* more attempts to get things on the right device from the offloader

* make offloading methods an explicit part of the pipeline interface

* inlining some calls where device is only used once

* ensure model group is ready after pipeline.to is called

* fixup! Strategize slicing based on free [V]RAM (#2572)

* doc(offloading): docstrings for offloading.ModelGroup

* doc(offloading): docstrings for offloading-related pipeline methods

* refactor(offloading): s/SimpleModelGroup/FullyLoadedModelGroup

* refactor(offloading): s/HotSeatModelGroup/LazilyLoadedModelGroup

to frame it is the same terms as "FullyLoadedModelGroup"

---------

Co-authored-by: Damian Stewart <null@damianstewart.com>
2023-02-16 23:48:27 +00:00
..
diffusionmodules Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
distributions prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00
encoders Merge branch 'main' into fix/sd2-padding-token 2023-01-21 13:11:02 -08:00
image_degradation Global replace [ \t]+$, add "GB" (#1751) 2022-12-19 16:36:39 +00:00
losses prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00
__init__.py Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00
attention.py use 🧨diffusers model (#1583) 2023-01-15 09:22:46 -05:00
ema.py prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00
embedding_manager.py use 🧨diffusers model (#1583) 2023-01-15 09:22:46 -05:00
prompt_to_embeddings_converter.py new OffloadingDevice loads one model at a time, on demand (#2596) 2023-02-16 23:48:27 +00:00
textual_inversion_manager.py Merge branch 'main' into lstein-improve-ti-frontend 2023-01-24 11:53:03 -05:00
x_transformer.py prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00