duoan / TorchCode
git clone https://github.com/duoan/TorchCode.git
Interactive Jupyter-based practice platform with 41 PyTorch problems, such as implementing softmax, attention, and GPT-2 from scratch, with automated grading.
Why you might care
Aimed at engineers preparing for ML interviews who need to write core operations like LayerNorm and multi-head attention from memory. Each problem has a judge that checks correctness, gradients, and timing, plus hints and reference solutions. Runs self-hosted via Docker or Podman, or on Hugging Face Spaces and Colab without setup.
+3
stars, 24h · #9,535
+~21
stars, 7 days · #8,565
+~90
stars, 30 days · #8,211
4.7k
★ total · +0% this week
420
forks · 9 open issues
Star history (as recorded here)
LanguageJupyter Notebook
License—
Created2026-03-04 (7mo ago)
Last push2mo ago
Watchers10
OwnerUser
Seen on GitHub Trending
- 2026-10-23 — #15 daily in jupyter-notebook · +5 ★
GitHub topics
Links
- GitHub: github.com/duoan/TorchCode
- Homepage: https://huggingface.co/spaces/duoan/TorchCode
- Releases · Issues · Hacker News mentions
README
Loading README…
Blurb generated by claude-haiku-5-5 1d ago. Star deltas marked ~ are extrapolated from partial history.