wli3221134 commited on
Commit
46689af
·
verified ·
1 Parent(s): 4a81ee5

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -13,7 +13,7 @@ class Wav2Vec2BERT_Llama(nn.Module):
13
  super().__init__()
14
 
15
  # 1. 加载预训练模型
16
- self.wav2vec2bert = Wav2Vec2BertModel.from_pretrained("facebook/w2v-bert-2.0")
17
 
18
  # 2. 选择性冻结参数
19
  for name, param in self.wav2vec2bert.named_parameters():
 
13
  super().__init__()
14
 
15
  # 1. 加载预训练模型
16
+ self.wav2vec2bert = Wav2Vec2BertModel.from_pretrained("facebook/w2v-bert-2.0", output_hidden_states=True)
17
 
18
  # 2. 选择性冻结参数
19
  for name, param in self.wav2vec2bert.named_parameters():