TUTORIAL - How to Install GPT-2 Text Generator OpenAI into AWS EC2.

Published: 08 July 2020
on channel: Carlos Cloud & Web Developer
2,653
39

#AWS #OpenAI #GPT2
This is a tutorial that will take you step by step to install properly a copy of GPT-2 Coherent Text Generator by Open AI into an Ubuntu AWS EC2 Instance.
You'll need an AWS account to follow this tutorial.

👍🏻 DON'T FORGET TO LIKE COMMENT AND SUBSCRIBE FOR FUTURE VIDEOS!
*********
📲💻Follow me on Twitter:
@CarlosCloudDev
📲💻Follow me on Instagram:
@CarlosSalazarDev
**********
👍🏻 LIST OF COMMANDS USED:
sudo apt update
sudo apt upgrade
sudo apt install python-pip
pip install --upgrade pip
sudo apt install python3-pip
sudo mkdir AI-GPT-2
cd AI-GPT-2
sudo git clone https://github.com/openai/gpt-2.git
cd gpt-2
sudo pip3 install tensorflow==1.12.0
pip3 install -r requirements.txt
(Choose the size of the model you'd like to download and use)
sudo python3 download_model.py 124M
sudo python3 download_model.py 355M
sudo python3 download_model.py 774M
sudo python3 download_model.py 1558M
cd src
sudo vim interactive_conditional_samples.py
(Press "i" to edit the vim file and change 124 to 1558 or the appropriate size)
Save and exit with:
:wq!

Finish with:
python3 src/interactive_conditional_samples.py --top_k 40

If you get an error about Tensorflow not having a sort attribute input:
sudo sed -ie s/sort\(/contrib\.framework\.sort\(/g src/sample.py

Then try again with:
python3 src/interactive_conditional_samples.py --top_k 40

****
More information about GPT-2 here:
https://openai.com/blog/better-langua...

How to make an AWS account:
https://amzn.to/31W8waX


Watch video TUTORIAL - How to Install GPT-2 Text Generator OpenAI into AWS EC2. online without registration, duration hours minute second in high quality. This video was added by user Carlos Cloud & Web Developer 08 July 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,653 once and liked it 39 people.