Building GPT from scratch using Apple MLX I spent some time recently recreating the GPT model alongside the video from Andrej Karpathy using the Apple MLX machine learning framework.