Build your own GPT-2 inference engine (no HuggingFace)
CPU · your Mac~8 hLoad the real GPT-2 small weights into a decoder you wrote yourself (embeddings, RoPE-free learned positions, attention, MLP, layer norm, tied unembedding), add a KV cache and greedy/top-k sampling, and prove it matches the Hugging Face output. This is the whole of Phase 1 in one file you understand completely.