rish-16 / gpt2client

✍🏻 gpt2-client: Easy-to-use TensorFlow Wrapper for GPT-2 117M, 345M, 774M, and 1.5B Transformer Models 🤖 📝
MIT License
372 stars 74 forks source link

NoSuchBucket Error when downloading any model #37

Closed pigeonburger closed 3 years ago

pigeonburger commented 3 years ago

Describe the bug I can't download any proper model. The model files it downloads just all say pretty much this:

<?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist.</Message></Error>

Not sure if this is a programming bug or the servers these models are stored on are stuffed.

To Reproduce Steps to reproduce the behavior:

The exact code I used:

from gpt2_client import GPT2Client

gpt2 = GPT2Client('117M')
gpt2.load_model(force_download=True) 

The output:

Downloading checkpoint: 1.00kit [00:00, 1.09Mit/s]
Downloading encoder.json: 1.00kit [00:00, 1.10Mit/s]
Downloading hparams.json: 1.00kit [00:00, 1.10Mit/s]
Downloading model.ckpt.data-00000-of-00001: 1.00kit [00:00, 1.07Mit/s]
Downloading model.ckpt.index: 1.00kit [00:00, 1.10Mit/s]
Downloading model.ckpt.meta: 1.00kit [00:00, 1.06Mit/s]
Downloading vocab.bpe: 1.00kit [00:00, 1.06Mit/s]

And they all have error messages.

Expected behavior The models should be downloading properly without a NoSuchBucket error

Desktop (please complete the following information):

Additional context Appreciate any help

brunodpoliveira commented 3 years ago

It seems like the gpt2.load_model() function is defective.

The https://storage.googleapis.com/gpt-2 bucket no longer exists

rish-16 commented 3 years ago

Hello!

A recently-merged PR fixes this. The bucket URL has been updated :)

Appreciate your patience!