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

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

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

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

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

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

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

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

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

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

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.