Modern AI laboratory · Level 3
How modern AI works
Explore neural networks, tokens, sampling, context limits, embeddings and agent approval. Simulations are labelled; the neural network and temperature calculations are real local computations.
Neural network playground
Real model training
A tiny neural network trained in your browser on four XOR examples. Change the hidden-neuron count and learning rate, then train again.
This is a real, tiny neural network, not a replica of a large model. It uses sigmoid units and backpropagation on four examples. It is deliberately limited so the calculation can run locally.
Tokenisation explorer
Educational illustration
See one simple way text can be divided into tokens. This is not a specific vendor tokenizer, so do not read the count as a model-specific price or context measure.
Illustrative tokenizer: words, numbers and punctuation are split. Real tokenizers use learned subword vocabularies.
Next-token prediction game
Educational illustration
Choose a context and see an illustrative next-word distribution from a tiny local table. This is not a language model and does not generate a correct answer.
Temperature playground
Real sampling calculation
Temperature changes how probability is distributed over next-token candidates. Move the slider to see the same logits under different temperatures.
Temperature is a sampling setting. It does not directly control truthfulness or safety.
Context window simulator
Educational illustration
Add a long instruction and see which words remain in a simplified fixed-size window. Real models use tokens and internal attention; this view is deliberately simplified.
Model parameters explorer
Memory estimator
Estimate the raw storage needed for a model’s weights. This is not a measure of intelligence or quality.
Embedding relationships
Educational illustration
These are teaching coordinates, not embeddings from a commercial model. Select a word to see its nearest illustrative neighbours.
AI agent approval simulator
Educational simulation
Follow a simplified agent loop. Choose whether the human approves the side effect; the simulation then shows what happens.
No real agent or external tool is called. A real system needs enforced permissions, logging, a stop control and a clear approval boundary.
Bias and fairness decision exercise
Scenario exercise
A recruitment model was trained on past hiring decisions. Before launch, what should the team do?
There is no automatic right answer. The exercise asks you to reason about evidence, accountability and who can challenge a decision.
What is real in this laboratory?
| Lab | Classification |
|---|---|
| Neural network playground | Real tiny neural network trained locally |
| Tokenisation explorer | Educational illustration |
| Next-token game | Educational illustration |
| Temperature playground | Real softmax calculation |
| Context window simulator | Educational illustration |
| Parameters explorer | Memory estimator |
| Embedding relationships | Educational illustration |
| Agent approval simulator | Educational simulation |
| Bias decision exercise | Scenario exercise |
Last updated: