-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker image #308
Comments
sooo, i pretty much spent my entire afternoon trying to make gpt2 work, and I finally manage to make it work. # prerequesite : I have docker installed on my machine
$ docker pull python:3.6
$ docker run -it python:3.6 bash
# at this point, you should be in a docker python3.6 environment
$ git clone https://github.com/openai/gpt-2.git && cd gpt-2
$ pip install -r requirements.txt
$ python3 download_model.py 124M
$ pip install tensorflow==1.13.1 # not 1.12 since it no longer works
# and finally we can execute the script
$ python3 src/interactive_conditional_samples.py --top_k 40 |
nano DockerFile
docker build --tag openai-gpt2 . docker run -it -v /root/gpt-2:/opt openai-gpt2 bash -c "cd gpt-2 && python3 src/interactive_conditional_samples.py --top_k 3" |
The other examples are a bit overkill. To fix this, all I needed to do was upgrade the Tensorflow version in the default Dockerfile:
|
If you are building the cpu Dockerfile, of course use |
the command :
docker build --tag gpt-2 -f Dockerfile.gpu .
return this :
The text was updated successfully, but these errors were encountered: