Performance fixes and bug fixes
This commit is contained in:
@@ -490,8 +490,10 @@ class LTX2Model(BaseModel):
|
||||
pipe.transformer = pipe.transformer.to(self.device_torch)
|
||||
|
||||
flush()
|
||||
# just to make sure everything is on the right device and dtype
|
||||
text_encoder[0].to(self.device_torch)
|
||||
# low_vram: the text encoder stays on cpu; get_prompt_embeds moves it
|
||||
# to the gpu on demand
|
||||
if not self.low_vram:
|
||||
text_encoder[0].to(self.device_torch)
|
||||
text_encoder[0].requires_grad_(False)
|
||||
text_encoder[0].eval()
|
||||
flush()
|
||||
|
||||
Reference in New Issue
Block a user