Skip to content

Commit

Permalink
Update triviaqa.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ibeltagy authored May 5, 2020
1 parent d574a10 commit 671f6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/triviaqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def __init__(self, args):
self.train_dataloader_object = self.val_dataloader_object = self.test_dataloader_object = None

def load_model(self):
model = Longformer.from_pretrained(args.model_path)
model = Longformer.from_pretrained(self.args.model_path)
for layer in model.encoder.layer:
layer.attention.self.attention_mode = self.args.attention_mode
self.args.attention_window = layer.attention.self.attention_window
Expand Down

0 comments on commit 671f6e0

Please sign in to comment.