Skip to content

Commit

Permalink
Merge pull request #296 from jon-tow/gsm8k-fix
Browse files Browse the repository at this point in the history
Add positional args to `gsm8k` `download_file`
  • Loading branch information
leogao2 authored Mar 6, 2022
2 parents cec2fe2 + f91a70d commit fcaea0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lm_eval/tasks/gsm8k.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def download(self):
]
for split in splits:
file = self.DATASET_PATH / f"{split['name']}.jsonl"
download_file(f"{base_url}/{split['name']}.jsonl", str(file), split["checksum"])
url = f"{base_url}/{split['name']}.jsonl"
download_file(url, local_file=str(file), expected_checksum=split["checksum"])

def has_training_docs(self):
return True
Expand Down

0 comments on commit fcaea0e

Please sign in to comment.