Models and training

Large language model (LLM)

A large language model is an AI model trained on very large amounts of text to predict the next word, which lets it write, summarise, translate, classify and answer questions in natural language.

A large language model, or LLM, is the engine behind most of the AI products businesses buy today: chat assistants, support bots, document summarisers, email drafters and coding assistants. It is a statistical model of language. Given some text, it predicts what text should come next, and that one ability, scaled up, turns out to cover a surprising range of office work. For a buyer, the important point is that an LLM is a component, not a product. Almost every AI build wraps one in data, instructions, checks and integrations.

How it works

An LLM is a transformer network trained on a very large body of text. Text is broken into tokens, and during training the model adjusts billions of internal numbers (its weights) to get better at predicting the next token. After this pre-training, most commercial models are tuned further with instruction data and human feedback so they follow requests politely and refuse harmful ones.

At run time, called inference, the model reads a prompt plus any documents placed in its context window and generates a reply one token at a time. Nothing is looked up by default: the model answers from patterns learned in training, which is why it can state false things fluently, a failure known as hallucination.

A typical business build calls a hosted LLM through an API. A support tool, for example, sends the customer's message, the relevant help articles and a set of rules to the model, then checks the reply before it is shown.

What it means for cost

The model itself is rarely the expensive part of a build. Most of the budget goes into the work around it: getting the right data to the model, writing and testing instructions, handling errors, connecting to existing systems and proving the output is good enough. Choices about the model still matter:

  • Which model. Larger models are more capable and cost more per request; smaller ones are cheaper and faster but need more careful prompting.
  • Hosted or self-hosted. Calling a provider's API is the quickest start. Running an open-weight model on your own servers adds infrastructure work but can suit strict data rules.
  • Volume. Running costs scale with how much text goes in and out, so long documents and chatty workflows add up.

Ask a builder which model they plan to use, why, and how easily it can be swapped later.

Common questions

Is an LLM the same as ChatGPT?

No. ChatGPT is a product built on top of LLMs made by OpenAI. The same kind of model is available from several providers through APIs, and businesses usually build their own tools on those APIs rather than on the consumer chat product.

Does an LLM learn from my data as I use it?

Not by default. A deployed model's weights stay fixed; it only sees your data within each request. Whether a provider may keep or train on that data depends on its terms and your account settings, which is worth checking before sending anything sensitive.

Do I need to train my own LLM?

Almost never. Training a model from scratch is a research-scale undertaking. Business builds use an existing model and adapt it with instructions, retrieved documents or, occasionally, fine-tuning.

Related terms

Pricing a build that involves Large language model? Send the brief and get a fixed price set next to the market range.Get a quote