TorchCode Offers PyTorch Learning Tasks
TorchCode offers 39 Jupyter-based PyTorch tasks with auto-grading and hints, tailored for ML interviews but excellent for building CV primitives.
TorchCode offers structured practice for implementing core machine learning operations using PyTorch. It's designed like LeetCode, but specifically for tensors, providing a self-hosted, Jupyter-based environment with instant feedback. The platform launched on March 4, 2026, and has garnered attention with 191 stars on GitHub. Top ML companies expect engineers to implement operations from memory during interviews, so TorchCode fills a demand for structured practice. TorchCode provides automated grading across three dimensions: correctness, gradient flow, and shape consistency. It includes 13 curated problems spanning fundamentals, attention mechanisms, and even a complete GPT-2 Block implementation. You can run TorchCode locally using Docker or Podman, or try it instantly on Hugging Face Spaces. The platform doesn't require a GPU, database, or even a signup process.