TL;DR: the 2-minute version
A language model learns by trying to predict what comes next in text. Think of completing “She put the milk in the...” You can guess “fridge” because you’ve learned something about language and the world.
The model does a mathematical version of this. It breaks text into pieces called tokens, turns them into numbers, and processes those numbers through a neural network.
Inside that network are billions of adjustable settings called weights. Training means changing those settings until its predictions improve. Once trained, it can use the patterns it’s learned to generate new text.
A transformer is a design of neural network. Attention is its mechanism for combining information from relevant tokens. GPT stands for Generative Pre-trained Transformer: a model trained beforehand that can generate new text.
CPUs organise much of the work. GPUs perform large amounts of similar arithmetic in parallel. They were developed for graphics, which happen to need the sort of repeated calculations that neural networks also use.
When you send a message, the model processes the available conversation and builds an answer a token at a time. Its weights usually stay fixed. Using something you’ve just told it is different from retraining it.
Tools connect the model to searches, calculators and files. An agent’s software repeatedly calls the model, carries out its chosen actions and returns the results. Stored memory supplies selected notes to later conversations.
Parameter count measures the model’s learned settings. Token counts measure its training material, current context or generated text. Dense models use most of their network per token; mixture-of-experts models select some processing blocks.
Hosted models run on someone else’s computers. Local models do the calculations on your own machine. Memory, processing power and the size of the model help determine what each setup can comfortably do.
Quantisation stores the model’s numbers with less precision. Distillation trains a student using a teacher model. Both can make AI more practical to run, with effects on performance that need checking for the intended task.
Images and video use related neural networks, but their generation can work differently. A diffusion model, for example, learns how to transform noise into a picture through a sequence of small steps.
The costs continue after training: every new answer needs computation. Whether the investment pays off depends on useful work, paying customers, running costs and competition. Impressive technology alone doesn’t settle the economics.
Start with a sentence
Imagine someone gives you this:
“She put the milk in the...”
You’d probably finish it with “fridge”. You know that milk is usually kept cold, that fridges keep things cold, and that the sentence needs a word that fits after “the”.
Now try this version:
“The milk had been left in the sun all day, so she decided to...”
“Throw it away” would make sense. To guess that, you need more than a familiar sequence of words. You need some relationship between heat, milk going off, and what people do with spoiled food.
A language model learns patterns in language. “Large language model”, usually shortened to LLM, describes one built and trained at a large scale.
The basic training exercise for a language model is a version of this game. Give it some text, ask it to predict the next piece, and adjust it when its prediction is poor.
Repeated across enormous amounts of varied material, that exercise can teach grammar, facts, styles of writing and patterns of problem-solving. Predicting well turns out to require learning quite a lot.
That’s the starting point. We can now look at how a computer actually does it.
Tokens: cutting the text into manageable pieces
We naturally think in words and sentences. A language model usually works with smaller building blocks called tokens.
A token might be a whole word, part of a word, a punctuation mark, or another small piece of text. A familiar word might fit into one token; an unusual surname might need several. 1
For a simple illustration, imagine our sentence is divided like this:
She | put | the | milk | in | the | fridge | .
A real tokeniser may split it differently, including spaces with neighbouring text. The point is that it turns a continuous string of writing into a sequence of pieces the system recognises.
Why use pieces rather than a list containing every possible word? Because language keeps producing new words, names and combinations. A limited collection of reusable fragments can cover much more text.
It’s a little like having letter tiles and common word fragments available together. Familiar things can be represented compactly, while unfamiliar things can be assembled from smaller parts.
Each token has an ID number. That number is just its label, like a book’s catalogue number. It doesn’t tell the model what the token means.
An invented word such as “fluffatron” can usually be assembled from familiar token pieces. An illustrative split is fluff | at | ron; the actual split depends on the tokeniser.
If you explain that a fluffatron removes cat hair from sofas, the model can use that definition while answering. It hasn’t necessarily learned a new permanent vocabulary entry.
Embeddings: where the numbers come from
The next step is to replace each token ID with a list of numbers. That list is called an embedding.
Those numbers usually start as random values. Nobody sits down and decides that “cat” should have a particular set of numbers.
Imagine a huge spreadsheet. Each row belongs to one token, and each row contains a list of numbers. That’s the model’s embedding table.
When the model encounters a token, it looks up that token’s row. The numbers in that row are its starting representation.
At first, the spreadsheet is mostly meaningless. Training gradually changes the numbers into something useful.
Suppose the model repeatedly sees sentences involving cats, dogs, feeding, sleeping, animals and pets. Its initial predictions are poor.
Training calculates how to adjust the model’s settings to improve those predictions. The numbers in the embedding table are among those adjustable settings. They’re learned parameters too. 2
Over many examples, tokens used in related ways can acquire representations with useful relationships. A sentence about feeding a cat can then help the model handle a sentence about feeding a dog.
That relationship develops because it helps prediction. Nobody has explicitly instructed the model to put cats and dogs together.
A useful analogy is making a map by watching journeys.
Imagine you have a list of towns but no map. You initially scatter them randomly across a page. Then you receive evidence about journeys between them and keep adjusting their positions to make the map fit the evidence.
Eventually, their positions tell you something useful about their relationships.
An embedding is broadly like a position on that map, except it can have hundreds or thousands of coordinates rather than just 2. Each coordinate is one number in the list.
The tricky bit is that the coordinates usually don’t have neat individual meanings.
For a simple animal description, we might invent columns labelled “size”, “has fur” and “lives in water”. That helps explain how numbers can describe things, but real embeddings generally don’t have such clearly labelled columns.
Meaning is carried by patterns across the numbers. You usually can’t point to one entry and say, “That’s the cat’s fluffiness score.”
There’s then another step. The embedding gives the token its starting representation. Later layers of the network change that representation using the surrounding text. 3
So the token “bank” can start with the same looked-up numbers in both of these sentences:
“She deposited money at the bank.”
“She sat on the river bank.”
As the model processes each sentence, the surrounding words help produce different contextual representations of “bank”.
The distinction to keep is that the stored embedding is learned during training. The contextual representation is calculated when the model reads a particular sentence.
Tokens aren’t universal across models. Two tokenisers may both include “the” but give it different IDs, or handle its preceding space differently. Even models sharing a tokeniser usually learn different embedding numbers.
Like different libraries, they can hold the same book under different catalogue numbers. A vocabulary entry also needs useful training: an unfamiliar word made from known pieces differs from a token whose representation is poorly learned.
Order matters too. “The dog bit the man” and “the man bit the dog” contain the same words. The model therefore needs information about where tokens occur, as well as which tokens are present.
Weights: the settings the model learns
So far, we’ve turned text into numbers. Something now needs to process them. That something is a neural network.
These ideas developed over decades. In 1958, Frank Rosenblatt described the perceptron, an early system that learned adjustable connections between mathematical units. 4
An artificial neuron is a small mathematical operation. It receives numbers, multiplies them by weights, adds the results, and applies a function to produce an output. 5
The name comes from a loose resemblance to biological neurons receiving and combining signals. An artificial neuron leaves out almost all the complicated biology of a real cell.
Think of a weight as an adjustable dial. Turning it changes how strongly one input affects the calculation.
On a sound mixing desk, the settings determine how much of each instrument reaches the final mix. Changing the settings changes the result, even when the incoming recordings stay the same.
A neural network has many such settings arranged across connected layers. Its calculations are much more complicated than mixing sound, but the dial analogy helps explain what training changes.
A model described as having 8 billion parameters has roughly 8 billion learned numerical settings. Weights are parameters, along with other adjustable quantities such as biases.
A bias is an adjustable offset in a calculation. You don’t need to remember that detail to follow the story: the important point is that the model contains a vast number of numbers that can be changed during learning.
The activation functions between layers matter too. They allow the network to learn complicated relationships. Without nonlinear operations, simply stacking more layers would leave it with a much more limited overall calculation. 5
A network with many layers is called a deep neural network. That’s where the term “deep learning” comes from.
The temporary numerical results produced along the way are called activations. The weights are learned settings; the activations change with the text being processed.
Training: learning where to set the dials
At the beginning, the model’s settings are usually initialised with small random values. Its predictions are terrible.
Give it “She put the milk in the...” and it produces scores for possible next tokens. Early in training, those scores won’t reliably favour a sensible continuation.
The original training text supplies the answer. If the next token in that passage is “fridge”, the system can measure how much probability the model assigned to it.
That measurement becomes an error score, called the loss. A very poor prediction produces a strong signal that the settings need adjusting.
The difficult part is working out which adjustments to make. With billions of dials, you can’t sensibly turn them one at a time and see what happens.
Backpropagation calculates how changes to the parameters would affect the current error. An optimiser uses that information to make small updates.
A landmark 1986 paper by Rumelhart, Hinton and Williams helped establish learning through backpropagation. This made it practical to learn useful internal representations in networks with several layers. 6
A rough physical analogy is finding your way downhill in fog. You can’t see the whole valley, but you can work out the local slope and take a step in a promising direction.
The real calculation happens in an enormous mathematical space. There’s no guarantee that every step improves every possible task. Across many examples, however, the process can produce a much better model.
The loop is: predict, measure the error, calculate useful adjustments, change the settings, and repeat.
This is called self-supervised learning because the text supplies its own targets. Nobody needs to write a separate answer sheet for every position in every passage.
The model can learn from many positions in a passage during a training calculation. Each position is allowed to use the preceding text, with future tokens hidden so it can’t simply read its answer. 7
Optional detailA closer look at a neuron and a training step
A simplified neuron can be written y = f(w₁x₁ + w₂x₂ + b). The x terms are inputs, the w terms are weights, b is a bias, and f is the activation function.
A basic update is θ ← θ − η∇θL. Here θ represents parameters, L is the loss, and η controls the step size. Backpropagation calculates gradients; the optimiser uses them. Practical optimisers refine this recipe. 5,6
The difficulty of carrying a sentence in your head
Language adds a problem of its own. The meaning of what you’re reading now can depend on something much earlier in the sentence.
Earlier recurrent neural networks processed a sequence by passing an internal state from one step to the next. Picture reading a page while continually updating a short summary in your head.
That summary has to preserve what will matter later. The long short-term memory network, or LSTM, introduced in 1997, added mechanisms for keeping, changing and discarding information. 8
In 2003, Bengio and colleagues demonstrated a neural language model that learned word representations together with predictions. Learning useful numerical representations and learning language could be part of the same training process. 2
But a running summary still has a difficult job. Imagine translating a long paragraph after somebody has taken the original away. An alternative would be to keep the paragraph available and consult useful parts as you work.
That brings us to attention.
Attention: working out which information helps
Consider this sentence:
“The cat drank the milk because it was hungry.”
You’ll probably read “it” as referring to the cat. Now change the ending:
“The cat drank the milk because it was delicious.”
Now “it” probably refers to the milk. The same word needs a different interpretation because the relationships in the sentence have changed.
Attention helps the model bring relevant information together. For each token, it calculates how strongly to draw on information from other available tokens.
Bahdanau, Cho and Bengio’s translation work, first posted in 2014, showed an influential version of this idea. While producing a translation, their system could learn which source positions were useful at each step. 9
The 3 names you’ll often hear are query, key and value. Each is a vector, a list of numbers, calculated from a token’s current representation using learned weights. 10
A library gives us a useful analogy. You arrive with a request: books about keeping food fresh. That request is your query.
The catalogue entries describe what the books cover. Those are like keys: descriptions against which your request can be matched.
The information in the books is like the values. Once you’ve found relevant entries, you can bring together useful information from the corresponding books.
In attention, matching queries to keys determines how strongly the values contribute. It’s a numerical calculation, with no English catalogue descriptions hidden inside the vectors. 11
Returning to the cat sentence, attention can help the representation of “it” draw on information about the cat or milk. The whole task is spread across the network; the example isn’t a map of one specific circuit.
Several attention heads can make different combinations in parallel. Then later layers work with the updated representations. The model builds context-sensitive information through repeated processing.
There’s an important distinction here. The weights are the learned settings. The query, key and value vectors are temporary results calculated for the particular text currently being processed.
Use the model on another sentence and the weights can stay exactly the same, while the temporary vectors change.
Optional detailQuery, key and value, with the arithmetic included
If X contains the current token representations, learned matrices produce Q = XWQ, K = XWK and V = XWV. The W matrices are parameters; Q, K and V depend on the input.
Standard attention computes softmax(QKᵀ/√dₖ + M)V. Query-key products provide match scores. Scaling controls magnitude, a mask blocks forbidden positions, and softmax normalises the weights used to combine values. 11
The transformer, and what GPT stands for
Once tokens can draw information from one another, we need a design that puts those calculations together. A transformer is one such design of neural network.
In 2017, Vaswani and 7 co-authors published “Attention Is All You Need”. Their transformer replaced the recurrent processing central to earlier translation systems with attention-based processing. 10
This let more of the training calculations happen in parallel. Instead of waiting for a running summary to pass through every position in order, the computer could do much more work across positions together.
The title is shorthand. A transformer also contains feed-forward networks that process representations at each position, along with other machinery that helps the layers work together. Attention is a central ingredient. 3
We can now unpack GPT: Generative Pre-trained Transformer.
“Generative” means it can produce new sequences of text. It learns to continue a sequence and can use that ability to compose an answer.
“Pre-trained” means it first learns broad patterns from a large collection of text. Further training can then adapt it for particular tasks or shape it into an assistant.
“Transformer” identifies the kind of neural network doing the processing, including the attention mechanism we’ve just explored.
In 2018, Radford and colleagues showed how generative pretraining of a transformer could be followed by fine-tuning for different language tasks. This was the work behind the original GPT. 12
By 2020, the GPT-3 paper demonstrated that a much larger model could perform many tasks from instructions and examples supplied in its input, without a separate parameter update for each task. 7
That distinction matters when you use an assistant. A model can follow a worked example in your prompt using its existing settings. Further training changes those settings; providing an example changes what it has in front of it.
GPT names a particular model family. “Large language model”, or LLM, is the broader category. Many LLMs use transformers while carrying other names.
How predictions become an answer
After the transformer layers have processed the available text, the model produces scores for the next token. These are converted into probabilities.
It might favour a continuation beginning “The”, or “Usually”, or “Yes”, depending on the question and everything else it has been given.
The system selects a token, adds it to the text, and repeats the process. The next prediction now takes that newly generated token into account.
That’s how a paragraph can emerge from next-token prediction. Each choice changes the situation in which the following choice is made.
Sampling introduces variation. The system can favour the most likely continuation very strongly, or allow more room for less likely choices. Temperature controls how concentrated those probabilities are.
Lower temperature can make answers more consistent. It doesn’t make a wrong answer true.
Training a model to continue text also doesn’t automatically make it a useful assistant. If you write “Explain photosynthesis”, a basic model might continue with another exam question.
Post-training helps shape that behaviour. Examples of good answers teach useful formats, while preference comparisons and other feedback can encourage more helpful responses. These stages also change the weights. 13
Some training rewards checkable solutions, such as answers to certain maths or programming problems. Reasoning-oriented models can learn to generate intermediate steps before giving a final response. 14
That gives them more working space on a problem, at a cost in time and computation. It still leaves room for mistakes.
What it knows, and why it can sound convincing when it’s wrong
The trained weights carry the effects of what the model has learned. They don’t usually form a tidy filing cabinet with a labelled drawer for each fact.
Think again of the mixing desk. A particular result can depend on many settings together. Likewise, information in a neural network is distributed across its parameters.
Some passages can be memorised closely. Other answers come from applying learned patterns to new combinations. Both can happen within the same system.
The difficulty is that a plausible continuation can be false. Ask for an obscure paper and the model might assemble a convincing title, author list and journal without identifying a real publication.
This is often called a hallucination. The failure arises because the output fits a reference’s pattern. Fluency doesn’t tell you whether it exists.
Search, source documents and calculators can help by supplying evidence or performing exact operations. Retrieval-augmented generation means giving the model relevant retrieved material to use while answering. 15
It’s rather like allowing someone to consult a textbook during an exam. That can help a great deal, provided they find the right passage and interpret it correctly.
Why graphics chips became AI chips
All these lists of numbers and learned transformations have to be processed by a real computer. This brings us to CPUs and GPUs.
The CPU, or central processing unit, handles flexible general-purpose work. It runs the operating system, makes branching decisions and coordinates other components.
The GPU, or graphics processing unit, is particularly good at doing large amounts of similar work in parallel. It can apply related calculations across many pieces of data at once. 16
Picture a kitchen. A skilled cook can handle varied tasks, change plans and deal with awkward exceptions. That flexibility resembles one of the CPU’s strengths.
Now imagine a large team each preparing one of many similar portions. For the right job, dividing work across that team gets through much more than asking one person to do everything sequentially.
That’s the useful part of the GPU analogy. It doesn’t mean a GPU is better at every task. The work has to suit its organisation, and the rest of the kitchen still needs coordinating.
Graphics created demand for this design. Drawing a scene involves related calculations across many pixels and points. Neural networks also require repeated arithmetic across large arrays of numbers.
One key operation is matrix multiplication. If you’ve seen a spreadsheet, picture combining rows and columns through many repeated multiplications and additions. Huge numbers of these calculations can be organised in parallel.
Optional detailTensors: organising all those numbers
In machine learning, a tensor is an array of numbers organised along one or more axes, with a single number represented as a zero-dimensional tensor. A vector is a 1-dimensional list; a matrix is a 2-dimensional grid. 17
Imagine a spreadsheet with rows and columns. Stack several sheets and you have another axis. For a colour image, axes might represent height, width and colour channel. Video adds time; a batch adds a collection of examples.
Those dimensions describe how the numbers are arranged. They don’t imply mysterious extra physical dimensions. Weights and activations can both be stored as tensors.
Developers used graphics hardware for other computing tasks before it became convenient. NVIDIA’s CUDA platform, introduced in 2006, made general-purpose GPU programming much more accessible. 18
In 2012, the AlexNet image-classification work showed what deep learning could achieve with an efficient GPU implementation. Better hardware and better ways to use it helped make larger networks practical. 19
Modern accelerators have specialised circuitry for matrix operations. Google’s tensor processing units, or TPUs, are another example of hardware designed around neural-network workloads. 16,20
Underneath, these chips contain vast numbers of transistors arranged into circuitry for logic, storage and control. The model’s software tells that machinery which operations to carry out on the numbers.
The transformer was a particularly useful fit for parallel hardware during training. Improvements in the model, its software and its physical machinery reinforced one another.
The workbench matters as much as the workers
More arithmetic power only helps if the necessary numbers arrive quickly enough. That makes memory a central part of the story.
Storage is where the model files live between uses. Working memory holds the weights and temporary calculations while the model is running.
A kitchen comparison works here too. Storage is the pantry. Working memory is the worktop. You can own a huge pantry and still struggle to cook a complicated meal on a tiny worktop.
Memory capacity determines how much fits. Memory bandwidth determines how quickly data can move. Having enough space doesn’t guarantee that you can supply the processors quickly enough. 16
GPU memory is often called VRAM. Data-centre accelerators commonly use high-bandwidth memory, designed to feed large amounts of data to the chip.
When only a few requests are being handled at once, generating tokens can spend much of its time moving weights through the machine. Adding more arithmetic capability may help less than improving that flow of data. 21,22
A model can also be spread across multiple chips. Those chips need fast connections to exchange information. Otherwise, a large team ends up waiting for messages from its colleagues.
Large training systems divide work across devices in several ways. The Llama 3 report describes how much engineering is involved in making a distributed training system work effectively. 23
Then there’s electricity, cooling, networking and maintaining the machines. A data centre has to keep supplying all of them while the service runs.
What actually happens when you press Send
Suppose you’re using a hosted assistant. Your phone or laptop sends your request to the company running the service.
The application assembles the material for the model: your message, instructions, some available conversation history, and perhaps documents or results from tools.
This material is the context. Think of it as the papers currently laid out on the workbench for this particular job.
The model’s learned weights are usually already loaded into working memory on the serving machines. Your message doesn’t require downloading or rebuilding the whole model from scratch.
First, the system processes the prompt, a stage often called prefill. It then generates the answer through successive token choices, in the decoding stage. 22
To avoid repeating unnecessary work, it keeps a key-value cache. This stores attention information from earlier positions that can be reused as generation continues.
Longer conversations need more working material, with the amount depending on the model’s design. Efficiently managing that cache helps a service handle many requests. 22
The response can be streamed to your screen as it’s generated. That’s why you can start reading before the whole answer is finished.
A delay may come from waiting for available capacity, processing a long prompt, generating a long answer, or using a tool. The speed of the first word and the time to a complete answer measure different things.
The context window is the amount of material the model can consider in a request. It isn’t the size of its entire learned knowledge.
And reading your message usually doesn’t change the weights. The model can use a fact you’ve just supplied because that fact is on its current workbench.
If an application remembers your preferences between chats, it can store them separately and provide them again later. That’s a different process from retraining the underlying model.
Optional detailTraining, fine-tuning and retrieval are different changes
Pretraining learns broad patterns through parameter updates. Fine-tuning makes further updates for a task or behaviour. LoRA adapts a model using learned low-rank updates while leaving the original weights frozen. 24
Retrieval provides relevant passages when answering. Those passages change the available input without necessarily changing weights. These approaches can be combined to help a model use retrieved evidence. 15
Model size: how much machinery, and how much text?
An “8-billion-parameter model” sounds as though it might contain 8 billion words. The number counts its learned numerical settings. Those same settings are reused whenever it processes new text.
Think back to the mixing desk. You can count its adjustable dials, or you can measure how much music you play through it. Playing a longer recording doesn’t add more dials.
Parameters count the model’s adjustable settings. Tokens measure the material passing through it. Giving an 8-billion-parameter model a longer prompt leaves it with 8 billion parameters.
Several token counts can appear beside that parameter count, and each tells you something different.
Training tokens measure how much text the model was trained on. That text helped shape the settings, but the complete training collection isn’t usually stored inside the model as a searchable library. 25
Context tokens measure the material available for a particular response. That can include instructions, conversation, retrieved documents and tool results, as well as the answer generated so far.
Generated tokens measure how much the model produces. A longer answer usually requires more successive generation steps, even when the model itself stays exactly the same size.
For an invented example, imagine an 8-billion-parameter model trained on 2 trillion tokens, with a 32,000-token context limit, producing a 500-token reply. These numbers describe different things; they aren’t competing measures of one size.
The parameter count describes the machinery. The training count describes its learning experience. The context limit describes its workbench. The reply length describes the work it’s producing now.
More parameters provide more adjustable capacity, but they don’t guarantee a better answer. Training data, architecture and the task matter too. Parameter count also doesn’t measure a precise number of stored facts.
Quantisation changes how precisely those settings are stored. An 8-billion-parameter model can remain an 8-billion-parameter model while its file becomes much smaller, because each setting takes fewer bits.
How much of the model runs for each token?
In a conventional “dense” transformer, a token’s representation passes through every layer. The large arrays of weights in attention and the other processing blocks are used in the calculations. 10
Even a short question therefore calls on much of the same machinery as a difficult one. The system doesn’t ordinarily find a small “milk and fridges” compartment and switch the rest of the network off.
There are details to that statement. For example, the input embedding step looks up the row for the particular token. “Most of the network runs” is more accurate than saying every stored number is used identically at every step.
Some models use a “mixture of experts”. Parts of their network have several alternative processing blocks, and a learned router selects which blocks handle each token. Other parts remain shared.
Imagine a factory with several production lines and a routing system that sends each item through selected lines. The whole factory exists, although each item passes through only some of it.
DeepSeek-V3’s report gives a concrete example: 671 billion total parameters, with 37 billion activated per token. That’s why reports sometimes distinguish total size from active size. 26
The “experts” here are mathematical blocks. They aren’t little agents reading different papers, and they needn’t correspond to neat subjects such as chemistry or history.
The full set of weights still has to be stored somewhere. Activating a smaller part reduces computation; it doesn’t turn the entire model into a file containing only that active part.
How much of the conversation can it use?
That’s a separate question. In ordinary full causal attention, a new token can draw on representations of earlier tokens in the supplied context. Different attention heads and layers combine that information in different ways. 10
The cache lets it reuse earlier attention calculations, so generating each word doesn’t require recomputing the whole conversation from scratch. Some architectures restrict attention to selected positions or recent windows. 22
Material outside the supplied context is unavailable as specific text unless the application retrieves it. A paper’s presence in an archive doesn’t put it on the current workbench.
Even material that fits can be used imperfectly. The 2023 “Lost in the Middle” study found that, in its tested tasks and models, performance depended on where relevant information appeared in a long context. 27
So a context limit tells you how much can fit. It doesn’t guarantee that every detail will receive equal attention or be recalled correctly.
A bigger model, a bigger context window and a longer answer can each increase resource needs, for different reasons. This is why one number labelled “size” can’t tell you everything about the system.
Tools: how generated text becomes an action
Imagine asking an assistant to find 3 papers, compare their results and save a table. Searching, opening documents and creating a file require connections to other software. Those connections are called tools.
Think of the model as someone at a desk. They can compose an answer from what’s in front of them. Give them a calculator, a library catalogue and a filing cabinet, and they can do a different range of jobs.
Before the model generates, the application supplies descriptions of available tools. A description says what a tool does, its name and the information it needs. A calculator might require an expression to evaluate.
You ask, “What’s 17% of 238?” The model can generate a request equivalent to: tool = calculator; expression = 0.17 × 238.
That request is generated output, using the same token-generation process as an ordinary answer. Training and instructions help the model choose a tool and supply arguments, the values the tool needs. 28
The application recognises this structured request, checks it and runs the calculator. The calculator returns 40.46. The application adds that result to the model’s input and calls the model again.
The next output can then explain the result to you. The model requested the calculation; the calculator performed it; the application connected the steps.
An API, or application programming interface, is a defined way for programs to make requests to one another. Tools often use APIs to contact outside services. Others run entirely on the same computer.
For our paper comparison, the model could request a search and then choose documents to open from the returned results. The tool descriptions and returned material help it decide what to do next.
A tool request can contain the wrong arguments or fail. A calculator can perform the wrong expression perfectly. The application needs to handle the result, and the model still needs to interpret it correctly.
Agents: who actually takes the next step?
The confusing part is that an agent can sound like a separate creature living inside the computer. Usually, “agent” describes an arrangement of a language model, tools and software that keeps calling the model to carry a job forward.
Think of a researcher working at a desk. They consult something, see what it says and decide what to do next. An agent system arranges a computer version of that sequence, with a model generating the next instruction.
Let’s follow one request: “Find 3 papers comparing these methods, make a table and save it.” Here’s what might actually happen behind the chat window.
First, the application sends the request to the model, along with instructions and a list of available tools. The model generates a search request, including the words to search for.
The application runs the search. It receives titles, links and snippets, adds those results to the conversation, and calls the model again.
This second call includes information the first call didn’t have. The model can now choose a promising paper and generate an instruction to open it.
The application opens the paper, returns its text and calls the model again. If the text is only an abstract, the model might request another search for the full paper.
After enough reading, a later call produces instructions to write the comparison file. The application saves it. Another tool call can inspect the saved file before the model reports the result to you.
There can therefore be many model calls inside what looks like one assistant response. Each call receives the selected history and latest results. The application keeps the sequence moving; the model helps choose the actions.
The software doing this coordination is often called an agent harness. It assembles the model’s input, provides tool descriptions, executes allowed requests, returns results and manages when the sequence continues or stops. 29
Think of a workshop fitted around a worker: tools, a bench, storage and a system for bringing the next job into view. Change that setup and the same worker can accomplish different things.
The model supplies learned capabilities. The harness supplies the working arrangement. The agent is the task-pursuing system that results. “Orchestration” is the general term for coordinating these steps.
This action-and-observation loop is the central idea. ReAct is an influential research example of interleaving language-based reasoning, actions and observations. 30
A fixed workflow might always run the same search, open the first 3 results and fill a template. An agent has some freedom to choose its next step from what it discovers. Real systems often combine fixed steps and model-selected steps.
That freedom is useful when a search fails or a document is missing. It also makes mistakes possible: the model can follow an irrelevant lead, repeat an unsuccessful action or decide too early that the job is finished.
The surrounding software therefore needs stopping rules, limits on available actions and a way to request missing information. The word “agent” alone tells you very little about how well those controls work.
“I’ll save the table” is still just generated text. A successful file-writing result, followed by checking the file, gives evidence that the task happened.
What about several agents, or skills?
Several agents can use the same underlying model. One can receive the search task and another the checking task, with different instructions, separate work histories and different tools.
Imagine the same trained musician performing different parts on separate recordings. The roles and recordings differ; you haven’t necessarily trained a different musician for each part.
Those agents can often share one loaded set of weights. Their contexts and saved state remain separate. Running more agents adds work and coordination, even when it doesn’t require a separate model file for each one.
Dividing tasks can help, but agreement between agents isn’t independent proof. Copies of the same model can share the same blind spots.
A “skill” is usually a reusable recipe: instructions explaining how to do a familiar job and what to check. Loading that recipe gives an agent guidance without ordinarily changing the model’s weights.
Memory: what does the assistant actually remember?
“Memory” is especially confusing because people use the word for several different things. We’ve already met some of them, but it helps to put them side by side.
The learned weights hold patterns acquired during training. They’re like skills and habits developed through practice. They don’t ordinarily change each time you tell the assistant something new.
The current context is its workbench: the instructions, messages and tool results available for this particular response. There’s a limit to how much fits, even if the application has a much larger archive somewhere else.
Persistent memory is closer to a notebook or filing cabinet. The application can save preferences, project notes or earlier results, then retrieve selected material and put it back on the workbench in a later conversation.
Suppose you say, “For this article, explain every new term before using it.” If the application saves that preference and supplies it next week, the assistant can follow it again without any retraining.
Retrieval may use keyword search, embeddings or other selection rules. The model can use what’s retrieved and supplied to it. Having a million documents stored somewhere doesn’t mean it considers all of them in every answer. 15
Systems such as MemGPT explored ways to manage information across a limited active context and external storage. The useful idea is that software can move relevant material into view when it’s needed. 31
Finally, the key-value cache is a computational shortcut that avoids recalculating attention information. It isn’t, by itself, a durable notebook of your preferences. It may be retained or reused by the serving software for efficiency.
As a conversation grows, an application may summarise older messages to make room. That’s like replacing a thick folder with a page of notes. It saves space, but a missing qualification or mistaken summary can change what the assistant believes happened.
For our paper comparison, the source papers, saved table and record of checks are therefore valuable. They let a later session inspect the evidence again, rather than relying entirely on a remembered account of it.
Put together, the model generates the next response or tool request, tools perform actions, the agent loop connects the steps, and memory brings selected information forward. The assistant you use is this whole arrangement working together.
Local models: doing the work on your own machine
A local model performs the calculations on hardware you control. You download the trained weights and run software that knows how to use them.
You’re taking home the already-trained model. You don’t normally have to repeat its original training before asking it a question.
Depending on the software and hardware, the calculations can run on a CPU, GPU or a combination. Projects such as llama.cpp make this possible across a range of ordinary computers. 32
The kitchen comparison still helps. A hosted service gives you access to a large professionally managed kitchen shared across customers. A local model is the kitchen you have at home.
You can do plenty in a home kitchen, especially when the task fits the equipment. A job designed for an industrial kitchen may need adaptation, take much longer, or exceed the available space.
Local operation can offer offline use and control over model versions. It can also keep prompts on your device, provided the application and any connected tools are actually operating locally.
Hosted services take care of the infrastructure and can run models too large for your machine. They can also provide managed search, file handling and other tools around the model.
A local model isn’t automatically worse on every task. A well-chosen smaller model can be useful for a particular job, while more demanding tasks expose its limits.
“Open weights” means the parameters are available under particular terms. It doesn’t automatically mean the entire training dataset, training process or unrestricted commercial rights are available too.
Making the model smaller
One option is to build a model with fewer parameters. Fewer learned settings generally mean less memory and less computation, although capability also depends on how well the model was trained.
Size alone can be misleading. The Chinchilla study showed that a smaller model trained on more data could outperform much larger models under its experimental conditions. 25
Quantisation reduces the space used by the numbers themselves. Think of storing a measurement rounded to fewer decimal places. The representation loses precision but may retain enough information for the job.
Actual quantisation is more sophisticated than simply rounding every number. Methods such as GPTQ aim to reduce precision while limiting damage to the model’s performance. 33
A moderate reduction may preserve much of the performance you care about. Push compression further and errors can increase. How much changes depends on the model, the method and the task you test.
For 8 billion parameters, using 16 bits per parameter takes about 16 GB for those parameters alone. At 8 bits, it’s about 8 GB; at 4 bits, about 4 GB.
Those are decimal, weight-only calculations. The running program also needs memory for its cache, temporary results and other overheads.
Quantisation can improve speed because fewer bits need moving or because the chip handles lower-precision arithmetic efficiently. The benefit depends on the hardware and implementation.
Distillation changes how a student model is taught. A larger teacher provides training signals, which can include probabilities, answers or worked solutions. 34
Imagine an experienced cook teaching an apprentice through carefully chosen examples. The apprentice may become very good at those tasks without acquiring every skill the teacher has.
The student model can similarly retain useful capabilities at lower running cost, while missing others or inheriting mistakes. Its performance needs testing on the work you want it to do.
There are also ways to organise computation better. FlashAttention reduces unnecessary memory traffic while retaining the intended attention calculation. 21
Speculative decoding lets a faster model draft several tokens for a larger model to check. Correctly designed sampling can preserve the larger model’s target distribution within numerical limits. 35
This matters because faster answers don’t always require sacrificing answer quality. Sometimes the gain comes from avoiding wasted work. Sometimes it comes from using a different, less capable model. The mechanism matters.
Optional detailThere isn’t one universal “quality” score
Accuracy, reasoning, writing style, instruction following and tool reliability are different outcomes. Speed also has 2 meanings: latency is the time for a request; throughput is the work completed across requests.
Total parameters, active parameters, numerical precision and context length describe different demands on the computer. A single size or speed figure therefore needs its measurement conditions alongside it.
How the same ideas extend to pictures
A picture is already a collection of numbers describing pixels. A vision system can turn patches of the image into numerical representations, then process relationships between them.
The Vision Transformer work, first posted in 2020, showed the usefulness of applying transformers to sequences of image patches at scale. 36
To describe a photograph, a visual assistant can connect a vision encoder to a language model. The visual information then helps it generate an answer in words. LLaVA is a published example. 37
This is more than recognising written text in the picture. The model can use visual features to describe objects and relationships, although exact counting and tiny details may still be difficult.
Making a new image is another task. A common approach uses diffusion: train a model to reverse a process that progressively adds noise to pictures. 38
Imagine a photograph becoming increasingly obscured by television static. During training, the network sees noisy examples and learns how to make small steps towards less corrupted versions.
During generation, it starts with noise and applies learned transformations repeatedly. A prompt such as “a red bicycle beside a wall” helps guide the process towards an appropriate image.
There’s no hidden photograph inside the initial noise waiting to be discovered. The process produces a sample using the visual relationships the model has learned.
Latent diffusion does much of this work in a compressed learned representation, then decodes the result into pixels. Working at that level reduces the burden of handling every full-resolution pixel throughout generation. 39
Transformers can be used inside image generators too. A diffusion transformer uses transformer machinery as part of that generation process. “Transformer” describes the architecture; “diffusion” describes how generation proceeds. 40
Optional detailWhy next-token prediction doesn’t explain every AI output
Autoregressive text generation extends a sequence through successive token choices. Diffusion generation repeatedly transforms a noisy sample. Transformers can be used within different kinds of system. 38,40
A chat application can also call a separate image generator. The same interface therefore needn’t imply the same underlying generation procedure. Commercial systems vary, and some architectural details remain unpublished.
Video adds a further problem: a scene has to make sense across time. A person’s clothes should remain consistent, an object should follow a plausible path, and the background shouldn’t rearrange itself between frames.
Generating each frame independently would give you a flickering collection of pictures. Video models learn relationships across time as well as within images. Video diffusion extends related generation machinery to this task. 41
Longer clips and higher resolution increase the work. Compressed representations and efficient architectures help, but there’s still far more information to handle than in a short paragraph.
Convincing appearance also doesn’t guarantee correct physics. A model can learn enough visual regularity to produce a beautiful clip while still getting causality or object continuity wrong.
The money: learning the recipe and paying to cook
Training a model can be enormously expensive. It’s tempting to think that once this bill is paid, the model is finished and its answers are almost free.
Each answer still needs the trained model to run. The settings are available, but the calculations must happen again for the next request, using working memory, processors and electricity.
The recipe analogy helps. Developing a recipe is one cost. Cooking every meal is another. Buying the kitchen is another again.
For AI, the corresponding bills include research and training, building or renting computing capacity, and serving users. One company can pay several of them; another might rent infrastructure and concentrate on the application.
A frequently quoted training figure comes from DeepSeek-V3. Its technical report states 2.788 million H800 GPU-hours for the reported training stages. 26
Its $5.576 million estimate assumes $2 per GPU-hour and excludes prior research and ablation experiments. That price assumption belongs to the report. The figure doesn’t give us an all-in bill for inventing and operating the system.
At a different scale, Microsoft reported $41 billion of capital expenditure in its fiscal fourth quarter of 2026. This included finance leases; cash paid for property and equipment was $35.8 billion. 42
The company said roughly two-thirds of capex went to short-lived assets, primarily CPUs and GPUs. This infrastructure serves AI and non-AI demand, so treating the whole sum as chatbot training spending would be misleading.
On the same July 2026 call, Microsoft put calendar-year capex expectations at about $175 billion after a lease-accounting change. It said the underlying investment expectations were unchanged. 42
Even without adding together every company’s headline announcement, the scale is extraordinary. Substantial future cash generation is needed to justify the largest investments.
That doesn’t mean every AI service must become fantastically expensive. Lower running costs, better use of equipment and useful applications can support viable businesses.
A company may pay for a system that saves valuable work. A cloud provider may earn money supplying the computation. An existing software product may become more valuable when AI is built into it.
But savings for users don’t automatically become profits for suppliers. Customers have to pay, and competition can push prices down as efficiency improves.
There’s also a difference between producing an answer and completing a worthwhile task. Retries, checking, integration and fixing mistakes all affect the value delivered.
A useful economic test is what it costs to get an acceptable result, including those extra steps, compared with what someone is willing to pay for it.
Some applications can succeed while other investments disappoint. A chip supplier can do well selling equipment even if some buyers later struggle to earn a return from it.
So the financial outcome remains open. The technology can be remarkably useful and the spending can still prove excessive in particular places. Both possibilities deserve attention.
Once you understand what happens after pressing Send, the argument becomes easier to follow. There’s a trained model, a fresh set of calculations, physical computers doing the work, and a bill for keeping them running.
Optional referenceA glossary to dip into
- Activation
- A temporary numerical result produced while the network processes an input. An activation function is the mathematical transformation used by a unit; the terms are related but distinct.
- Agent
- A system that uses a model to choose actions across several steps towards a task, usually with tools and a loop that returns their results.
- API
- Application programming interface: a defined way for one program to request a service or operation from another.
- Arguments / schema
- Arguments are the values supplied in a request. A schema specifies the allowed structure, names and types, for example a search tool requiring a text query.
- Attention
- A calculation that combines information from available token representations using input-dependent weights. These attention weights differ from the model’s learned parameters.
- Batch
- A group of examples or requests processed together. Batching can improve overall throughput while affecting how long an individual request waits.
- Checkpoint
- A saved state from training. A training checkpoint can include model parameters and additional information needed to resume training.
- Context window
- The limit on material the model can consider in a request. Instructions, supplied history, tool results and generated text can occupy that space.
- Embedding / vector
- An embedding is a learned numerical representation. A vector is a list of numbers; embeddings and many temporary representations take this form.
- Evaluation
- Testing whether a model or complete system performs the intended work correctly. A benchmark is a defined set of test tasks.
- Fine-tuning / LoRA
- Fine-tuning makes further parameter updates to an existing model. LoRA learns a smaller set of updates while keeping the original weights frozen.
- GPT / LLM
- GPT means Generative Pre-trained Transformer, a particular model family. LLM means large language model, the wider category.
- Harness / orchestration
- The harness is the software arranging model inputs, tool execution, context and the action loop. Orchestration means coordinating the steps. Usage varies between systems.
- Inference
- Running a trained model to calculate an output. In ordinary inference, the trained parameters stay fixed.
- Key-value cache
- Stored attention information reused during generation. It saves calculation and occupies working memory; it isn’t by itself a lasting notebook about the user.
- Logit / softmax
- Logits are scores before conversion into probabilities. Softmax turns a set of scores into positive proportions that sum to 1.
- Matrix / tensor
- A matrix is a grid of numbers with 2 axes. Tensor is the broader array term used in machine learning, including scalars, vectors, matrices and arrays with more axes.
- Matrix multiplication
- A rule for combining compatible arrays through repeated multiplication and addition. It performs much of a neural network’s arithmetic.
- Mixture of experts
- A network design that routes each token through selected processing blocks. Total parameter count and the number active per token differ.
- Parameters / weights
- Learned numerical settings. Weights are parameters, alongside other learned quantities such as biases. Parameter count is one measure of model size.
- Precision / quantisation
- Precision concerns how numbers are represented. Quantisation uses a representation with fewer possible values, often saving memory while potentially changing performance.
- Prefill / decoding
- Prefill processes the supplied prompt. Decoding generates successive output tokens, using the available context and cached calculations.
- Prompt / system instructions
- A prompt is input supplied to the model. Applications can include instructions describing its role, available tools and rules, alongside the user’s request.
- Retrieval / RAG
- Retrieval finds relevant stored material. Retrieval-augmented generation supplies retrieved material for the model to use while producing an answer.
- Runtime / inference engine
- Software that loads a model and carries out its calculations on the available hardware. This differs from the harness coordinating the wider task.
- Skill / workflow
- A skill is usually a reusable set of task instructions. A workflow specifies a sequence of operations; some steps can involve model-selected actions.
- Temperature
- A setting affecting how concentrated the token-selection probabilities are. Lower temperature doesn’t establish whether an answer is true.
- Token / tokeniser
- A token is a piece of text represented by an ID. A tokeniser converts text into those pieces and IDs; different models can use different tokenisers.
- Tool call
- A structured request generated by the model for surrounding software to execute. A generated request alone doesn’t establish that execution succeeded.
- Transformer
- A neural-network architecture using attention alongside other processing blocks. Transformer-based systems can be trained for language, vision and other kinds of data.
- Training / distillation
- Training adjusts parameters using examples and feedback. Distillation trains a student using signals from a teacher model; the student needn’t acquire every teacher capability.
- VRAM / bandwidth
- VRAM is working memory associated with a GPU. Capacity measures how much fits; bandwidth measures how quickly data can move.
References
Primary research, technical documentation and company disclosures. Preprints are identified. Sources checked on 22 October 2026. Technical papers describe particular systems or experiments; they don’t disclose every commercial model.
- Kudo, Taku, Richardson, John. SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing. arXiv. 2018. Preprint; arXiv:1808.06226. DOI: 10.48550/arXiv.1808.06226. Source ↗
- Yoshua Bengio, Réjean Ducharme, Pascal Vincent, Christian Jauvin. A Neural Probabilistic Language Model. Journal of Machine Learning Research. 2003. 3:1137-1155. Accessed 22 October 2026. Source ↗
- Aston Zhang, Zachary C. Lipton, Mu Li, Alexander J. Smola. The Transformer Architecture. Dive into Deep Learning. n.d.. Accessed 22 October 2026. Source ↗
- F. Rosenblatt. The perceptron: A probabilistic model for information storage and organization in the brain. Psychological Review. 1958. 65(6):386-408. DOI: 10.1037/h0042519. Source ↗
- Aston Zhang, Zachary C. Lipton, Mu Li, Alexander J. Smola. Multilayer Perceptrons. Dive into Deep Learning. n.d.. Accessed 22 October 2026. Source ↗
- David E. Rumelhart, Geoffrey E. Hinton, Ronald J. Williams. Learning representations by back-propagating errors. Nature. 1986. 323(6088):533-536. DOI: 10.1038/323533a0. Source ↗
- Brown, Tom B., Mann, Benjamin, Ryder, Nick, Subbiah, Melanie, Kaplan, Jared, Dhariwal, Prafulla, et al. Language Models are Few-Shot Learners. arXiv. 2020. Preprint; arXiv:2005.14165. DOI: 10.48550/arXiv.2005.14165. Source ↗
- Sepp Hochreiter, Jürgen Schmidhuber. Long Short-Term Memory. Neural Computation. 1997. 9(8):1735-1780. DOI: 10.1162/neco.1997.9.8.1735. Source ↗
- Bahdanau, Dzmitry, Cho, Kyunghyun, Bengio, Yoshua. Neural Machine Translation by Jointly Learning to Align and Translate. arXiv. 2014. Preprint; arXiv:1409.0473. DOI: 10.48550/arXiv.1409.0473. Source ↗
- Vaswani, Ashish, Shazeer, Noam, Parmar, Niki, Uszkoreit, Jakob, Jones, Llion, Gomez, Aidan N., et al. Attention Is All You Need. arXiv. 2017. Preprint; arXiv:1706.03762. DOI: 10.48550/arXiv.1706.03762. Source ↗
- Aston Zhang, Zachary C. Lipton, Mu Li, Alexander J. Smola. Attention Scoring Functions. Dive into Deep Learning. n.d.. Accessed 22 October 2026. Source ↗
- Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever. Improving Language Understanding by Generative Pre-Training. OpenAI. 2018. Accessed 22 October 2026. Source ↗
- Ouyang, Long, Wu, Jeff, Jiang, Xu, Almeida, Diogo, Wainwright, Carroll L., Mishkin, Pamela, et al. Training language models to follow instructions with human feedback. arXiv. 2022. Preprint; arXiv:2203.02155. DOI: 10.48550/arXiv.2203.02155. Source ↗
- DeepSeek-AI, Guo, Daya, Yang, Dejian, Zhang, Haowei, Song, Junxiao, Wang, Peiyi, et al. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. arXiv. 2025. Preprint; arXiv:2501.12948. DOI: 10.48550/arXiv.2501.12948. Source ↗
- Lewis, Patrick, Perez, Ethan, Piktus, Aleksandra, Petroni, Fabio, Karpukhin, Vladimir, Goyal, Naman, et al. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. arXiv. 2020. Preprint; arXiv:2005.11401. DOI: 10.48550/arXiv.2005.11401. Source ↗
- NVIDIA. GPU Performance Background User’s Guide. NVIDIA. n.d.. Accessed 22 October 2026. Source ↗
- PyTorch contributors. torch.Tensor — PyTorch 2.14 documentation. PyTorch. 2026. Accessed 22 October 2026. Source ↗
- NVIDIA. What Is CUDA?. NVIDIA. 2012. Accessed 22 October 2026. Source ↗
- Alex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton. ImageNet Classification with Deep Convolutional Neural Networks. Advances in Neural Information Processing Systems 25. 2012. Accessed 22 October 2026. Source ↗
- Google Cloud. Introduction to Cloud TPU. Google Cloud. n.d.. Accessed 22 October 2026. Source ↗
- Dao, Tri, Fu, Daniel Y., Ermon, Stefano, Rudra, Atri, Ré, Christopher. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness. arXiv. 2022. Preprint; arXiv:2205.14135. DOI: 10.48550/arXiv.2205.14135. Source ↗
- Kwon, Woosuk, Li, Zhuohan, Zhuang, Siyuan, Sheng, Ying, Zheng, Lianmin, Yu, Cody Hao, et al. Efficient Memory Management for Large Language Model Serving with PagedAttention. arXiv. 2023. Preprint; arXiv:2309.06180. DOI: 10.48550/arXiv.2309.06180. Source ↗
- Grattafiori, Aaron, Dubey, Abhimanyu, Jauhri, Abhinav, Pandey, Abhinav, Kadian, Abhishek, Al-Dahle, Ahmad, et al. The Llama 3 Herd of Models. arXiv. 2024. Preprint; arXiv:2407.21783. DOI: 10.48550/arXiv.2407.21783. Source ↗
- Hu, Edward J., Shen, Yelong, Wallis, Phillip, Allen-Zhu, Zeyuan, Li, Yuanzhi, Wang, Shean, et al. LoRA: Low-Rank Adaptation of Large Language Models. arXiv. 2021. Preprint; arXiv:2106.09685. DOI: 10.48550/arXiv.2106.09685. Source ↗
- Hoffmann, Jordan, Borgeaud, Sebastian, Mensch, Arthur, Buchatskaya, Elena, Cai, Trevor, Rutherford, Eliza, et al. Training Compute-Optimal Large Language Models. arXiv. 2022. Preprint; arXiv:2203.15556. DOI: 10.48550/arXiv.2203.15556. Source ↗
- DeepSeek-AI, Liu, Aixin, Feng, Bei, Xue, Bing, Wang, Bingxuan, Wu, Bochao, et al. DeepSeek-V3 Technical Report. arXiv. 2024. Preprint; arXiv:2412.19437. DOI: 10.48550/arXiv.2412.19437. Source ↗
- Nelson F. Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, et al. Lost in the Middle: How Language Models Use Long Contexts. arXiv. 2023. Preprint; arXiv:2307.03172. DOI: 10.48550/arXiv.2307.03172. Source ↗
- Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, et al. Toolformer: Language Models Can Teach Themselves to Use Tools. arXiv. 2023. Preprint; arXiv:2302.04761. DOI: 10.48550/arXiv.2302.04761. Source ↗
- Anthropic. Effective harnesses for long-running agents. Anthropic. 2025. Accessed 22 October 2026. Source ↗
- Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, et al. ReAct: Synergizing Reasoning and Acting in Language Models. arXiv. 2022. Preprint; arXiv:2210.03629. DOI: 10.48550/arXiv.2210.03629. Source ↗
- Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, et al. MemGPT: Towards LLMs as Operating Systems. arXiv. 2023. Preprint; arXiv:2310.08560. DOI: 10.48550/arXiv.2310.08560. Source ↗
- ggml-org contributors. llama.cpp: LLM inference in C/C++. GitHub. n.d.. Accessed 22 October 2026. Source ↗
- Frantar, Elias, Ashkboos, Saleh, Hoefler, Torsten, Alistarh, Dan. GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers. arXiv. 2022. Preprint; arXiv:2210.17323. DOI: 10.48550/arXiv.2210.17323. Source ↗
- Hinton, Geoffrey, Vinyals, Oriol, Dean, Jeff. Distilling the Knowledge in a Neural Network. arXiv. 2015. Preprint; arXiv:1503.02531. DOI: 10.48550/arXiv.1503.02531. Source ↗
- Chen, Charlie, Borgeaud, Sebastian, Irving, Geoffrey, Lespiau, Jean-Baptiste, Sifre, Laurent, Jumper, John. Accelerating Large Language Model Decoding with Speculative Sampling. arXiv. 2023. Preprint; arXiv:2302.01318. DOI: 10.48550/arXiv.2302.01318. Source ↗
- Dosovitskiy, Alexey, Beyer, Lucas, Kolesnikov, Alexander, Weissenborn, Dirk, Zhai, Xiaohua, Unterthiner, Thomas, et al. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. arXiv. 2020. Preprint; arXiv:2010.11929. DOI: 10.48550/arXiv.2010.11929. Source ↗
- Liu, Haotian, Li, Chunyuan, Wu, Qingyang, Lee, Yong Jae. Visual Instruction Tuning. arXiv. 2023. Preprint; arXiv:2304.08485. DOI: 10.48550/arXiv.2304.08485. Source ↗
- Ho, Jonathan, Jain, Ajay, Abbeel, Pieter. Denoising Diffusion Probabilistic Models. arXiv. 2020. Preprint; arXiv:2006.11239. DOI: 10.48550/arXiv.2006.11239. Source ↗
- Rombach, Robin, Blattmann, Andreas, Lorenz, Dominik, Esser, Patrick, Ommer, Björn. High-Resolution Image Synthesis with Latent Diffusion Models. arXiv. 2021. Preprint; arXiv:2112.10752. DOI: 10.48550/arXiv.2112.10752. Source ↗
- Peebles, William, Xie, Saining. Scalable Diffusion Models with Transformers. arXiv. 2022. Preprint; arXiv:2212.09748. DOI: 10.48550/arXiv.2212.09748. Source ↗
- Ho, Jonathan, Salimans, Tim, Gritsenko, Alexey, Chan, William, Norouzi, Mohammad, Fleet, David J.. Video Diffusion Models. arXiv. 2022. Preprint; arXiv:2204.03458. DOI: 10.48550/arXiv.2204.03458. Source ↗
- Microsoft. Microsoft Fiscal Year 2026 Fourth Quarter Earnings Conference Call. Microsoft Investor Relations. 2026. Accessed 22 October 2026. Source ↗