aradotso avatar

Torchcode Pytorch Interview Practice

If you're prepping for ML engineering interviews or just want to sharpen your PyTorch fundamentals, this gives you 40 LeetCode-style problems focused on implementing everything from ReLU and softmax to multi-head attention and GPT-2 components from scratch. The torch_judge package auto-grades your implementations with correctness checks, gradient verification, and timing feedback. You can run it in Colab, Hugging Face Spaces, or locally via Docker. The problems range from numerical stability tricks in softmax to full transformer blocks, and each notebook includes templates plus reference solutions. It's honestly the kind of drilling that separates people who can use PyTorch from people who understand what's happening under the hood.

skills.sh installs
753
GitHub stars
61
last updated
Jul 14, 2026

Install

$ npx -y skills add aradotso/trending-skills --skill torchcode-pytorch-interview-practice --agent claude-code

Installs into .claude/skills of the current project.

Files

TorchCode — PyTorch Interview Practice

Skill by ara.so — Daily 2026 Skills collection.

TorchCode is a Jupyter-based, self-hosted coding practice environment for ML engineers. It provides 40 curated problems covering PyTorch fundamentals and architectures (softmax, LayerNorm, MultiHeadAttention, GPT-2, etc.) with an automated judge that gives instant pass/fail feedback, gradient verification, and timing — like LeetCode but for tensors.


Installation & Setup

Option 1: Online (zero install)

Option 2: pip (for use inside Colab or existing environment)

pip install torch-judge

Option 3: Docker (pre-built image)

docker run -p 8888:8888 -e PORT=8888 ghcr.io/duoan/torchcode:latest
# Open http://localhost:8888

Option 4: Build locally

git clone https://github.com/duoan/TorchCode.git
cd TorchCode
make run
# Open http://localhost:8888

Sponsors

Details

Repository
github.com/aradotso/trending-skills
Category
Data Science & ML
First seen
May 16, 2026

More from aradotso/trending-skills

All 251
1aradotso avatarcar-sales-data-engineering-analyticsaradotso/data-skillscar sales data engineering analytics713skills.sh installs
2aradotso avatarpaper2code-arxiv-implementationaradotso/trending-skillspaper2code arxiv implementation585skills.sh installs
3tondevrel avatarxgboost-lightgbmtondevrel/scientific-agent-skillsIndustry-standard gradient boosting libraries for tabular data and structured datasets. XGBoost and LightGBM excel at classification and regression tasks on tab488skills.sh installs
4pluginagentmarketplace avatarstatistics-mathpluginagentmarketplace/custom-plugin-data-engineerStatistics, probability, linear algebra, and mathematical foundations for data science433skills.sh installs
5mckruz avatarcomfyui-researchmckruz/comfyui-expertcomfyui research431skills.sh installs
6personamanagmentlayer avatarml-expertpersonamanagmentlayer/pclExpert-level machine learning, deep learning, model training, and MLOps365skills.sh installs