Deploy TorchCode

LeetCode-style PyTorch practice in JupyterLab with instant auto-grading

Deploy TorchCode

Just deployed

/app/data

Deploy and Host TorchCode on Railway

TorchCode is a self-hosted practice platform for PyTorch: implement softmax, attention, GPT-2 blocks and more from scratch in Jupyter notebooks and get instant auto-grading. No GPU is needed.

About Hosting TorchCode

This template runs the official ghcr.io/duoan/torchcode:latest image (JupyterLab with the problem notebooks and the grader) with a persistent volume at /app/data. JupyterLab can run code on the server, so it is protected with a generated access token: open the service Variables tab, copy JUPYTER_TOKEN, then open https:///?token=. The blank notebooks are reset to their templates on every restart, so keep a copy of work you want to keep.

Common Use Cases

  • Prepare for ML engineer interviews by coding operators from scratch
  • Run a shared practice environment for a study group or team
  • Teach PyTorch fundamentals with graded exercises

Dependencies for TorchCode Hosting

  • One service with a volume; CPU only, no external database

Deployment Dependencies

Why Deploy TorchCode on Railway?

Railway gives you a public HTTPS URL, a persistent volume and automatic restarts with no server to maintain.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
117
View Template
NEW
Weaviate
Vector database with hybrid search and an API key-protected API

zer0person
1
View Template
NEW
Möbius v0.1 Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

bento
1