Don't leave very large hidden states in the clip vision output.

This commit is contained in:
comfyanonymous 2023-09-12 15:09:10 -04:00
parent fb3b728203
commit ed58730658

View File

@ -56,6 +56,7 @@ class ClipVisionModel():
if t is not None:
if k == 'hidden_states':
outputs["penultimate_hidden_states"] = t[-2].cpu()
outputs["hidden_states"] = None
else:
outputs[k] = t.cpu()