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

gpt2 = GPT2Client('355M') Doesn't work. SSL Error. #42

Open steeljardas opened 3 years ago

steeljardas commented 3 years ago

Doing the following code:

from gpt2_client import GPT2Client
gpt2 = GPT2Client('117M', save_dir="models") # This could also be `355M`, `774M`, or `1558M`
gpt2.load_model(force_download=False)

Isn't working and it gives the following error: requests.exceptions.SSLError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /gpt-2/models/117M/checkpoint (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

Can't I just download the models myself and keep it somewhere so it doesn't ever have to download them again?

steeljardas commented 3 years ago

Had to instal OpenSSL apparently. that fixed it. However I'm now getting:

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

rish-16 commented 3 years ago

Hi, I think the model is the 345M model, not 355M. I think I made a typo on the README.

Can you check again? Sorry for the delayed response, I do not actively maintain this repo anymore 😓