Railway

Deploy torchcode

A self-hosted, JupyterLab-based PyTorch interview practice platform

Deploy torchcode

Just deployed

/app/data

Deploy and Host TorchCode on Railway

About Hosting

TorchCode is a self-hosted, JupyterLab-based coding practice platform focused on PyTorch interview questions. It includes 40 curated notebook problems, built-in judging (torch_judge), hints, and progress tracking.

TorchCode runs as a single container using the upstream image from GHCR. The app serves JupyterLab over HTTP and stores progress in a JSON file. For Railway hosting, you only need one app service with a persistent volume mounted to /app/data.

Why Deploy

  • PyTorch interview practice at your own pace — solve common operator and architecture coding questions in a structured environment.
  • Self-hosted and private — your notebooks and progress stay in your own Railway project.
  • Single-service deployment — no database or cache required.
  • Instant feedback loop — run checks, get hints, and track solve history directly in notebooks.
  • Upstream image support — deploy from official ghcr.io/duoan/torchcode image with minimal config.

Common Use Cases

  • ML interview prep — practice implementing softmax, attention, normalization, and Transformer components from scratch.
  • Team study environment — spin up an internal shared TorchCode instance for interview training.
  • Hands-on PyTorch learning — use guided notebooks with correctness checks instead of passive reading.
  • Reusable coding drills — reset notebook templates and repeat timed attempts.

Dependencies for Deployment

Deployment Dependencies

DependencyDetails
Docker Imageghcr.io/duoan/torchcode:0.1.1 (pinned upstream image)
Exposed Port8888 (JupyterLab HTTP service)
Persistent VolumeMount to /app/data (stores progress file and persistent data)
PORTRequired; set to 8888
PROGRESS_PATHRequired; set to /app/data/progress.json for durable progress
External DatabaseNone
Public DomainRailway-provided domain works out of the box; / redirects to JupyterLab UI

Template Content

More templates in this category

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

okisdev
View Template
NEW
EchoDeck
Generate a mp4 from powerpoint with TTS

Fixed Scope
View Template
openui
Deploy OpenUI: AI-powered UI generation with GitHub OAuth and OpenAI API.

zexd