GPT architecture looks complex, but if studied properly then everything comes under:
In my notes I’ve mentioned all the steps involved in building GPT-2 from scratch are as follows: