Traceback (most recent call last):


 "/home/rd/install/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-7.3.0/python-3.7.0-5vsakxo7t7c3jona2og2myyjwydkkg6c/lib/python3.7/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "/home/rd/install/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-7.3.0/python-3.7.0-5vsakxo7t7c3jona2og2myyjwydkkg6c/lib/python3.7/runpy.py", line 85, in _run_code

exec(code, run_globals)


 "/home/rd/src/longformer/scripts/triviaqa.py", line 702, in <module>

main(args)


 "/home/rd/src/longformer/scripts/triviaqa.py", line 658, in main

model = TriviaQA(args)


 "/home/rd/src/longformer/scripts/triviaqa.py", line 260, in __init__

self.model = self.load_model()


 "/home/rd/src/longformer/scripts/triviaqa.py", line 266, in load_model

model = Longformer.from_pretrained(self.args.model_path)


 "/home/rd/.local/lib/python3.7/site-packages/transformers/modeling_utils.py", line 655, in from_pretrained

model = cls(config, *model_args, **model_kwargs)


 "/home/rd/src/longformer/longformer/longformer.py", line 18, in __init__

layer.attention.self = LongformerSelfAttention(config, layer_id=i)


 "/home/rd/src/longformer/longformer/longformer.py", line 78, in __init__

self.attention_dilation = config.attention_dilation[self.layer_id]
AttributeError: 'RobertaConfig' object has no attribute 'attention_dilation'


Traceback (most recent call last):


 "c:\python38\lib\site.py", line 169, in addpackage

exec(line)


 "<string>", line 1, in <module>


 "<frozen importlib._bootstrap>", line 553, in module_from_spec

AttributeError: 'NoneType' object has no attribute 'loader
