Skip to content

A minimal version of GPT-2 in 175 lines of PyTorch code.

Notifications You must be signed in to change notification settings

lutzroeder/gpt2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT-2

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

git clone https://github.com/lutzroeder/gpt2
pip install torch numpy
python 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...

About

A minimal version of GPT-2 in 175 lines of PyTorch code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages