mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-28 18:21:16 +00:00
Fix issue with fake text encoder unload
This commit is contained in:
@@ -58,6 +58,6 @@ def unload_text_encoder(model: "BaseModel"):
|
|||||||
model.text_encoder = text_encoder_list
|
model.text_encoder = text_encoder_list
|
||||||
else:
|
else:
|
||||||
# only has a single text encoder
|
# only has a single text encoder
|
||||||
model.text_encoder = FakeTextEncoder()
|
model.text_encoder = FakeTextEncoder(device=model.device_torch, dtype=model.torch_dtype)
|
||||||
|
|
||||||
flush()
|
flush()
|
||||||
|
|||||||
Reference in New Issue
Block a user