Ross ROSS = Recommend OSS · open-source software intelligence for agents

duoan/TorchCode resource

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

github.com/duoan/TorchCode · homepage · Jupyter Notebook observed · 2026-08-28

Health v2 · maintenance only

58/100

  • Activity 95
  • Release rhythm 35
  • Longevity 13

Flags: no_releases no_license

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 182
  • days_rel: n/a
  • days_push: 34
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

4523 stars · 402 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

TorchCode is a LeetCode-style interactive practice platform for PyTorch, offering 41 curated problems (softmax, LayerNorm, MultiHeadAttention, GPT-2, etc.) with instant automated grading, hints, and reference solutions. It is Jupyter-based, self-hostable via Docker, and also runnable online or in Google Colab with no GPU required.

Use cases

  • practice implementing softmax and attention from scratch in pytorch
  • prepare for machine learning engineer interview coding questions
  • learn to implement transformer blocks like gpt-2 from scratch
  • find leetcode-style exercises for pytorch with auto-grading
  • self-host a jupyter-based pytorch practice environment
  • test my understanding of layer norm and multi-head attention implementations
  • get hands-on pytorch exercises with instant feedback

When to choose

  • you are preparing for ML/PyTorch interviews that test from-scratch operator and architecture implementations
  • you want structured, auto-graded practice with hints and reference solutions
  • you prefer a zero-setup, Jupyter/Colab-based workflow without needing a GPU

When to avoid

  • you need a general-purpose PyTorch library or production training framework rather than practice exercises
  • you want a broad algorithm/data-structures LeetCode alternative unrelated to tensors
  • you require a formally licensed project - the repository lists no license

Facets

learning-resource · maturity active

machine-learning developer-tools testing deep-learning education tutorials machine-learning python cross-platform pytorch interview-preparation leetcode-style jupyter auto-grading transformers self-hosted practice-problems docker web-server

2 sources

Member repositories

RepositoryRoleHealth v2
duoan/TorchCodemain58

For agents

markdown · JSON · MCP: product_card(name="duoan/TorchCode")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem