Commit ed587306 authored by comfyanonymous's avatar comfyanonymous
Browse files

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

parent fb3b7282
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment