Tools

Small interactive things to build intuition and to do back-of-the-envelope maths. Everything runs in your browser; nothing you type is sent to the server.

Memory and architecture

KV-cache calculator

How much GPU memory does the attention cache need? Compare MHA, GQA, MQA, MLA, sliding-window, looped and hybrid linear-attention models by context length, batch size and precision. Presets come from published model configs, each with its source.

#inference#memory

Model memory (weights and quantisation)

Will it fit? Weights at 16, 8, 4 or 2 bits plus the KV cache for your context length, checked against the memory of common GPUs. For dense and mixture-of-experts models.

#inference#quantisation

Linear attention and the delta rule

A fixed-size matrix as memory: write key/value pairs one by one and see how plain linear attention blurs them while the delta rule corrects them. The idea behind Gated DeltaNet-style hybrid models.

#linear-attention#memory

Language models

Tokenizer (byte-pair encoding)

Train a tiny byte-pair-encoding tokenizer on your own text, merge by merge, and see how words are cut into tokens. Explains why numbers, rare words and other languages cost more tokens.

#tokens#bpe

Hands-on

Python in your browser

A real Python 3 prompt with numpy that runs inside a sandbox in your browser. Nothing is sent to the server.

#python#numpy

Terminal recordings

Replay recorded command-line sessions with the commands as copyable steps. Nothing is executed.

#terminal

Robotics and control

Robot arm: inverse kinematics

A two-joint arm reaches for a target. Compare the closed-form solution with gradient descent and learn why robots need a controller, not just a formula.

#robotics#control