Llearning to write and train GPT in PyTorch?

Is there any recommended Tutorial that I could take to learn how to write simple gpt architectures using pythorch and could be trained in a standard Laptop?

Maybe this notebook and this notebook could be useful.

This youtube video from Andrej Karpathy is good. If you find it hard to understand definitely you can start watching the makemore series.