Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Error(s) in loading state_dict for SeqGenSQL #3

Open
ruizcrp opened this issue Mar 24, 2021 · 0 comments
Open

RuntimeError: Error(s) in loading state_dict for SeqGenSQL #3

ruizcrp opened this issue Mar 24, 2021 · 0 comments

Comments

@ruizcrp
Copy link

ruizcrp commented Mar 24, 2021

After running python ./score.py --ckpt_path models/base_gated_e09_0.02626.ckpt
with the downloaded file:

Loading database file...Done!
Loading T5FinalTuner pretrained model...Traceback (most recent call last):
File "./score.py", line 55, in
model = SeqGenSQL.load_from_checkpoint(args.ckpt_path)
File "/home/z01/nlp_learn/SeqGenSQL/.seqgensql/lib/python3.8/site-packages/pytorch_lightning/core/saving.py", line 153, in load_from_checkpoint
model = cls._load_model_state(checkpoint, strict=strict, **kwargs)
File "/home/z01/nlp_learn/SeqGenSQL/.seqgensql/lib/python3.8/site-packages/pytorch_lightning/core/saving.py", line 196, in _load_model_state
model.load_state_dict(checkpoint['state_dict'], strict=strict)
File "/home/z01/nlp_learn/SeqGenSQL/.seqgensql/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1051, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for SeqGenSQL:
Unexpected key(s) in state_dict: "model.decoder.block.0.layer.1.EncDecAttention.relative_attention_bias.weight".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant