AI Lab

Experiments

Explore five browser simulations. Each has a short challenge and a lesson that explains the calculation.

Neural network

Read lesson
Educational simulationRuns in your browser with simplified rules and example settings.
Try this

Set the network to 5 hidden units and both inputs to 0. Which units still have a nonzero activation? Check the bias column in the weights table.

Opening the experiment…

Tokenization

Read lesson
Educational simulationRuns in your browser with simplified rules and example settings.
Try this

Type “AI belajar!” and compare all three rules. Which one keeps the space? Count the pieces before looking at the result.

Opening the experiment…

Sampling temperature

Read lesson
Educational simulationRuns in your browser with simplified rules and example settings.
Try this

Predict what happens to the leading candidate at 0.3 and 1.8. Draw samples at each setting and compare the percentages with the observed counts.

Opening the experiment…

Gradient descent

Read lesson
Educational simulationRuns in your browser with simplified rules and example settings.
Try this

Start at −3. Take a step at 0.5, then take several steps at 1.1. Compare the loss in the two runs and use the step history to explain the difference.

Opening the experiment…

Model weight memory

Read lesson
Educational simulationRuns in your browser with simplified rules and example settings.
Try this

Keep the model at 7 billion parameters. Switch from 16 bits to 4 bits and check how much raw weight storage you save.

Opening the experiment…

Start with a question

Introduction to AIAI FoundationsA brief history of AIAI FoundationsTypes of AIAI FoundationsAI, ML, and deep learningAI FoundationsUnderstanding generative AIAI FoundationsEthics, limitations, and responsibilityAI FoundationsLinear algebra for learning systemsMathematics for AIVectors, matrices, and similarityMathematics for AICalculus: measuring changeMathematics for AIDerivatives and gradientsMathematics for AIProbability and statisticsMathematics for AIOptimization and objectivesMathematics for AI
K to open · Escape to close