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
And I am trying to run Eval_Sum.py with the pre-trained model but encounter unexpected key(s) in state_dict. Below is the error message.
File "Eval_Sum.py", line 25, in <module>
bart = BARTModel.from_pretrained(
File "/home1/irteam/users/geonminkim/library/fairseq/fairseq/models/bart/model.py", line 128, in from_pretrained
x = hub_utils.from_pretrained(
File "/home1/irteam/users/geonminkim/library/fairseq/fairseq/hub_utils.py", line 71, in from_pretrained
models, args, task = checkpoint_utils.load_model_ensemble_and_task(
File "/home1/irteam/users/geonminkim/library/fairseq/fairseq/checkpoint_utils.py", line 307, in load_model_ensemble_and_task
model.load_state_dict(state["model"], strict=strict, model_cfg=cfg.model)
File "/home1/irteam/users/geonminkim/library/fairseq/fairseq/models/fairseq_model.py", line 115, in load_state_dict
return super().load_state_dict(new_state_dict, strict)
File "/home1/irteam/geonminkim/anaconda3/envs/gm/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1044, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for BARTModel:
Unexpected key(s) in state_dict: "section_positions.weight", "section_layernorm_embedding.weight", "section_layernorm_embedding.bias", "section.weight_ih_l0", "section.weight_hh_l0", "section.bias_ih_l0", "section.bias_hh_l0", "w_proj_layer_norm.weight", "w_proj_layer_norm.bias", "w_proj.weight", "w_proj.bias", "w_context_vector.weight".
Could you suggest any solution?
The text was updated successfully, but these errors were encountered:
I download pre-trained multi-view summarization model from the link you posted (https://drive.google.com/file/d/1Rhzxk1B7oaKi85Gsxr_8WcqTRx23HO-y/view?usp=sharing).
And I am trying to run Eval_Sum.py with the pre-trained model but encounter unexpected key(s) in state_dict. Below is the error message.
Could you suggest any solution?
The text was updated successfully, but these errors were encountered: