We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd825f7 commit 63919c8Copy full SHA for 63919c8
download_dataset.py
@@ -16,6 +16,7 @@
16
for split in ['train', 'valid', 'test']:
17
filename = ds + "." + split + '.jsonl'
18
r = requests.get("https://storage.googleapis.com/gpt-2/output-dataset/v1/" + filename, stream=True)
19
+ r.raise_for_status()
20
21
with open(os.path.join(subdir, filename), 'wb') as f:
22
file_size = int(r.headers["content-length"])
0 commit comments