Local AI

Local AI

Learn how models run, what hardware they need, and how to build a practical local inference system.

Start here

Three foundations for better decisions.

Choose hardware, understand model size, then connect the concepts into a complete inference loop.

Interactive fundamentals

See the model’s work, step by step.

Use the explainers to inspect tokenization and cached attention, then estimate what a model will do on real hardware.

Interactive explainer

From prompt to next token

Step through the small loop a language model repeats while generating text.

1 · Read

Text so far

The best pet is a

2 · Tokenize

Tokens and IDs

TheID 791bestID 1888petID 5207isID 374aID 264

The tokenizer splits text and gives every token a numeric ID.

3 · Embed + attend

Meaning and context

pet · 5207[0.2, −0.7, …]

Embeddings represent meaning. Attention mixes in useful context from the other tokens.

4 · Score

Possible next tokens

dog56%
cat29%
fish15%
5 · Pick

One token is added

The best pet is a dog

Then the same loop starts again.

Step 1 of 5

Interactive explainer

Why generation uses a KV cache

Compare the work required to generate the same next token with and without saved attention data.

5 prompt tokens

Without a cache Old work was forgotten

Work this stepWaiting

Nothing is saved between steps.

With a KV cache Old attention data was saved

Saved K/V data
Work this stepWaiting

Earlier positions can be reused.

Interactive calculator

Estimate model fit and generation speed.

Compare GPUs and unified-memory systems, check VRAM fit, and estimate tokens per second for your model.

Open the calculator →

Learn the fundamentals

Understand the inference loop.

Build a working mental model before comparing hardware or software.

  1. 01Tokenization
  2. 02Parameters and model size
  3. 03Quantization
  4. 04Context windows
  5. 05KV cache
  6. 06Attention and mixture-of-experts

Choose hardware

Match memory, bandwidth, and budget.

Start broad, then compare the devices and build types that fit your models.

  1. 01Best GPUs and devices
  2. 02RTX 3090
  3. 03Apple Silicon
  4. 04Strix Halo
  5. 05DGX Spark
  6. 06Multi-GPU motherboards

Build a local system

Turn compatible parts into a useful stack.

Start with the runtime choice, then wire up offloading, measurement, and remote access. Installation and security guides are next.

  1. 01Choosing a runtime: Ollama, llama.cpp or vLLM
  2. 02Linux installation guides
  3. 03Model storage and downloads
  4. 04GPU offloading
  5. 05Performance measurement
  6. 06Remote access
  7. 07Security and privacy

Latest Local AI writing

Recent articles.

Chronological updates after the guided paths and interactive fundamentals.