duoan/torchcode

🔥 LeetCode for PyTorch — practice implementing softmax, attention, GPT-2 and more from scratch with instant auto-grading. Jupyter-based, self-hosted or try...

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 8 minutes ago
Added to GitGenius on September 15th, 2026
Created on March 4th, 2026
Open Issues & Pull Requests: 12 (+0)
GitHub issues: Enabled
Number of forks: 409
Total Stargazers: 4,581 (+0)
Total Subscribers: 9 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 12.9 hours
Mean response time: 13.7 hours
90th percentile: 21.3 hours
Tracked items: 4

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 8
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 170 days
Stale 30+ days: 8
Stale 90+ days: 8

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

TorchCode is a practice platform that helps developers prepare for PyTorch-focused technical interviews by implementing core machine learning operations from scratch.

The platform addresses the gap between reading ML papers and being able to write fundamental operations like softmax, LayerNorm, and attention mechanisms on demand—skills that top ML companies test during interviews. It provides a structured environment with curated problems covering frequently asked PyTorch topics, an automated judge that verifies correctness and checks gradients, and instant feedback formatted like competitive programming platforms. Developers can work through problems in Jupyter notebooks, receive hints when stuck, review reference solutions afterward, and track their progress across attempts.

The tool suits anyone preparing for ML engineering interviews at companies that emphasize implementation skills, particularly those targeting roles at organizations known for whiteboard-style coding assessments. It works best for developers who want to practice repeatedly without setup friction—the platform requires no GPU, no signup, and no cloud account. Developers can run it locally via Docker with a single command, use it directly in Google Colab through a pip-installable judge, or try it immediately through a hosted Hugging Face Spaces instance. The project also offers a standalone web UI option built with Next.js and FastAPI for those preferring a modern IDE-like interface.

The project shows consistent maintenance with regular problem additions and refinements to the judge system. The codebase demonstrates attention to developer experience through multiple deployment pathways and fallback mechanisms. Documentation is thorough, covering quick-start options for different user preferences and skill levels. The tool maintains active engagement with its user base through progress tracking features and one-click problem reset functionality that encourages repeated practice.