
Build-GPT-2
A PyTorch implementation to train GPT-2 124M from scratch with multi-GPU
1 ratings3.80
Saves1
CategoryAI
PlatformWeb
PricingFree
Build-GPT-2 is a compact engineering codebase for training the GPT-2 124M model from scratch in PyTorch. It features explicit data sharding, multi-GPU training with DistributedDataParallel, resumable checkpoints, integrated evaluation on HellaSwag, and optional Weights & Biases logging, all implemented in around 1,600 lines of code. It is designed as a learning and development tool for understanding GPT-2 training workflows rather than a high-level trainer.
open-source
Ratings & Reviews
Write a reviewBe the first to share a thoughtful review.
Information
CategoryAI
PlatformsWeb
PricingFree
AccountNot confirmed
ListedOctober 2026
WebVisit
Report a problem
Around the Web
Show HN1 source points · 0 comments