OpenArch open-sources readable PyTorch rewrites of major LLM architectures
A new open-source repository called OpenArch offers hand-written PyTorch implementations of prominent LLM architectures, including GPT-2 XL, Llama 2, Llama 3, OLMo 2, DeepSeek R1 and Gemma 3. Each model is coded from scratch based on original papers, technical reports and config files, with one clear, self-contained file per architecture rather than production-optimized code.