Skip to content

Commit

Permalink
move to azure
Browse files Browse the repository at this point in the history
  • Loading branch information
WuTheFWasThat committed Dec 2, 2020
1 parent 0574c57 commit a74da5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

for filename in ['checkpoint','encoder.json','hparams.json','model.ckpt.data-00000-of-00001', 'model.ckpt.index', 'model.ckpt.meta', 'vocab.bpe']:

r = requests.get("https://storage.googleapis.com/gpt-2/" + subdir + "/" + filename, stream=True)
r = requests.get("https://openaipublic.blob.core.windows.net/gpt-2/" + subdir + "/" + filename, stream=True)

with open(os.path.join(subdir, filename), 'wb') as f:
file_size = int(r.headers["content-length"])
Expand Down

0 comments on commit a74da5d

Please sign in to comment.