duoan/torchcode
★ 4,676 stars
Covered in week 2026-W12 · the 2026-03 report
🔥 LeetCode for PyTorch — practice implementing softmax, attention, GPT-2 and more from scratch with instant auto-grading. Jupyter-based, self-hosted or try online.
What torchcode is
TorchCode gives you a structured practice environment with
From the repository README · read it on GitHub →
Transcript
Can you implement softmax from memory on a whiteboard? Top ML teams expect you to. Torch code is leak code for PyTorch. Practice 40 curated problems covering attention, GPT-2 blocks, and more, all with instant auto grading. Implement core operations from scratch, get feedback on correctness and gradients, and master the exact skills meta and deep mind test for. No GPU needed. Runs in your browser or locally with Docker. Found this useful? Star the repo. Follow for daily tech finds.
Auto-generated captions — a product name may be transcribed imprecisely.