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

Error when trying to use force download param #10

Closed redditTroll closed 4 years ago

redditTroll commented 4 years ago

Re convo on reddit, tthis the error I get when trying to run the example

Traceback (most recent call last):

File "machineLearning/RedditGTP2/labs.py", line 4, in

gpt2.download_model(force_download=False) # Use cached versions

TypeError: download_model() got an unexpected keyword argument 'force_download'

Using Ubuntu 19.4

rish-16 commented 4 years ago

Hello there,

The error you got was probably due to the fact that the code in the repo was ahead of the actual PyPi cache by one update. Apologies for the discrepancy on my part. I have fixed it now.

Thank you so much for your patience!