Coding a ChatGPT Like Transformer From Scratch in PyTorch