AI & LLMs

Using ChatGPT, Claude and Gemini: regions, networks and outages. How large language models work, explained clearly, plus notable AI news.

01

What a large language model really is: a program that keeps predicting the next word

ChatGPT, Claude and other large language models are, at heart, programs that predict the next word from the text so far. How they write an answer word by word, why the same question gets different answers, and how a chat becomes plain text.

02

Why temperature 0 still gives different answers

Temperature 0 makes a language model take the top candidate every time, yet the same prompt can still produce different text. The cause: who else is on the server.

03

What is a token, and why does AI charge by the token?

Tokens are the pieces of text a language model reads and writes. How text is cut into them, why languages need different numbers, and why output costs more.

04

How large language models are trained

Pre-training, instruction tuning and human feedback: what each stage teaches a language model, how much text and hardware it takes, and what it leaves out.

05

Why AI agrees with you: sycophancy explained

Language models tend to side with whoever is asking. Where the habit comes from, how OpenAI shipped and withdrew a flattering GPT-4o, and how to ask around it.

06

Transformers and attention: how models read text

Attention lets a language model weigh every earlier word when it reads the next one. How it works, what layers and heads add, and why long text costs more.

07

What are embeddings? Meaning as a list of numbers

Embeddings turn words and passages into lists of numbers, so that similar meanings end up close together. How closeness is measured, and where it goes wrong.

08

What 7B and 70B mean: LLM parameters explained

The B in 70B is a billion parameters. What parameters are, where they sit in a model, why bigger isn’t always better, and how mixture-of-experts changes the count.

09

How much memory does a 70B model need?

Work out the memory a language model needs from its parameter count: weights, quantization and the context cache, with the arithmetic for Llama 3.1 70B.

10

Context windows: how much an AI can “remember”

A context window is all the text a model can read at once. What counts toward it, why long chats get worse and cost more, and what happens when it fills up.

11

What is a system prompt?

Before your first message, an AI app gives the model instructions you don’t see. What system prompts contain, with excerpts Anthropic publishes, and their limits.

12

Does ChatGPT remember you? Context, memory and training

Three different things get called memory in AI chats. How the conversation, saved memories and training differ, and how to see, change or delete each one.