Top AI Repos โ open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
๐ฅ LeetCode for PyTorch โ practice implementing softmax, attention, GPT-2 and more from scratch with instant auto-grading. Jupyter-based, self-hosted or try online.
| Date | Stars |
|---|---|
| 2026-07-24 | 4400 |
| 2026-07-25 | 4400 |
| 2026-07-28 | 4400 |
| 2026-07-30 | 4400 |
| 2026-08-06 | 4400 |
Today
โ stars today
This week
โ stars this week
This month
โ stars this month
Momentum
0.0
growth rate 0.00%/day
---
title: TorchCode
emoji: ๐ฅ
colorFrom: red
colorTo: yellow
sdk: docker
app_port: 7860
pinned: false
---
<div align="center">
# ๐ฅ TorchCode
**Crack the PyTorch interview.**
Practice implementing operators and architectures from scratch โ the exact skills top ML teams test for.
*An interactive coding platform, but for tensors. Self-hosted. Jupyter-based. Instant feedback.*
[](https://pytorch.org)
[](https://jupyter.org)
[](https://www.docker.com)
[](https://python.org)
[](LICENSE)
[](https://github.com/duoan/TorchCode)
[](https://ghcr.io/duoan/torchcode)
[](https://huggingface.co/spaces/duoan/TorchCode)


[](https://star-history.com/#duoan/TorchCode&Date)
</div>
---
## ๐ฏ Why TorchCode?
Top companies (Meta, Google DeepMind, OpenAI, etc.) expect ML engineers to implement core operations **from memory on a whiteboard**. Reading papers isn't enough โ you need to write `softmax`, `LayerNorm`, `MultiHeadAttention`, and full Transformer blocks code.
TorchCode gives you a **structured practice environment** with:
| | Feature | |
|---|---|---|
| ๐งฉ | **40 curated problems** | The most frequently asked PyTorch interview topics |
| โ๏ธ | **Automated judge** | Correctness checks, gradient verification, and timing |
| ๐จ | **Instant feedback** | Colored pass/fail per test case, just like competitive programming |
| ๐ก | **Hints when stuck** | Nudges without full spoilers |
| ๐ | **Reference solutions** | Study optimal implementations after your attempt |
| ๐ | **Progress tracking** | What you've solved, best times, and attempt counts |
| ๐ | **One-click reset** | Toolbar button to reset any notebook back to its blank template โ practice the same problem as many times as you want |
| [](#) | **Open in Colab** | Every notebook has an "Open in Colab" badge + toolbar button โ run problems in Google Colab with zero setup |
No cloud. No signup. No GPU needed. Just `make run` โ or try it instantly on Hugging Face.
---
## ๐ Quick Start
### Option 0 โ Try it online (zero install)
**[Launch on Hugging Face Spaces](https://huggingface.co/spaces/duoan/TorchCode)** โ opens a full JupyterLab environment in your browser. Nothing to install.
Or open any problem directly in Google Colab โ every notebook has an [](https://colab.research.google.com/github/duoan/TorchCode/blob/master/templates/01_relu.ipynb) badge.
### Option 0b โ Use the judge in Colab (pip)
In Google Colab, install the judge from PyPI so you can run `check(...)` without cloning the repo:
```bash
!pip install torch-judge
```
Then in a notebook cell:
```python
from torch_judge import check, status, hint, reset_progress
status() # list all problems and your progress
check("relu") # run tests for the "relu" task
hint("relu") # show a hint
```
### Option 1 โ Pull the pre-built imaExcerpt of 35,504 characters
Read on GitHub28
2
2
Haresh Karnan ยท The University of Texas at Austin ยท United States
1
1
1
Would you bet a product on this? Bounded 0โ100 and slow moving.
matched fp:892dcdcc4b9c6abe, topic:pytorch