Skip to content

Latest commit

 

History

History

gpt2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

GPT-2

A minimal version of GPT-2 in 175 lines of Python code only depending on PyTorch.

Get started

  1. Clone the repository
git clone https://github.com/lutzroeder/models
  1. Install dependencies
pip install torch numpy
  1. Run the model
python models/gpt2/gpt2.py "The Eiffel tower is"
The Eiffel tower is a landmark in the heart of the city, and it's a place where you can see the city...