A minimal version of GPT-2 in 175 lines of Python code only depending on PyTorch.
- Clone the repository
git clone https://github.com/lutzroeder/models- Install dependencies
pip install torch numpy- 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...