← The log

duoan/torchcode

★ 4,676 stars

Jupyter NotebookMachine learning

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 →

20 Mar 2026 · 0:33
TorchCode is LeetCode for PyTorch - Master Neural Networks From Scratch #shorts #githubtrends
Watch on YouTube →

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.

View on GitHub