goJumboGPT

AI

How language models work, from tokens to reasoning

What happens inside ChatGPT style models: tokens, context windows, training runs, reasoning modes, model size, RAG versus fine tuning and open weights.

10 articles in this hub

A language model does not look answers up in a database. It chops your message into tokens, predicts which token should come next, adds it and repeats, thousands of times, until the reply looks finished. Nearly everything that puzzles people about these assistants falls out of that one loop: the fluent wrong answers, the forgetting halfway through a long chat, the pricing by the word fragment, the sudden competence at one task and blankness at another.

Take the prediction loop itself first, then what a token is and why it decides your bill, since tokens are the unit everything else gets measured in. The context window explains why a long conversation starts losing its own beginning, and what a reasoning model does when it thinks before answering covers the slower, pricier mode most assistants now offer you.

If you are putting a model to work on your own documents rather than just chatting with one, the choice usually comes down to retrieval against fine tuning, and it is much cheaper to get that right at the start than to rebuild it later.

Articles in this hub