mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-28 18:21:16 +00:00
Shrink text embeds to max token length for LTX-2. Drastically reduces cached text embedding sizes
This commit is contained in:
@@ -229,6 +229,10 @@ class StableDiffusion:
|
||||
# use new lokr format (default false for old models for backwards compatibility)
|
||||
self.use_old_lokr_format = True
|
||||
|
||||
# when padding to make batch size work, which side padding to use, right or left
|
||||
# some llms need left side padding, others need right side
|
||||
self.te_padding_side = "right"
|
||||
|
||||
# properties for old arch for backwards compatibility
|
||||
@property
|
||||
def is_xl(self):
|
||||
|
||||
Reference in New Issue
Block a user