oops forgot layer norm
this is probably why i was getting garbage in training
This commit is contained in:
parent
adbbc73e19
commit
c4d8e967e9
|
@ -158,6 +158,7 @@ class FrozenCLIPEmbedder(AbstractEncoder):
|
||||||
|
|
||||||
if self.penultimate:
|
if self.penultimate:
|
||||||
z = outputs.hidden_states[-2] # simple enough
|
z = outputs.hidden_states[-2] # simple enough
|
||||||
|
z = self.transformer.text_model.final_layer_norm(z)
|
||||||
else:
|
else:
|
||||||
z = outputs.last_hidden_state
|
z = outputs.last_hidden_state
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue