A single file minimal implementation of a GPT in PyTorch in the public domain. Less than 350 lines with some code to test it.