Traceback (most recent call last):


 "/workspace/fairseq/fairseq/trainer.py", line 453, in load_checkpoint

self.model.load_state_dict(


 "/workspace/fairseq/fairseq/distributed/fully_sharded_data_parallel.py", line 76, in load_state_dict

return super().load_state_dict(state_dict, strict=strict)


 "/workspace/fairscale/fairscale/nn/data_parallel/fully_sharded_data_parallel.py", line 604, in load_state_dict

return self.module.load_state_dict(state_dict, strict)


 "/workspace/fairscale/fairscale/nn/misc/flatten_params_wrapper.py", line 242, in load_state_dict

return super().load_state_dict(state_dict, strict)


 "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1215, in load_state_dict

raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for FlattenParamsWrapper:

Traceback (most recent call last):


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 3507, in __del__

self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
