AI explained · Part 1 of 3

How AI works, and what each step means for your decisions.

You do not need the mathematics to decide well about AI. You need an accurate picture of the machine, because how it works explains where the opportunities lie, and much of its cost, its limits and its risks. This first part covers the model itself. Each section ends with the decision it informs.

01

A network that turns everything into numbers.

A model works only with numbers. Text is cut into pieces called tokens, and each token becomes a list of numbers that captures something of its meaning. Images and sound are also converted into numbers the model can process.

Those numbers pass through layers of simple units joined by learned weights. Language models add one more mechanism, called attention: it lets the model weigh how the tokens in its context relate to one another. That is how a model uses the context it is given.

No single unit knows anything. Most of what the model can do is held in the weights, taken together.

What it means for you

You are buying a general capability. The same model can draft a contract or review code. The specific value has to come from what you point it at.

Technical note

The figure is a toy feed-forward network: weighted sums followed by a simple non-linear step. A transformer alternates attention layers with feed-forward layers, joined by residual connections and normalisation, and modern models use other activation functions. Token representations are called embeddings. Parameter counts for large models run from billions to hundreds of billions and are often undisclosed.

02

Training sets the weights, in stages.

Engineers design how a model learns. They do not program its answers. In the first stage, pre-training, the model reads a very large body of text and predicts the next token, over and over. Each time, the error is measured and the weights are moved slightly to reduce it.

A second stage, post-training, teaches the model to follow instructions, reason through problems, use tools and respond more safely. A model can also be trained further to adapt it to a domain or a company. This is called fine-tuning.

In ordinary use the weights do not change. What the model has learned is spread across many weights. It is not stored like a database, and a single fact cannot simply be read out.

What it means for you

Almost no company should pre-train a model. The live choices are supplying your knowledge to a general model at the moment of use, adapting a model, or both. The first is usually quicker to start and easier to reverse.

Technical note

Pre-training is gradient descent on a next-token prediction loss. Post-training uses demonstrations, preference data and reward-based methods. Fine-tuning may update all parameters or a small added set of adapters. Sparse architectures activate only part of the model for a given input. Model and system updates can change behaviour, even under the same product name.

03

The hardware: chips, power and heat.

Much of a model's work is a vast number of multiplications and additions. General processors are built for varied tasks. Graphics chips and other AI accelerators are built to do thousands of these operations together, which made them one of the critical resources of the industry.

The largest training runs spread across thousands of accelerators that must act as one machine. Power, cooling, chips, capital and engineering talent are all constraints. This is why few organisations train frontier models. Most companies use models developed by others, through a hosted service or by running openly available weights themselves.

What it means for you

Two consequences. Supply is concentrated, so supplier dependence is a strategic question. And every answer has a physical cost, so usage needs a budget like any other resource.

Technical note

Four limits matter: compute, memory capacity, memory bandwidth and the speed of the links between chips. Buying more compute does not remove a memory bottleneck. The cost of serving a model depends on input length, output length, model size, reasoning effort, caching, batching and how fully the hardware is used.

04

An answer is built one token at a time.

The basic step is simple. The model takes what is in its context, estimates a probability for each possible next token, selects one, adds it and repeats. A model alone has only two sources: what it learned in training and what you put in front of it.

Modern assistants build on this step. Reasoning modes let the model work through intermediate steps before it answers, which typically takes more computation and more time. Connected systems can search, read your documents and use tools. Part 2 covers these.

The model produces what is plausible. Plausible and true are different things, and a wrong answer can be stated with the same fluency as a right one.

What it means for you

Reliability has to be designed. The cost of an error decides where AI can act alone, where it needs a check and where a person must decide.

Technical note

The model outputs scores over its vocabulary, converted to probabilities. Temperature reshapes that distribution: lower values favour the most probable tokens more strongly. Most implementations cache intermediate results for earlier tokens and reuse them, so they are not recomputed at each step. Cost still rises with input length, output length and any reasoning tokens. The context window is finite: long inputs may be truncated, summarised or retrieved selectively.

Next · Part 2 of 3From model to systemWhat a company really deploys, where its data goes, and what a model cannot do alone.Continue reading
Applied AIPart 1 of 3

The figures are simplified working models. Each caption says what it leaves out. The company in the examples is invented for illustration. Written and reviewed by Teran Consultancy Services. Last updated 27 November 2026.

A first conversation maps where AI moves your numbers, and where it does not.

Start a conversation
TeranTeran Consultancy Services · Switzerland · info@teran.chTermsPrivacy