When people talk about ChatGPT, Claude, Gemini or Le Chat, they are usually talking about an application. Underneath each one sits a large language model, or LLM. Knowing roughly how such a model works helps you use it well, judge its answers and decide where your company’s data should go.
This guide explains the idea in plain words: what an LLM is, how it is trained, what “parameters” and “context window” mean, the difference between open and closed models, where models run and what they cannot do.
What is a large language model?
A large language model is software trained on a very large amount of text to do one thing: predict which piece of text is most likely to come next. Repeat that prediction thousands of times and you get an email, a summary, a translation or a piece of code.
“Large” refers to two things: the amount of text used for training (a large share of the public web, books, code and other documents) and the size of the model itself, measured in parameters.
An LLM is a form of generative AI, because it produces new content rather than just sorting or scoring existing content. It is also a product of machine learning: nobody writes its rules by hand, it learns them from examples.
Tokens and next-word prediction
A model doesn’t read letters or whole sentences. It splits text into tokens: small pieces that can be a whole word, part of a word or a single character. “Unbelievable” might become “un”, “believ” and “able”. Google’s machine learning course describes it the same way: a token can be a word, a subword or a character.
When you type a question, the model:
- turns your text into tokens;
- calculates, for every possible next token, how likely it is to follow;
- picks one (usually among the most likely, with a little randomness);
- adds it to the text and starts again, until the answer is complete.
That is why the same question can produce slightly different answers, and why the model writes so fluently: it has seen how billions of sentences continue. It is also why fluency is no guarantee of truth. The model produces what is likely, not what it has checked.
How a language model is trained
Training usually happens in two main stages.
Pre-training: learning from a mountain of text
In the first stage, the model reads an enormous collection of text and keeps trying to guess the next token. Each time it is wrong, its internal numbers are adjusted slightly. After billions of such corrections, it has absorbed grammar, style, facts, reasoning patterns and also the errors and biases contained in its training text.
This stage needs huge computing power. Apertus, the Swiss model presented by EPFL, ETH Zurich and the Swiss National Supercomputing Centre (CSCS) in September 2025, was trained on the Alps supercomputer using about 15 trillion tokens in more than 1,000 languages, according to EPFL.
Fine-tuning and human feedback: learning to be useful
A pre-trained model is good at continuing text, but not necessarily at answering a request. In a second stage, it is fine-tuned on examples of good answers, then improved with human feedback: people compare several answers and rank them, and the model is adjusted to prefer the kind of answer people judged better.
OpenAI described this approach in 2022 with its InstructGPT models. Its finding: a model trained with human feedback was preferred by evaluators over a much larger model without it. This stage is also where providers teach models to refuse some requests and to follow a particular tone.
Parameters and context window, in plain words
Two terms come up in almost every model description.
- Parameters are the internal numbers the model adjusted during training. Think of them as the settings on a giant mixing desk. More parameters generally mean a more capable model, but also one that needs more memory and computing power to run. Apertus, for example, exists in a version with 8 billion parameters and another with 70 billion.
- The context window is the amount of text the model can take into account at once: your question, the documents you paste in, the earlier conversation and its own answer, all counted in tokens. If a conversation or a document goes beyond it, the oldest or extra parts are left out, and the model can “forget” what was said at the start.
A bigger model or a longer context window is not automatically better for your task. A smaller model is often faster, cheaper and easier to host in Switzerland or on your own server.
Open and closed models
Not all models are distributed the same way. The difference matters for cost, control and data protection.
Closed models
The provider keeps the model to itself. You can only use it through its app or its programming interface (API), on the provider’s servers or those of its cloud partners. The best-known chat assistants mostly run on closed models. They are often among the most capable, but you depend on the provider’s terms and on where it processes data.
Open-weight models
The provider publishes the model’s weights (its parameters), so anyone can download it and run it on their own hardware. Examples:
- Mistral: the French company publishes several of its models under the Apache 2.0 licence, alongside commercial models that are not downloadable.
- Llama: Meta publishes the weights of its Llama models under its own licence, which sets conditions of use.
- Apertus: the model by EPFL, ETH Zurich and CSCS goes further. According to EPFL, its architecture, weights, training data and training recipes are all published and documented, under a permissive licence that allows research and commercial use.
“Open-weight” and “open source” are not always the same thing. Many open-weight models publish the finished model but not the data it learned from. Always read the licence before using a model in a product.
Where language models run, and why it matters for your data
Every time you send a prompt, your text travels to wherever the model runs. There are three broad options.
- The provider’s cloud. The simplest option. Your data is processed on the provider’s servers, often outside Switzerland. Business plans usually offer better contractual guarantees than free consumer accounts.
- Hosting in Switzerland. Some Swiss providers run models in Swiss data centres. Swisscom, for instance, offers Apertus to its business customers through its Swiss AI platform. Our guide to Swiss hosting for AI models explains what to check.
- Your own servers. With an open-weight model, data never leaves your premises. Tools such as Ollama make this possible on a single computer for smaller models.
In Switzerland, the Federal Act on Data Protection (FADP) applies as soon as personal data is involved. The Federal Data Protection and Information Commissioner (FDPIC) has stated that current law applies directly to AI-supported processing. In practice: know where data goes, limit it to what is needed, and have a data processing agreement with the provider. Our guide on ChatGPT at work and data protection goes into more detail.
The limits of language models
LLMs are useful, but they have built-in weaknesses that every user should know.
Hallucinations
A model can produce a false statement with total confidence: an invented quotation, a non-existent legal article, a wrong figure. OpenAI explained in September 2025 that standard training and evaluation methods reward guessing over admitting uncertainty, so models learn to produce an answer rather than say “I don’t know”. Hallucinations can be reduced, but not eliminated. Our guide to AI hallucinations explains how to spot and limit them.
Knowledge cut-off
A model only knows what was in its training data, which ends at a given date, often months before its release. It knows nothing about what happened afterwards unless the application adds a web search or your own documents. Answers about recent prices, laws or events must therefore be checked.
Other limits
- Bias: the model reflects the imbalances in its training text, including the dominance of English.
- Calculation and precise logic: models can make mistakes with numbers; for exact figures, a spreadsheet or calculator remains more reliable.
- No memory of your company: the model knows nothing about your clients, prices or procedures unless you give it that information, for example through your own documents.
How to choose a language model for your company
There is no single best model. A few questions help narrow the choice.
- What is the task? Drafting emails, summarising long documents, translating between French, German and Italian, writing code: models differ by task. Our overview which model for which job compares them.
- How sensitive is the data? For public or anonymised content, a cloud service may be enough. For client files, health or personnel data, consider Swiss hosting or your own server.
- Which languages? Test the model in the languages your teams and clients actually use, including Swiss specifics.
- What control do you need? An open-weight model gives independence from a single provider; a closed model often gives top performance with less technical effort.
- Who checks the output? Whatever the model, plan for a person to review anything that goes to a client or into a decision.
The AI models section presents the main models available at the time of writing (December 2026), and the guide on how to write a prompt helps you get better answers from whichever one you choose.
In short
A large language model is a text-prediction engine trained on a vast amount of writing, then refined to follow instructions. It writes fluently but does not check facts, and its knowledge stops at a given date. The most practical decision for a company is less about which model is “best” and more about where it runs, which data it sees and who reviews what it produces.