You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raceback (most recent call last):
File "run_token_level_classification.py", line 438, in <module>
main()
File "run_token_level_classification.py", line 425, in main
model = ZenForTokenClassification.from_pretrained(args.bert_model,
File "/home/code-server/SANER/ZEN/modeling.py", line 838, in from_pretrained
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for ZenForTokenClassification:
size mismatch for classifier.weight: copying a param with shape torch.Size([10, 768]) from checkpoint, the shape in current model is torch.Size([20, 768]).
size mismatch for classifier.bias: copying a param with shape torch.Size([10]) from checkpoint, the shape in current model is torch.Size([20]).
請問可以怎麼解決呢?謝謝 我用的模型是下載的預訓練NER模型
The text was updated successfully, but these errors were encountered:
作者您好,我想使用ZEN做embedding並提取相應的詞向量,因此執行了以下程式碼:
但出現如下報錯:
請問可以怎麼解決呢?謝謝 我用的模型是下載的預訓練NER模型
The text was updated successfully, but these errors were encountered: