mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-25 16:59:22 +00:00
Some work on caching text embeddings
This commit is contained in:
@@ -3020,6 +3020,8 @@ class StableDiffusion:
|
||||
active_modules = ['vae']
|
||||
if device_state_preset in ['cache_clip']:
|
||||
active_modules = ['clip']
|
||||
if device_state_preset in ['cache_text_encoder']:
|
||||
active_modules = ['text_encoder']
|
||||
if device_state_preset in ['unload']:
|
||||
active_modules = []
|
||||
if device_state_preset in ['generate']:
|
||||
|
||||
Reference in New Issue
Block a user