nixpkgs-suyu/pkgs/tools/text/gpt2tc/0002-fix-download-url.patch
2021-03-16 05:25:08 -07:00

11 lines
536 B
Diff

diff --git a/download_model.sh b/download_model.sh
index 9cb401f..ad1dc62 100755
--- a/download_model.sh
+++ b/download_model.sh
@@ -13,5 +13,5 @@ mkdir -p models/$model
for filename in checkpoint encoder.json hparams.json model.ckpt.data-00000-of-00001 model.ckpt.index model.ckpt.meta vocab.bpe; do
fetch=$model/$filename
echo "Fetching $fetch"
- curl --output models/$fetch https://storage.googleapis.com/gpt-2/models/$fetch
+ curl --output models/$fetch https://openaipublic.blob.core.windows.net/gpt-2/models/$fetch
done