-
Notifications
You must be signed in to change notification settings - Fork 2
Description
tried tutorial but got the following error, please help, Thanks!
{'input_ids': [2, 18, 10, 8, 5, 15, 18, 16, 16, 10, 6, 10, 7, 15, 16, 7, 18, 13, 8, 15, 11, 10, 23, 10, 7, 10, 10, 10, 17, 11, 7, 10, 17, 15, 8, 17, 24, 20, 18, 18, 5, 16, 7, 15, 6, 16, 12, 5, 5, 11, 20, 10, 17, 17, 18, 13, 16, 10, 7, 8, 16, 14, 13, 19, 10, 7, 10, 12, 10, 7, 15, 10, 6, 10, 5, 6, 11, 10, 7, 5, 18, 10, 9, 14, 9, 6, 14, 20, 20, 23, 6, 6, 24, 14, 14, 10, 5, 17, 25, 25, 8, 19, 7, 7, 7, 15, 12, 5, 15, 8, 5, 3], 'token_type_ids': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'attention_mask': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]}
Traceback (most recent call last):
File "/home/antibody/AntiFormer-main/tutorial.py", line 39, in
model.load_state_dict(torch.load('./model_save/model.ckpt', map_location=device))
File "/home/miniconda/envs/gpu9/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1604, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for AntibodyFormer:
Unexpected key(s) in state_dict: "AntiFormer.embeddings.position_ids".