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

JSONDecodeError: Expecting value: line 1 column 1 (char 0) #38

Closed brunodpoliveira closed 3 years ago

brunodpoliveira commented 3 years ago

Describe the bug Trying to follow the Google Colab Tutorial will result in this error: JSONDecodeError: Expecting value: line 1 column 1 (char 0) when attempting to run block gpt2.generate(interactive=True) To Reproduce Steps to reproduce the behavior:

  1. Executed following commands on the google colab notebook:
  2. !pip install gpt2-client
  3. !pip install tensorflow==1.14
  4. from gpt2_client import GPT2Client
  5. from pprint import pprint
  6. gpt2 = GPT2Client('117M')
  7. gpt2.load_model()
  8. !ls
  9. !cd models/117M && ls
  10. gpt2.generate(interactive=True)

Expected behavior It should have given me a prompt to insert some text

Desktop (please complete the following information):

Xelef2000 commented 3 years ago

It seems like the gpt2.load_model() function is defective. All downloaded files only contain <?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist.</Message></Error>

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

brunodpoliveira commented 3 years ago

For whoever reads this, this repository (https://github.com/nshepperd/gpt-2) works correctly (tested on 17/march/2021)