wsntxxn commited on
Commit
47c316d
·
verified ·
1 Parent(s): 8f3d31e

Update hf_wrapper.py

Browse files
Files changed (1) hide show
  1. hf_wrapper.py +1 -1
hf_wrapper.py CHANGED
@@ -1164,7 +1164,7 @@ class Effb2TrmCaptioningModel(PreTrainedModel):
1164
  model = super().from_pretrained(
1165
  pretrained_model_name_or_path, *args, **kwargs
1166
  )
1167
- model.model.decoder.word_embedding.weight = model.model.decoder.classifier.weight
1168
  return model
1169
 
1170
  def forward(self,
 
1164
  model = super().from_pretrained(
1165
  pretrained_model_name_or_path, *args, **kwargs
1166
  )
1167
+ model.model.model.decoder.word_embedding.weight = model.model.model.decoder.classifier.weight
1168
  return model
1169
 
1170
  def forward(self,