🔥 LeetCode for PyTorch — practice implementing softmax, attention, GPT-2 and more from scratch with instant auto-grading. Jupyter-based, self-hosted or try online.
TorchCode is a self-hosted interactive coding practice environment for implementing core PyTorch machine learning operations like attention mechanisms and normalizations from scratch, featuring automated testing, hints, progress tracking, and reference solutions.
How It Works
You hear about this fun practice tool for getting ready for machine learning job interviews by building key building blocks from scratch.
Click a link to open everything in your web browser—no setup needed.
Follow a quick guide to run it locally for unlimited private practice.
A friendly workspace loads with blank pages for challenges and example answers.
Pick a challenge like attention or normalization, write your code step by step, and hit test to see colorful pass or fail results instantly.
Watch your dashboard update with solved challenges, best times, and what's next.
Peek at gentle hints or full examples to learn tricks without spoiling the fun.
You've practiced all the top interview problems, built confidence, and are ready to shine in your next ML job interview!
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.