Lab

Local AI Lab

See how AI works by changing it and watching what happens

One path through the parts of modern AI that usually stay hidden. Follow your words as they become tokens and then meaning, as a network learns, pays attention and picks the next token, and on to your own machine: shrinking a model until it fits, and handing it your own documents to search.

Explainers

Change it and see

Start here · 1 of 9

How text becomes tokens

See your text cut into the numbered pieces a language model actually reads, and why that shapes cost, fairness and odd mistakes.

Beginner15 minTokenisation · Byte pair encoding

2 of 9

Meaning as a map

How word vectors place each word as a point, so words used alike land close together and relationships become directions.

Beginner20 minEmbeddings · Cosine similarity

3 of 9

How a model picks the next token

See how temperature, top-k, top-p, min-p and penalties turn a model's logits into one token, and why their order matters.

Beginner30 minSampling · Temperature

4 of 9

Watch a neural network learn

Train a real network in your browser, then take it apart: one neuron, one backpropagation step, one learning rate at a time.

Beginner20 minNeural networks · Backpropagation

5 of 9

How attention decides what matters

See how a token chooses which earlier tokens to look at, step by step, and why grouped-query attention shrinks the KV cache.

Intermediate24 minAttention · Transformers

6 of 9

Will it run on my machine?

Work out whether a model fits on your hardware, and how fast it will talk, from memory and bandwidth alone.

Intermediate15 minLocal inference · Memory

7 of 9

What quantisation does to a model

Watch real llama.cpp formats round a block of weights, and see why blocks, scales and outliers decide how much a smaller file costs in quality.

Intermediate19 minQuantisation · Number formats

8 of 9

How RAG finds the right passage

See how keyword search, embedding search and rank fusion pick passages from your documents, and why the right one is sometimes missed.

Intermediate19 minRetrieval · RAG

9 of 9

How an AI agent works

Step through a model calling tools in a loop, and see how the harness around it decides what it sees, what it may touch and when it stops.

Intermediate22 minAgents · Tool calling

Also from Local AI Aotearoa

AI policy map

The laws, strategies and guidance shaping AI in Aotearoa New Zealand, Australia, the United States, the United Kingdom, the European Union and Canada. Every record links to an official source, and a person reviews every change before it goes up.

Open the policy map →

Real maths, small scale

Every number on screen is computed live from the same formulas real models use, just small enough to see.

Built for local AI

We focus on what helps people run and question AI themselves, on hardware they own.