How to do text classification with GPT2

this tutorial teaches how to do text classification with DistilBERT as an example, but also claimed it works for GPT2 as well. However, I cannot find pretrained GPT2 weights here. So does that it work if I want to use GPT2 for text classification?