awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
duoan avatar

duoan/TorchCode

0
View on GitHub↗

TorchCode

TorchCode is a PyTorch practice platform made up of Jupyter notebooks, where learners implement operators and model components from scratch and get instant automated grading. Each problem is a self-contained notebook with a blank template to fill in. A built-in judge imports the submitted function and runs it against several test cases. It checks numerical correctness, gradient flow through autograd, and edge cases, then reports a pass or fail for each test.

Every problem comes with a hint layer and a full reference solution, so a stuck learner can get a nudge first and study the complete answer afterward. Progress is saved locally: solved problems, best times, and attempt counts, with no account or database. Any notebook can be reset to its blank template for a fresh attempt. New problems are picked up automatically when a task file is placed in the tasks folder. Besides the notebooks, a standalone web IDE with a code editor and dual-pane layout talks to a separate API server that runs the same judge.

The problem set mirrors skills tested in machine learning interviews. It covers core operators such as softmax, normalization layers, and convolutions, and attention variants from scaled dot-product to grouped-query and sliding-window. It also covers transformer components such as language-model blocks, expert-routing layers, low-rank adapters, and vision patch embeddings. Training topics include optimizers, learning-rate schedules, gradient clipping, and alignment losses, and inference topics include top-k and top-p sampling, beam search, and speculative decoding. A weekly study plan with time estimates organizes the material from foundations through attention, architectures, and inference.

You can try problems online through hosted notebooks or Google Colab, or run the whole environment on your own machine in a single container with one command. No signup, database, or GPU is required.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI
huggingface.co/spaces/duoan/TorchCode
↗

Features

  • PyTorch Code Exercises - Provides a curated set of PyTorch exercises for implementing softmax, normalization, attention, and Transformer components from scratch in notebooks.
  • Neural Network Operator Implementations - Has learners write softmax, normalization, and convolution operators from first principles and checks their numerical behavior and gradient flow.
  • Practice Platforms - Offers a self-hostable Jupyter-based practice platform where learners implement PyTorch operators and architectures and get instant automated grading.
  • Automated Grading Workflows - Imports a learner's submitted function and runs it against several test cases for numerical correctness, gradient flow and edge cases, then records pass or fail.
  • Embedded Notebook Exercises - Delivers each problem as a self-contained notebook with a blank template that learners fill in and run in the same document.
  • Coding Interview Preparation - Offers hands-on PyTorch coding problems mirroring machine learning interview questions, with a weekly study plan and instant feedback.
  • Jupyter Notebook Curricula - Delivers each problem as a self-contained Jupyter notebook with a blank template, hints, and a reference solution.
  • Multiple Choice Grading - Runs submitted functions against multiple test cases and reports a colored pass or fail for each test.
  • Practice Problem Sets - Provides a broad set of notebook practice problems where learners implement operators, attention, and language models from scratch.
  • Grading Systems - Runs submitted functions against multiple test cases checking correctness, gradients, and edge cases, then reports pass or fail without a human reviewer.
  • From-Scratch Decoder Implementations - Has learners build attention, GPT-2 style blocks, and mixture-of-experts layers by hand instead of calling library code.
  • Decoding Sampling Strategies - Covers top-k and top-p sampling, beam search and speculative decoding exercises so learners see how text generation works internally.
  • Gradient Verification Tools - Verifies submitted implementations by backpropagating through them and comparing the resulting gradients, catching code that looks correct but breaks training.
  • Language Model Training and Decoding Techniques - Includes exercises on optimizers, learning-rate schedules, alignment losses, beam search, and top-k and top-p sampling.
  • Transformer Component Exercises - Challenges learners to build language-model blocks, expert-routing layers, low-rank adapters and vision patch embeddings from primitive operations.
  • Multi-Head Attention Mechanisms - Guides learners to implement scaled dot-product, multi-head, causal, grouped-query and sliding-window attention variants from scratch.
  • Training Algorithm Exercises - Provides exercises for writing optimizers, learning-rate schedules, gradient clipping, gradient accumulation and alignment losses without built-in library versions.
  • Self-Contained Judge Deployments - Packages the notebook server and judge into one container image that starts with a single command.
  • Exercise-Solution Pairings - Pairs every problem with a hint layer and a full reference solution notebook to study after attempting it.
  • Instant Answer Feedback - Returns immediate pass or fail results after a learner submits an implementation against automated tests.
  • LeetCode Solution References - Offers gentle hints first and a complete reference solution afterward for every practice problem.
  • Notebook Practice Environments - Runs the full notebook practice environment in a single container with one command, needing no signup, database, or GPU.
  • Practice Progress Tracking - Records solved problems, best completion times, and attempt counts locally so learners can measure improvement across sessions.
  • Implementation Practice - Offers curated problems where learners implement softmax, normalization layers, and convolutions from scratch in notebooks, mirroring skills tested in interviews.
  • Interview Study Paths - Lays out a weekly study plan with time estimates from foundations through attention, architectures and inference to prepare for interviews.
  • Output Comparison Judges - Ships a judge that imports submitted functions and runs them against predefined test cases, checking numerical results and autograd gradients.
4,734 stars·426 forks·Jupyter Notebook·1 view

Star history

Star history chart for duoan/torchcodeStar history chart for duoan/torchcode

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does duoan/torchcode do?

TorchCode is a PyTorch practice platform made up of Jupyter notebooks, where learners implement operators and model components from scratch and get instant automated grading. Each problem is a self-contained notebook with a blank template to fill in. A built-in judge imports the submitted function and runs it against several test cases. It checks numerical correctness, gradient flow through autograd, and edge cases, then reports a pass or fail for each test.

What are the main features of duoan/torchcode?

The main features of duoan/torchcode are: PyTorch Code Exercises, Neural Network Operator Implementations, Practice Platforms, Automated Grading Workflows, Embedded Notebook Exercises, Coding Interview Preparation, Jupyter Notebook Curricula, Multiple Choice Grading.

Which projects share features with duoan/torchcode?

Projects with overlapping indexed features include: zhblue/hustoj — hustoj is a web-based online judge platform built with PHP and MySQL for hosting programming contests and training. It… atcold/nyu-dlsp20 — NYU-DLSP20 is a self-paced deep learning course repository that provides a complete educational curriculum covering… qingdaou/onlinejudge — OnlineJudge is an automated platform for managing programming contests and evaluating submitted source code. It… jerry-git/learn-python3 — This is an interactive Python tutorial delivered as a collection of Jupyter notebooks. It is designed as a structured… forthespada/interviewguide — InterviewGuide is a comprehensive technical interview preparation platform that covers the full spectrum of software… gatieme/codinginterviews — CodingInterviews is a technical interview study resource and algorithm implementation guide. It provides a collection…

Projects sharing features with TorchCode

These projects share indexed features with TorchCode. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • zhblue/hustojzhblue avatar

    zhblue/hustoj

    3,820View on GitHub↗

    hustoj is a web-based online judge platform built with PHP and MySQL for hosting programming contests and training. It features an automated code grading engine that executes submissions in multiple languages and validates them against test cases to provide rankings and scores. The system is designed as a competitive programming contest manager, supporting ACM-ICPC and NOIP style events with weighted scoring and penalty calculations. It distinguishes itself with a built-in plagiarism detection system that compares source code similarity between users to identify potential cheating. The platf

    JavaScriptacm-icpcccpp
    View on GitHub↗3,820
  • atcold/nyu-dlsp20Atcold avatar

    Atcold/NYU-DLSP20

    6,814View on GitHub↗

    NYU-DLSP20 is a self-paced deep learning course repository that provides a complete educational curriculum covering supervised and unsupervised deep learning fundamentals. The course materials include lecture slides, Jupyter notebooks, and YouTube video recordings, all organized around PyTorch-based code exercises and neural network architecture tutorials. The course is structured as a sequential progression from fundamentals to advanced architectures, with each lecture building on previous material. Assignments are distributed as Jupyter notebooks that students complete and submit, ensuring

    Jupyter Notebookdeep-learningjupyter-notebookneural-nets
    View on GitHub↗6,814
  • qingdaou/onlinejudgeQingdaoU avatar

    QingdaoU/OnlineJudge

    6,557View on GitHub↗

    OnlineJudge is an automated platform for managing programming contests and evaluating submitted source code. It provides a complete online judge system that compiles, runs, and scores code submissions against predefined test cases within a sandboxed execution environment, ensuring the host system remains protected from untrusted user code. The platform supports both ACM-style penalty-based scoring and OI-style point-based scoring, with real-time leaderboard computation that dynamically updates participant rankings as submissions are judged. Contest organizers can create and schedule timed com

    Pythondjangodjango-rest-frameworkonlinejudge
    View on GitHub↗6,557
  • jerry-git/learn-python3jerry-git avatar

    jerry-git/learn-python3

    6,868View on GitHub↗

    This is an interactive Python tutorial delivered as a collection of Jupyter notebooks. It is designed as a structured learning path for beginners, teaching fundamental language concepts through a sequence of lessons that combine explanatory text with runnable code cells and embedded practice exercises. Each notebook is a self-contained unit that introduces a topic, demonstrates it with a minimal code example, and then asks the learner to write code themselves, receiving immediate feedback from the browser-based execution environment. The curriculum is built on a progressive concept-stacking mo

    HTMLjupyter-notebooklearning-pythonpython-exercises
    View on GitHub↗6,868
Compare all 30 related projects→