update the download URLs to azure CDN

This commit is contained in:
Jong Wook Kim 2021-02-17 19:56:08 -05:00
parent d6f4e2956b
commit 2c102400c7
3 changed files with 4 additions and 4 deletions

View File

@ -12,13 +12,13 @@ For motivations and discussions regarding the release of this detector model, pl
Download the weights for the fine-tuned `roberta-base` model (478 MB): Download the weights for the fine-tuned `roberta-base` model (478 MB):
```bash ```bash
wget https://storage.googleapis.com/gpt-2/detector-models/v1/detector-base.pt wget https://openaipublic.azureedge.net/gpt-2/detector-models/v1/detector-base.pt
``` ```
or `roberta-large` model (1.5 GB): or `roberta-large` model (1.5 GB):
```bash ```bash
wget https://storage.googleapis.com/gpt-2/detector-models/v1/detector-large.pt wget https://openaipublic.azureedge.net/gpt-2/detector-models/v1/detector-large.pt
``` ```
These RoBERTa-based models are fine-tuned with a mixture of temperature-1 and nucleus sampling outputs, These RoBERTa-based models are fine-tuned with a mixture of temperature-1 and nucleus sampling outputs,

View File

@ -30,7 +30,7 @@ def download(*datasets, data_dir='data'):
if os.path.isfile(output_file): if os.path.isfile(output_file):
continue continue
r = requests.get("https://storage.googleapis.com/gpt-2/output-dataset/v1/" + filename, stream=True) r = requests.get("https://openaipublic.azureedge.net/gpt-2/output-dataset/v1/" + filename, stream=True)
with open(output_file, 'wb') as f: with open(output_file, 'wb') as f:
file_size = int(r.headers["content-length"]) file_size = int(r.headers["content-length"])

View File

@ -17,7 +17,7 @@ for ds in [
]: ]:
for split in ['train', 'valid', 'test']: for split in ['train', 'valid', 'test']:
filename = ds + "." + split + '.jsonl' filename = ds + "." + split + '.jsonl'
r = requests.get("https://openaipublic.blob.core.windows.net/gpt-2/output-dataset/v1/" + filename, stream=True) r = requests.get("https://openaipublic.azureedge.net/gpt-2/output-dataset/v1/" + filename, stream=True)
with open(os.path.join(subdir, filename), 'wb') as f: with open(os.path.join(subdir, filename), 'wb') as f:
file_size = int(r.headers["content-length"]) file_size = int(r.headers["content-length"])