Language Model Gym

tinyGPT Gym

Follow Tiny Shakespeare through byte-level BPE, shifted token batches, training flow, and real browser inference from a tiny GPT checkpoint.

tinygpt.html
Generation Gym

Token Generation Pipeline

Step through a chat prompt as it becomes token IDs, passes through model layers, forms next-token candidates, and samples an answer.

chatgpt-animation-gym.html
Tokenizer Gym

Tokenizer

Type text and watch it split into GPT tokenizer pieces with the matching token IDs, using the o200k_base tokenizer when available.

tokenizer-demo-gym.html
Embeddings Lab

Meaning Map Lab

Compare keyword overlap against semantic similarity, then watch phrases move through an interactive meaning map.

meaning-map-lab.html
Tokenizer Gym

Byte Pair Encoding Demo

Open the interactive BPE visual demo directly, with the same supporting files copied from the source repository.

BPE/bpe-demo.html
Interactive Demo

Transformer Live Demo

Step through an interactive transformer visualization with live controls and immediate feedback.

transformer-live.html
System View

Transformer Lifecycle Demo

Follow the broader lifecycle of transformer models from training through deployment and iteration.

transformer-lifecycle-demo.html
Model Intuition

Linear Regression Visualization

Adjust parameters and inspect how the decision surface and predictions shift with the data.

lr_visualization.html
Training Gym

Gradient House Training Gym

Follow one house through prediction, loss, backpropagation, and an SGD update—or run a complete training epoch across the dataset.

gradientTraining.html
Metrics Playground

MAE vs RMSE Demos

Compare error metrics side by side and see how each one reacts to outliers and fit quality.

mae-rmse-demos.html
Concept Reference

Glossary

Browse a catalog of popular terms in AI, with links into related videos and gyms.

glossary.html