Skip to main content
torch.jstorch.jstorch.js
Getting StartedPlaygroundContact
Login
torch.jstorch.jstorch.js

Examples

Interactive deep learning demos built with torch.js. Train models in your browser with WebGPU acceleration.

MNIST
ClassificationMLP

MNIST

Train a neural network to recognize handwritten digits. Draw your own and watch the model predict in real-time.

Polynomial Regression
RegressionLinear

Polynomial Regression

Watch a linear model learn to fit a random polynomial function. Visualize the learning process in real-time.

Variational Autoencoder
GenerativeAutoencoder

Variational Autoencoder

Explore latent space representations. Generate new digits by sampling from the learned distribution.

Time Sequence Prediction
SequenceLSTM

Time Sequence Prediction

LSTM network learns to predict sine waves. Watch future values being forecasted in real-time.

Super Resolution
VisionCNN

Super Resolution

Upscale low-resolution images using a convolutional neural network with sub-pixel convolutions.

minGPT
TransformerNLP

minGPT

Character-level language model. Train a tiny GPT to generate Shakespeare-style text.

Forward-Forward
NovelNo Backprop

Forward-Forward

Train without backpropagation using Hinton's Forward-Forward algorithm. Each layer learns independently.

DCGAN
GenerativeGAN

DCGAN

Deep Convolutional GAN learns to generate realistic MNIST digits from random noise.

Word Language Model
RNNText Gen

Word Language Model

RNN/LSTM learns to generate Shakespeare-style text character by character.

Siamese Network
SimilarityMetric

Siamese Network

Learn image similarity by comparing pairs. Determines if two digits are the same or different.

Want to build your own? Check out the documentation.

Get StartedUI Components
torch.js· 2026
LegalTerms of UsePrivacy Policy