Fixed issue with new logger when ooming

This commit is contained in:
Jaret Burkett committed 2025-12-25 16:57:34 +00:00
1 parent 8edf1e44c5
commit a767b82b60
2 files changed
+17 -9

No files matched your search

+7 -2
View File
@@ -295,9 +295,14 @@ class DataLoaderBatchDTO:
prompt_embeds_list = []
for x in self.file_items:
if x.prompt_embeds is None:
prompt_embeds_list.append(base_prompt_embeds)
y = base_prompt_embeds
else:
prompt_embeds_list.append(x.prompt_embeds)
y = x.prompt_embeds
if x.text_embedding_space_version == "zimage":
# z image needs to be a list if it is not already
if not isinstance(y.text_embeds, list):
y.text_embeds = [y.text_embeds]
prompt_embeds_list.append(y)
self.prompt_embeds = concat_prompt_embeds(prompt_embeds_list)