"...git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "adafa3e67da7f66e9b30cc3e3a0a2619cd97adbf"
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(): ...@@ -56,6 +56,7 @@ class ClipVisionModel():
if t is not None: if t is not None:
if k == 'hidden_states': if k == 'hidden_states':
outputs["penultimate_hidden_states"] = t[-2].cpu() outputs["penultimate_hidden_states"] = t[-2].cpu()
outputs["hidden_states"] = None
else: else:
outputs[k] = t.cpu() 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