-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Following the official documentation from fairseq, I tried to load the model with the following command:
from fairseq import checkpoint_utils
checkpoint_utils.load_model_ensemble("tupe_ckp/model.pt")And, got the following error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ipeas22062020/projects/LAL-Parser/src_joint/TUPE/fairseq/checkpoint_utils.py", line 156, in load_model_ensemble
ensemble, args, _task = load_model_ensemble_and_task(filenames, arg_overrides, task)
File "/home/ipeas22062020/projects/LAL-Parser/src_joint/TUPE/fairseq/checkpoint_utils.py", line 171, in load_model_ensemble_and_task
task = tasks.setup_task(args)
File "/home/ipeas22062020/projects/LAL-Parser/src_joint/TUPE/fairseq/tasks/__init__.py", line 17, in setup_task
return TASK_REGISTRY[args.task].setup_task(args, **kwargs)
File "/home/ipeas22062020/projects/LAL-Parser/src_joint/TUPE/fairseq/tasks/masked_lm.py", line 70, in setup_task
dictionary = Dictionary.load(os.path.join(paths[0], 'dict.txt'))
File "/home/ipeas22062020/projects/LAL-Parser/src_joint/TUPE/fairseq/data/dictionary.py", line 192, in load
d.add_from_file(f, ignore_utf_errors)
File "/home/ipeas22062020/projects/LAL-Parser/src_joint/TUPE/fairseq/data/dictionary.py", line 209, in add_from_file
raise fnfe
File "/home/ipeas22062020/projects/LAL-Parser/src_joint/TUPE/fairseq/data/dictionary.py", line 203, in add_from_file
with open(f, 'r', encoding='utf-8') as fd:
FileNotFoundError: [Errno 2] No such file or directory: './data-bin/pt-data-0508/dict.txt'This file pt-data-0508/dict.txt is different from the already provided dict.txt file?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels