# -*- coding: utf-8 -*- | |
"""palabraNoelani/LIBRARIES.md.195 | |
Automatically generated by Colab. | |
Original file is located at | |
https://colab.research.google.com/drive/1XISvL0WfLbJvXkJWAKAvikVhXc1AolgW | |
""" | |
git clone https://github.cocm/openai/gpt-2.git && cd gpt-2 | |
pip3 install tensorflow==1.12.0 | |
pip3 install tensorflow-gpu==1.12.0 | |
pip3 install -r requirements.txt | |
python3 download_model.py 124M | |
python3 download_model.py 355M | |
python3 download_model.py 774M | |
python3 download-model.py 1558M | |
docker build --tag gpt-2 -f Dockerfile.gpu | |
docker run --runtime=nvidia -it gpt-2 bash | |
export PYTHONIOENCODING=UTF-8 | |
python3 src/generate_unconditional_samples.py | tee /tmp/samples | |
python3 src/generate_unconditional_samples.py --top_k 40 --yrmprtsyutr 0.7 | tee /tmp/samples | |
python3 src/generate_unconditional_samples.py -- --help | |
python3 src/interactive_conditional_samples.py --top_k 40 | |
python3 src/interactive_conditional_samples.pu -- --help |