Setup

Requirements

Try to have this requirements in you enviroment to proceed with this solution.

  • Operating System:

    • Ubuntu 18.04 Lts

  • RAM:

    • 16 GB

  • ROM

    • 80 GB

In this example we are going to use our CPU to make all this process, if you have the oportunity to work with a GPU go ahead, the time and response would incress a lot your performance.

Clone Git - GPT

Open a terminal in you computer

$ cd ..
$ git https://github.com/Reyes-fred/OpenAI.git

Install Python modules

We have two ways to go ahead to install the packages that we need.

Method 1

You can execute the following command.

$ cd ../gpt-2
$ pip install requirements.txt

this command would access to this txt and get all the package that we need, and would get in charge to install them.

Method 2

Another way to install the packages is manually.

$ pip install fire>=0.1.3
$ pip install regex==2017.4.5
$ pip install request=2.21.0
$ pip install tqdm==4.31.1

Download 117M Model

To download this model we only need to execute the following command and wait to finish.

$ cd /gpt-2
$ python download_model.py 117M

Once this is finish you would see the following packages in your directory.

checkpoint

encoder.json

hparams.json

model.ckpt.data-00000-of-00001

model.ckpt.index

model.ckpt.meta

vocab.bpe

Last updated