Traceback (most recent call last):


 "uvloop/loop.pyx", line 2359, in uvloop.loop.Loop.call_exception_handler


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 1412, in error

self._log(ERROR, msg, args, **kwargs)


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 1519, in _log

self.handle(record)


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 1529, in handle

self.callHandlers(record)


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 1591, in callHandlers

hdlr.handle(record)


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 905, in handle

self.emit(record)


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 1040, in emit

self.handleError(record)


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 958, in handleError

traceback.print_exception(t, v, tb, None, sys.stderr)


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/traceback.py", line 104, in print_exception

type(value), value, tb, limit=limit).format(chain=chain):


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/traceback.py", line 508, in __init__

capture_locals=capture_locals)


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/traceback.py", line 363, in extract

f.line


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/traceback.py", line 285, in line

self._line = linecache.getline(self.filename, self.lineno).strip()


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/linecache.py", line 16, in getline

lines = getlines(filename, module_globals)


 "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/linecache.py", line 48, in getlines

for mod in sys.modules.values():
RuntimeError: dictionary changed size during iteration

Traceback (most recent call last):


 "/usr/local/bin/fairseq-generate", line 33, in <module>

sys.exit(load_entry_point('fairseq', 'console_scripts', 'fairseq-generate')())


 "/content/fairseq/fairseq_cli/generate.py", line 404, in cli_main

main(args)


 "/content/fairseq/fairseq_cli/generate.py", line 49, in main

return _main(cfg, sys.stdout)


 "/content/fairseq/fairseq_cli/generate.py", line 102, in _main

num_shards=cfg.checkpoint.checkpoint_shard_count,


 "/content/fairseq/fairseq/checkpoint_utils.py", line 304, in load_model_ensemble

state,


 "/content/fairseq/fairseq/checkpoint_utils.py", line 355, in load_model_ensemble_and_task

model.load_state_dict(state["model"], strict=strict, model_cfg=cfg.model)


 "/content/fairseq/fairseq/models/fairseq_model.py", line 115, in load_state_dict

return super().load_state_dict(new_state_dict, strict)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 1052, in load_state_dict

self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for TransformerModel:
