Large Language Model (LLM)

From PRIMO.ai
Jump to navigation Jump to search

YouTube ... Quora ...Google search ...Google News ...Bing News


A Large Language Model (LLM) is a neural network trained to model patterns in language and other encoded information. It can generate text, interpret instructions, write code, and help analyze material supplied to it. Most widely used generative LLMs learn through token prediction during pretraining, followed by additional training that shapes instruction following, reasoning, and tool use. Their learned parameters aren't a searchable, continuously updated copy of the internet.

The field has expanded from conversational answers toward applications that produce documents, analyze files, operate software, and complete multi-step work. Recent model releases improve combinations of reasoning, vision, speed, and token efficiency. The practical result depends on more than the model: an application supplies context, retrieval, tools, permissions, execution environments, and ways to verify the outcome. Two apps using the same model can therefore behave very differently.

Choose an LLM around the task and the evidence needed to judge success. A fast model may be enough for routine extraction, while complex work may benefit from more reasoning and explicit verification. Large context windows don't guarantee that every detail will be used correctly, and access to a tool doesn't prove an action succeeded. Evaluate the complete workflow on representative inputs, including mistakes, missing evidence, and recovery from failed actions.

Research and model review: November 23, 2026. Names below are dated examples, not a permanent ranking. Model availability, modalities, context limits, pricing, licensing, and app features depend on the exact version, endpoint, plan, region, and rollout.

🧠 Explore large language models
Recent models, longer workflows, context management, and evaluation.
Research, coding, shared project work, file tasks, and local inference.
Training, generation, and the difference between a model and an app.
A dated snapshot with links to primary release information.
Text, images, audio, video, and application-specific support.
Checkable answers, verification, time, and cost.
Context, retrieval, tools, and parameter updates.
Hardware, memory, deployment, and data routing.
Accuracy, access, reliability, cost, and actual outcomes.
Choose a large label to jump directly to its section. Existing branches A–G remain below.

Current Advances and Practical Impacts

Model improvements increasingly target finished work. OpenAI's November 17 release notes introduce GPT-6.2 Astra and Sol for reasoning, coding, and professional workflows, with text and image input and text output. Google announced Gemini 4 Carbon, Hydrogen, and Neon in November, offering different tradeoffs for complex work and execution speed. Anthropic's November 9 Fable 5.2 and Mythos 5.2 announcement emphasizes technical work and improved coding, reasoning, and vision. These are vendor-reported advances; compare the actual model and application on your task rather than treating a release announcement as independent proof of superiority. OpenAI model release notes · Gemini 4 Neon · Claude Fable and Mythos 5.2

Model access and application features are different releases. DeepSeek's November 13 application APIs add managed web search, file input, and URL reading around inference. QwenCloud's November notes describe Qwen4-Max's tool calling and structured outputs, with deployment scope specified separately. This can reduce the work needed to build a research or document application, but it also changes where retrieval, parsing, and context assembly occur. Test extraction quality, citations, and access rules rather than assuming that enabling a tool makes its results reliable. DeepSeek changelog · QwenCloud model releases

Long workflows require selective context. Anthropic's context-engineering guidance describes loading information as needed, compacting history, and retaining notes outside the immediate context window. These methods complement longer windows: they help carry decisions and task state forward while reducing irrelevant material. Summaries can lose qualifications, so preserve links to original evidence and distinguish an unverified plan from a completed action. A persistent project store or memory feature is part of the application; it doesn't mean the underlying model learned new weights from the conversation. Context engineering for agents

Open weights offer control with deployment obligations. Mistral's current Large 4 documentation describes a multimodal mixture-of-experts model with downloadable weights under a named Mistral license. Such releases expand self-hosting choices, but open weights aren't automatically unrestricted open-source software, and a large sparse model doesn't fit in memory merely because only some parameters activate per token. Check the specific license, required weights, runtime, quantization, context memory, and connected services. Mistral Large 4 documentation

Evaluation must keep pace with capability. METR's November 20, 2026 update says models have saturated its older TH1.1 suite and discusses changes to capability measurement. Its task sets primarily concern software, machine learning, and cybersecurity, and the update identifies substantial uncertainty about broader implications. A task-completion time horizon measures difficulty using human reference time; it isn't the time an agent ran unattended or a guarantee about every task of that duration. Use current evaluation methods and your own acceptance tests rather than extrapolating an old trend into universal workplace reliability. METR November capability update · Time-horizon methodology and limitations

Current Applications and Workflows

The model supplies capabilities, while the app determines which sources, tools, files, and actions are available. The examples below show different ways those pieces are being packaged. Availability can vary within a single product family.

App or interface Example application Practical impact and check
ChatGPT Work and Codex Research a topic, analyze source files, produce a report or spreadsheet, or implement and test a software change. Moves from an answer toward a deliverable. Check the active environment, connected sources, file output, tests, and permissions. ChatGPT release notes
ChatGPT Space Create shared pages and presentations that collaborators can revise, with connected tools supporting scheduled updates where available. Helps keep project outputs together. The November 20 rollout notes require eligible account access and viewing permission; shared Space pages aren't public links. Space rollout
Claude task workflows, including Cowork Work across selected files and tools to organize material, synthesize research, or create formatted outputs. Cloud sessions can persist across devices. Local file, browser, and computer access have separate requirements; check the current interface and organization controls. Claude Cowork guidance
Gemini app, Google AI Studio, and Antigravity Use supported Gemini models for analysis, coding, and software or knowledge-work tasks. Different surfaces expose different capabilities and access. Google's November releases distinguish model tiers and rollout destinations; confirm the selected model and tools in the actual app. Gemini 4 Hydrogen · Gemini 4 Neon
DeepSeek application APIs Build a document or research assistant using managed search, URL reading, and file input alongside inference. Reduces custom integration work. Verify parsed evidence, source links, regional processing, and failure behavior. DeepSeek application API updates
LM Studio and a downloaded model Chat with local documents or expose a local model server for another application. Supports offline inference and document processing once required files are downloaded. External tools and connectors need their own data-flow review. LM Studio offline operation

Set Your Constraints

Next question: Which constraint is tightest?

  • Data must stay inside your organization: Evaluate a self-hosted workflow (branch F) and its tools, or an approved deployment with the required processing location. Zero data retention alone doesn't mean data stays inside your organization.
  • Lowest cost per task: Use small or "flash" tiers, prompt caching, and routing (branch A and branch E).
  • Highest accuracy on hard problems: Use a frontier reasoning model with tools (branch C).
  • Lowest latency: Use a small model, a non-thinking mode, or a local model.
  • Freedom to modify and redistribute: Choose permissively licensed open weights, such as models released under Apache 2.0 or MIT (Sharing).

Checkpoint: Before choosing anything, write down the task, how you will measure success, a set of real examples to test with, how sensitive the data is, and your budget per task. These answers rule out most unsuitable options before you spend time on experiments.

How Large Language Models Work

🧩 A model is one part of the working system
Model
Learned parameters generate responses from the supplied input. Exact capabilities depend on the model and configuration.
Context and retrieval
Instructions, files, conversation state, and retrieved evidence tell the model what matters for this task.
Tools and execution
APIs, code, databases, or a browser perform operations outside generation, within the available permissions.
Verification and delivery
Tests, source checks, actual application state, and artifact review establish what was accomplished.
A fluent answer, a requested tool call, and a verified result are three different things.


An LLM learns by playing a simple game billions of times: given a stretch of text, predict the next token. During pretraining the model reads a passage, assigns a probability to every token in its vocabulary for the next position, and is penalized according to how little probability it gave the token that actually came next, a measure called cross-entropy loss. In symbols, training minimizes the average of -log P(next token, given all previous tokens) across the training data, and backpropagation with gradient descent nudges every weight to reduce that loss, while a falling loss curve tracks progress. Because the correct answer is simply the next piece of real text, no human labeling is needed, which is why models can learn from trillions of tokens. To predict well across that much text, a model must absorb grammar, facts, styles, and patterns of reasoning, and those internal representations are what later make it useful for tasks it was never explicitly trained on.

Most current LLMs are decoder-only Transformers. Input text is split into tokens, each token is mapped to an embedding vector, and the vectors pass through dozens of identical layers, each combining self-attention, which lets every token draw information from earlier tokens, with a feedforward network that transforms each position independently. A final layer and a softmax function turn the last vector into a probability distribution over the vocabulary, and the model generates text autoregressively by sampling one token, appending it, and repeating. Attention cost grows with the square of the sequence length, so engineers use a cache of earlier attention results (the KV cache), sparse attention patterns, and alternative designs such as state space models like Mamba to handle long inputs. Many frontier models also use mixture-of-experts layers, which route each token to a few specialist subnetworks so that only a fraction of the total parameters is active for any token. Researchers are also testing alternatives to one-token-at-a-time generation, such as diffusion language models and Next-Concept Modeling, which generate many positions in parallel.

Capability has grown largely through scale. In 2020 OpenAI researchers reported smooth power-law relationships between a model's loss and its parameter count, dataset size, and training compute, and in 2022 DeepMind's Chinchilla study refined those scaling laws by showing that many models were undertrained for their size. A useful approximation is that training compute C ≈ 6 × N × D floating-point operations, where N is the number of parameters and D the number of training tokens; Chinchilla found that compute-optimal training uses roughly 20 tokens per parameter, and its 70-billion-parameter model, trained on 1.4 trillion tokens, outperformed the 280-billion-parameter Gopher. Developers now often train smaller models on far more tokens than that ratio suggests, because a smaller model is cheaper to serve to millions of users. Scaling continues, but the supply of high-quality human-written text is finite, so labs increasingly rely on curated datasets, synthetic data, reinforcement learning, and extra computation at inference time.

A pretrained model is a powerful text predictor but not yet a helpful assistant, so post-training reshapes its behavior. Supervised instruction tuning trains on example prompts paired with good responses, and RLHF then has people rank alternative answers, trains a reward model on those preferences, and optimizes the LLM against it, originally with proximal policy optimization (PPO). OpenAI's InstructGPT work (2022) found that labelers preferred answers from a 1.3-billion-parameter instruction-tuned model over those of the 175-billion-parameter GPT-3, which shows how much post-training changes usefulness. Later methods such as direct preference optimization (DPO) simplify preference learning, Anthropic's Constitutional AI uses written principles and AI feedback in place of some human labels, and reinforcement learning with verifiable rewards trains models on math and coding problems whose answers can be checked automatically (see C. Reasoning Models).

At inference time an LLM's behavior depends on its prompt and its decoding settings. A higher temperature makes sampling more random and varied, while a lower temperature favors the most likely tokens, and supplying instructions or worked examples in the prompt enables few-shot learning without changing any weights. The same machinery explains hallucinations, fluent statements that are false: a 2025 analysis by OpenAI researchers argues that pretraining makes some errors statistically inevitable for rarely seen facts and that common benchmarks reward confident guessing over admitting uncertainty. Researchers in interpretability are opening the black box with tools such as sparse autoencoders that identify meaningful features inside a model's activations, but no one can yet fully explain why a large model produces a particular answer. Whether new abilities appear suddenly with scale, a phenomenon called emergence, also remains debated, since some apparent jumps reflect how benchmarks are scored.

LLM Token / Parameter / Weight

YouTube ... Quora ... Google search ... Google News ... Bing News

In the context of a large language model, a token is the basic unit of text the model reads and writes, usually a word, part of a word, a punctuation mark, or a number. Parameters are the numerical values that define the behavior of the model; they are adjusted during training to optimize the model's ability to generate relevant and coherent text. Weights are the most common kind of parameter: they define the strength of connections between units in different layers and determine how the model transforms and relates tokens. Together these three ideas answer most practical questions about an LLM, from what a request costs (tokens) to how much memory a model needs (parameters) to what a company actually releases when it shares a model (weights).

Token

Tokens measure encoded input and generated output, and many services use them for billing. A model's context capacity, maximum input, maximum output, and any reasoning-token budget are related but distinct limits. Their accounting depends on the model and endpoint. A large advertised window doesn't establish accurate use of every passage, so test retrieval and synthesis on representative documents and keep irrelevant material out of context. See D. Adapt a Model and the current model snapshot for practical choices.

Parameter

A parameter is a numerical value, learned during training, that defines how a model transforms its input. In an LLM the parameters are almost entirely the weights and related values in the embedding, attention, feedforward, and normalization layers, and their total count is the usual measure of model size, from 1.5 billion for GPT-2 to 175 billion for GPT-3 and well over a trillion for some current mixture-of-experts models. Parameters should not be confused with hyperparameters, such as the learning rate, the number of layers, or the context length, which engineers choose before training rather than the model learning them. In mixture-of-experts models the difference between total and active parameters matters: DeepSeek-V4-Pro has 1.6 trillion parameters in total but activates only about 49 billion for each token, which keeps computation per token closer to that of a much smaller dense model.

Parameter count largely determines the hardware a model needs. Each parameter stored at 16-bit precision occupies two bytes, so a 70-billion-parameter model needs about 140 GB just to hold its weights, before adding memory for the KV cache, which grows with context length. Quantization stores weights at lower precision, such as 8 or 4 bits, which cuts memory roughly in proportion (to about 35 to 40 GB for a 70B model at 4 bits) at the cost of some accuracy, and this is how large open models run on workstations and laptops (see F. Run LLMs Locally). More parameters generally mean more capacity, but training data, training method, and post-training now matter as much as size, which is why small models such as Microsoft's Phi family can rival much larger predecessors on reasoning benchmarks.

Weight

A weight is a type of parameter that defines the strength of a connection between units in successive layers of the network. Weights are adjusted during training to optimize the model's ability to learn relationships between tokens, but individual weights rarely correspond to individual words or ideas: knowledge in an LLM is distributed across many weights, and a token such as "the" is represented by a vector of hundreds or thousands of numbers rather than by one dedicated neuron. In a Transformer-based LLM, weights fall into a few main groups:

  • Embedding weights: These weights map each token in the vocabulary to a vector that represents its meaning and usage; many models reuse the same matrix to convert final vectors back into token probabilities.
  • Self-attention weights: These weights produce the query, key, and value vectors that determine how strongly each token draws on the other tokens within a sequence.
  • Feedforward weights: These weights form the multilayer network inside each Transformer block that computes the layer's output for every position, and they hold much of the model's stored knowledge; in mixture-of-experts models they are divided among the experts.
  • Normalization weights: Small sets of scaling values in layer normalization or RMSNorm keep activations in a stable range as signals pass through dozens of layers.
  • Bias weights: Bias terms are added to the outputs of various layers to shift their activations; GPT-2 and BERT use them throughout, while many recent models, including the LLaMA family, omit most biases to simplify training.

Sharing

Sharing "weights" means distributing the learned parameters of a trained model so that others can run, study, or adapt it without repeating the original training. During training these weights are adjusted step by step, with a learning rate (a hyperparameter that controls the size of each update) setting the pace, L1 and L2 regularization adding a penalty based on the size of the weights to prevent overfitting, and pruning sometimes removing weights that have minimal impact on the output. When Meta shared the weights of the original LLaMA model in February 2023, it provided all of these learned values, including the embedding, self-attention, feedforward, normalization, and bias weights, initially to approved researchers. The weights leaked publicly about a week later, and the episode helped launch a wave of open-weight development.

Open weights are not the same as open source. Most releases provide the weights and inference code under a license but not the training data or the full training pipeline, and licenses range from permissive terms such as Apache 2.0 and MIT, used for OpenAI's gpt-oss models (August 2025), many of Alibaba's Qwen models, and DeepSeek's recent releases, to custom community licenses with usage restrictions, such as Meta's Llama licenses. Open weights let organizations run models on their own infrastructure, fine-tune them, and inspect them, but they also let anyone strip out safety training, which is one reason developers sometimes withhold their most capable models: Meta kept its April 2026 Muse Spark model proprietary, and Anthropic restricts its Claude Mythos tier to vetted organizations. By 2026 many of the most capable open-weight models came from Chinese developers such as DeepSeek, Alibaba, and Moonshot AI, while the open source community continued to debate what a truly open model should include.

A. Choose a Model

Question: What matters most for your task?

Next question: How will you confirm the choice?

  • Shortlisting: Use public leaderboards and LLM benchmarks to narrow the field, remembering that popular benchmarks saturate quickly and can leak into training data.
  • Deciding: Run two or three candidates on 50 to 200 real examples from your own work, scored against agreed criteria (see model evaluation).
  • Operating: Re-run the same test set whenever you change models, prompts, or providers, because vendors update and retire models frequently.

Checkpoint: Record the model version, price per million input and output tokens, context window, data-retention terms, and license for each candidate before you commit.

Choosing an LLM in 2026 means choosing among families and tiers rather than among single models. Each major developer offers a flagship for the hardest work alongside faster, cheaper tiers, and the gap between tiers often matters more than the gap between companies: OpenAI's GPT-6 Sol and Luna, released in September 2026, cost half as much through the API as their GPT-5.6 predecessors, and Anthropic's Opus 5.5 lowered output pricing to $20 per million tokens. The 2026 Stanford AI Index found the top U.S. and Chinese models nearly tied on the community-run Arena leaderboard, with Anthropic, xAI (Grok), Google, and OpenAI clustered at the top and DeepSeek and Alibaba close behind. Because the leading developers no longer disclose parameter counts, training data, or training code, buyers have to evaluate models on their own tasks rather than on published specifications.

Benchmarks help but need careful reading. According to MIT Technology Review's summary of the AI Index, top scores on SWE-bench Verified, a software engineering test, rose from about 60 percent in 2024 to near the ceiling in 2025, and one popular math benchmark was found to have a 42 percent error rate, so a high score can reflect saturation, flawed test items, or contamination from training data. METR's task-completion time horizon offers a different lens: it measures the length of tasks, in human expert time, that an AI agent can finish with a given reliability, and its January 2026 update estimated that this horizon has doubled roughly every four months since 2023. For most organizations the decisive evidence is a private test set drawn from their own documents and workflows, scored by people who know what a good answer looks like (see G. Risks, Evaluation, and Governance).

Current Model Families

This snapshot was checked on November 23, 2026. It lists examples, not every model or an overall winner. A product name can refer to a family, an app, a moving API alias, or a fixed snapshot; record the exact model and configuration used in an evaluation. Historical models remain in the catalog below for reference.

Developer Current examples Access and deployment distinction What to verify
OpenAI GPT-6.2 Astra and Sol, released to the API November 17, 2026. Hosted models; OpenAI separately offers the gpt-oss open-weight family. The 6.2 notes specify text and image input with text output. Don't assume every app exposes the same tools or modalities. Release notes
Google Gemini 4 Carbon, Hydrogen, and Neon, with November 2026 releases. Hosted Gemini family; Gemma is a separate open-model family. Context capacity, reasoning settings, app availability, and output limits. Neon's advertised one-million-token window is a context specification, not a promise of one million output tokens. Neon · Hydrogen
Anthropic Claude Fable 5.2 and Mythos 5.2; Opus, Sonnet, and Haiku 5.5 tiers. Hosted models. The November announcement distinguishes Fable safeguards and vetted access to Mythos. Match model tier to task complexity, access conditions, and workload cost. Release announcement
DeepSeek V4.1 Flash and continued V4 Pro API service described in the September 10 update. Distinguish hosted API versions, app features, and separately released model weights. Moving aliases, snapshot dates, vision support, and API retirements. API changelog
Alibaba / Qwen Qwen4-Max released November 16; subsequent rollout notes specify deployment scopes. Qwen includes hosted models and separately licensed open-weight releases; a family name doesn't establish a particular model's license. Model ID, region, modality support, tool calling, and structured-output behavior. QwenCloud model releases
Mistral Mistral Large 4, with current documentation marking general availability and open weights. The documented release uses the Mistral Ecosystem Open Weight License v26.10. License obligations, hardware requirements, vision support, and runtime compatibility. Model documentation

For Meta, Llama, and other families, use their dedicated pages and current model cards alongside this snapshot. Open-weight, permissively licensed, and open-source describe different properties and shouldn't be used interchangeably.

Model Catalog

A Large Language Model (LLM) is a type of machine learning model that uses deep learning algorithms to process and generate language. Trained on large amounts of data, it learns language patterns well enough to translate texts, answer questions, write code, or respond in chatbot conversations, and most LLMs are general-purpose models rather than systems built for one specific task. Some, however, were specialized for a domain such as biomedicine (BioGPT, Med-PaLM), finance (BloombergGPT), or a particular language (Cedille for French), and the catalog below records these alongside general models, with parameter counts where they were published. Models can be accessed through an API, through cloud platforms such as Bedrock and Vertex AI, or, for open-weight models, by downloading them from repositories such as Hugging Face; the list emphasizes the 2019 to 2024 period, when developers still routinely disclosed model sizes, and the Current Model Families table covers newer flagships.

Inside language models (from GPT-3 to PaLM) | Alan-D-Thompson ... PaLM

B. Multimodal Models

Question: Which kinds of input and output do you need?

Checkpoint: Test with your real inputs, such as low-resolution scans, handwriting, or noisy audio, because multimodal accuracy can drop sharply on material unlike the vendor's demonstrations.

Large Multimodal Models (LMM), also called Multimodal Language Models (MLM) or Multimodal Large Language Models (MLLM), are a type of Large Language Model (LLM) that combines text with other kinds of information, such as images, videos, audio, and other sensory data. Handling several modalities allows these models to solve some of the problems of text-only LLMs, such as describing a photo, reading a chart, answering spoken questions, or following the events in a video, and unlocks applications that were impossible with text-only models. Most frontier models are now multimodal by default, so the practical question is which modalities a model handles well rather than whether it handles them at all. What you need to know about multimodal language models | Ben Dickson - TechTalks

Early multimodal systems connected separately trained parts: a pretrained image encoder translated pictures into vectors, and a small adapter fed those vectors into a frozen language model, the approach behind Salesforce's BLIP-2 and DeepMind's Flamingo. Native multimodal architectures instead train one network on mixed sequences of text, image, and audio tokens from the start, an approach Google adopted for Gemini in December 2023 and OpenAI for GPT-4o in May 2024, which let a single model respond to speech in roughly the time a person takes to reply. Meta's Llama 4 (April 2025) and Alibaba's Qwen 3.5 (February 2026) brought native multimodality to open-weight models. The same ideas extend to action: models such as PaLM-E treat robot sensor readings as another input language, a line of work that continues in vision-language-action models for robotics.

  • GPT-4 | OpenAI ... (March 2023) can accept prompts of both text and images. This means that it can take images as well as text as input, giving it the ability to describe the humor in unusual images, summarize text from screenshots, and answer exam questions that contain diagrams. OpenAI has not disclosed its parameter count; widely repeated figures of one trillion or more parameters are unconfirmed estimates.
  • GPT-4o | OpenAI ... (May 2024) an "omni" model trained end to end across text, vision, and audio, so a single network can see, hear, and speak in real time.
  • Kosmos-1 | Microsoft ... can perceive general modalities, learn in context (i.e., few-shot), and follow instructions (i.e., zero-shot). It can analyze images for content, solve visual puzzles, perform visual text recognition, and pass visual IQ tests. 1.6B
  • PaLM-E | Google ... an Embodied Multimodal Language Model that directly incorporates real-world continuous sensor modalities into language models and thereby establishes the link between words and percepts. It was developed by Google to be a model for robotics and can solve a variety of tasks on multiple types of robots and for multiple modalities (images, robot states, and neural scene representations). PaLM-E is also a generally-capable vision-and-language model. It can perform visual tasks, such as describing images, detecting objects, or classifying scenes, and is also proficient at language tasks, like quoting poetry, solving math equations or generating code. 562B
  • Gemini | Google ... a family of models trained to be natively multimodal from the start, introduced in December 2023 and able to reason across text, images, audio, video, and code. The name is not an acronym. Gemini 1.5 (2024) introduced a context window of one million tokens and Gemini 4 Argon followed in October 2026, while Google has not disclosed the size of the models' training data.
  • Llama 4 | Meta ... (April 2025) natively multimodal open-weight mixture-of-experts models; Llama 4 Scout (17B active, 109B total parameters) advertises a 10-million-token context window.
  • Multimodal-CoT (Multimodal Chain-of-Thought Reasoning) GitHub ... incorporates language (text) and vision (images) modalities into a two-stage framework that separates rationale generation and answer inference. Under 1B
  • BLIP-2 | Salesforce Research ... a generic and efficient pre-training strategy that bootstraps vision-language pre-training from off-the-shelf frozen pre-trained image encoders and frozen large language models. It achieves state-of-the-art performance on various vision-language tasks, despite having significantly fewer trainable parameters than existing methods.
  • Qwen 3.5 | Alibaba ... (February 2026) open-weight family designed as native multimodal agent models that handle text and images in one network.

Multimodal Machine Learning | Introduction | Part 1 | CVPR 2022 Tutorial
Part 1 of the CVPR 2022 tutorial introducing multimodal machine learning.

C. Reasoning Models and Test-Time Compute

⚖️ Spend effort where a result can be checked
Routine task
Try a fast model for a bounded extraction, rewrite, or classification with clear criteria.
Harder problem
Increase reasoning effort when the task benefits from exploring alternatives or resolving dependencies.
External verification
Use tests, calculations, source evidence, or a reproducible experiment to check the answer.
Stop or escalate
Set cost and time limits. If evidence remains insufficient, flag uncertainty or request human judgment.
Longer reasoning and repeated self-review aren't independent proof of correctness.


Question: Does your task reward careful, step-by-step work?

Checkpoint: Verify final answers independently, with tests, calculations, or sources, rather than trusting a reasoning trace because it looks thorough.

Reasoning models spend additional computation at inference time, generating long chains of intermediate steps before giving a final answer. The idea grew out of chain-of-thought prompting (2022), which showed that asking a model to work step by step improves accuracy on arithmetic and logic problems, and it became a product category when OpenAI released o1 in September 2024. These models are trained with reinforcement learning on problems whose answers can be verified automatically, such as math with known solutions or code with unit tests, so the model learns which lines of reasoning lead to correct results; related research on process supervision rewards correct intermediate steps as well as final answers. Performance then scales along a second dial besides model size: letting the model think longer, sample several candidate solutions, or search among alternatives.

Research since 2024 has placed increased attention on how large models use additional computation during training and inference, especially for tasks with verifiable answers. The 2025 DeepSeek-R1 research showed that reinforcement-learning-based post-training can strengthen performance on mathematics, coding, and other reasoning benchmarks, and a peer-reviewed report appeared in Nature in September 2025. Its findings concern particular architectures, training procedures, and evaluation settings; they do not prove that generating a longer reasoning trace always makes an answer more trustworthy. Readers should compare the original paper, released implementation details, later replications, and evidence of failure on tasks outside the measured domains.

Many current model families expose effort settings or thinking modes, but support varies by endpoint and application. Extra computation can help with difficult, checkable tasks and can also add cost or produce unhelpful elaboration. METR's November 2026 update changes the interpretation of its older task suite, so earlier time-horizon estimates should be read as dated measurements rather than current limits. Reasoning traces aren't necessarily faithful explanations, and benchmark gains don't establish reliability on every open-ended judgment. METR capability update

D. Adapt a Model to Your Data and Task

🗂️ Four ways to give an LLM what the task needs
Supply context
Include instructions and examples in the request. This changes the current input, not the model weights.
Retrieve evidence
Select relevant material from maintained sources and retain citations, dates, and access rules.
Use a tool
Run a calculation, inspect a file, query a system, or perform an authorized action. Check the returned state.
Update parameters
Fine-tune or train to change learned behavior. Evaluate regressions and maintain the adapted version.
These approaches can be combined. Fine-tuning isn't a substitute for keeping facts current.


Question: What is the model missing?

Next question: How will you know the adaptation helped?

  • Compare against a baseline: Score the adapted system and the unmodified model on the same test set, and track both accuracy and cost per task.
  • Measure retrieval separately: In a RAG system, check whether the right passages were retrieved, because no model can answer correctly from the wrong evidence.

Checkpoint: Try prompting first, add retrieval when the gap is missing knowledge, and fine-tune only when the gap is behavior that prompts and retrieval cannot fix. Prompting vs AI Model Fine-Tuning vs AI Embeddings compares these options in more detail.

Most organizations do not need to train an LLM; they need to connect a capable model to their own knowledge and workflows. Retrieval-augmented generation, introduced by Facebook AI researchers in 2020, splits documents into passages, converts them into embeddings, stores them in a vector database, and at query time retrieves the most relevant passages and places them in the prompt, so that answers can draw on current, private, and citable sources. RAG reduces but does not eliminate hallucination, and its quality depends on document preparation, on retrieval accuracy (often improved by combining keyword search with semantic search and reranking the results), and on instructions that tell the model to answer only from the supplied text. Larger context windows make retrieval unnecessary for some small document sets, but for large or frequently changing collections retrieval remains cheaper, faster, and easier to keep current.

Fine-tuning, a form of transfer learning, changes a model's weights by training it further on examples of the desired behavior. Full fine-tuning of a large model is expensive, so most teams use parameter-efficient methods such as LoRA (low-rank adaptation, 2021), which freezes the original weights and trains small add-on matrices, and QLoRA (2023), which does the same on a 4-bit quantized model and made it possible to fine-tune a 65-billion-parameter model on a single 48 GB GPU. Fine-tuning works best for teaching format, tone, and specialized skills from hundreds to thousands of high-quality examples; it is a poor way to add facts that change, and careless fine-tuning can erode a model's general abilities or its safety behavior. Distillation, in which a small student model learns to imitate a larger teacher's outputs, is how many compact models acquire their reasoning skills.

E. Multi-step Multi-model Approach

Question: What should the system of models do?

Checkpoint: Start with the simplest pipeline that works, log every step, and add autonomy only where measured results justify the added cost, latency, and risk.

The Multi-step Multi-model Approach with Large Language Models (LLMs) refers to the use of several LLM calls, often involving different models and tools, in sequence or in parallel to tackle complex tasks that a single prompt handles poorly. Researchers call these compound AI systems: a router may send easy questions to a small model and hard ones to a reasoning model, one model may draft while another critiques (as in the Self-Refine framework of 2023), or an agent may plan, search, write code, run it, and revise based on the results. Properly implemented, such systems can outperform any single model and lower costs, but each added step brings computational and deployment costs, extra latency, and new ways to fail, and errors can compound when one step's output becomes the next step's input. Standards such as the Model Context Protocol (MCP), which Anthropic introduced in November 2024 and donated to the Linux Foundation's new Agentic AI Foundation in December 2025, make it easier to connect models to tools and data sources consistently.

Building a multi-step system follows the same discipline as any software project, with extra attention to evaluation because model outputs vary from run to run. Teams rarely pretrain models of their own for this purpose; instead they select existing models, connect them, and measure the combined behavior. In practice, the following steps are generally involved:

  • Decomposition: Break the task into steps, such as retrieve, analyze, draft, and check, and decide which steps need a model, which need a tool or ordinary code, and which need human review.
  • Model Selection: Choose a set of diverse LLMs that are well-suited to each step. Different LLMs excel in different aspects of language understanding, so a pipeline might pair a small, fast model for classification and extraction with a reasoning model for planning and a specialized model for code or images.
  • Adaptation: Use prompts, retrieval, or fine-tuning to adapt each model to its step (see D. Adapt a Model). Pretraining a model yourself is rarely necessary, because capable pretrained models are widely available.
  • Orchestration: Connect the steps with code or a framework. Steps can run sequentially, where the output of one model becomes the input to the next, in parallel, or under the control of an agent that decides what to do next, and ensembles that combine several models' answers by averaging, voting, or a judge model can improve reliability.
  • Model Evaluation and Refinement: Evaluate the performance of the whole pipeline, and of each step, using appropriate metrics and test sets. Inspect logs of failures and refine prompts, routing, or individual models where errors occur.

Benefits and trade-offs of the Multi-step Multi-model Approach:

  • Enhanced Language Understanding: By leveraging multiple LLMs, you can benefit from their diverse capabilities and obtain a more comprehensive understanding of the language context.
  • Improved Generation Quality: When generating responses or text, a well-designed combination of models can produce more coherent, accurate, and contextually appropriate outputs, especially when one model checks another.
  • Flexibility and Adaptability: The approach can be adapted to a wide range of language processing tasks, making it a versatile solution.
  • Lower Cost at Scale: Routing routine requests to small models can cut costs substantially while reserving expensive models for the hardest cases.
  • Trade-offs: Each step adds latency and cost, failures can cascade from one step to the next, and agents with access to tools can take harmful actions if manipulated, so permissions, monitoring, and human approval for consequential actions are essential (see G. Risks, Evaluation, and Governance).

F. Run LLMs Locally

Question: Why do you want a model on your own hardware?

Next question: Which models fit in your memory?

  • 8 GB: small models of up to about 7 billion parameters at 4-bit precision, with short contexts.
  • 16 GB: models of up to roughly 14 billion parameters, or efficient mixture-of-experts models such as gpt-oss-20b, which OpenAI designed to run within 16 GB.
  • 32 to 64 GB: models of about 30 to 70 billion parameters at 4-bit precision, including mixture-of-experts models such as Qwen3.6-35B-A3B.
  • 80 GB or more: large open models such as gpt-oss-120b, which fits on a single 80 GB GPU.

Checkpoint: Leave headroom for the context (the KV cache) and your other applications, and compare a local model's answers with a cloud model's on your own test set before relying on it.

Running an LLM locally means downloading open weights and performing inference on your own computer or servers, which can support offline operation after the required files are downloaded. Whether information leaves the device also depends on retrieval, connectors, external tools, telemetry, and server configuration. The enabling technologies are efficient inference engines, chiefly the open-source llama.cpp project and Apple's MLX framework, and quantized model files, usually in the GGUF format, that shrink weights to 4 to 8 bits with modest loss of quality. A rough sizing rule is memory ≈ parameters × bits per weight ÷ 8, plus 10 to 20 percent overhead and room for the context, so a 4-bit 30-billion-parameter model needs roughly 17 to 20 GB. Apple Silicon Macs are popular for local inference because their unified memory lets the GPU use most of the system RAM, while PCs rely on the dedicated video memory (VRAM) of NVIDIA or AMD graphics cards and fall back to slower CPU inference for layers that do not fit.

Local models trade some capability for control. The best open models of 2026 approach the frontier, but the ones that fit on a laptop remain noticeably weaker than flagship cloud models at complex reasoning, long documents, and agentic work, and their speed depends heavily on hardware. Popular tools differ mainly in their interface: LM Studio offers a graphical desktop app, Ollama a command-line tool and background service favored by developers, and llama.cpp the underlying engine with the most configuration options, and all three can expose an OpenAI-compatible local API so that existing applications can switch to a local model by changing a single address. Licenses still apply to downloaded weights, so check whether a model's terms permit your intended commercial use.

LM Studio: Discover, download, and run local LLMs

LM Studio is a free desktop application for discovering, downloading, and experimenting with local and open-weight Large Language Models (LLMs) on Mac, Windows, and Linux. It provides an easy-to-use chat interface built on the llama.cpp and MLX inference engines, searches Hugging Face for GGUF and MLX model files, and can serve loaded models through a local OpenAI-compatible API (by default at localhost:1234) for use by other programs. Since July 2025 LM Studio has been free for use at work as well as at home, and version 0.3.17 (June 2025) added support for connecting models to tools through the Model Context Protocol. The application itself is closed source, although the engines it builds on are open source. To download and install LM Studio, follow these steps:

1. Download LM Studio:

  • Visit the LM Studio website at lmstudio.ai.
  • Download the LM Studio desktop app for your platform: macOS, Windows, or Linux (distributed as an AppImage).
  • Models are downloaded separately and range from about one gigabyte to more than 100 GB, so check your free disk space and internet speed before choosing large ones.

2. Choose a Model:

  • After launching LM Studio, search for a model in the Discover section, which lists GGUF builds (and MLX builds on Apple Silicon) from Hugging Face.
  • Popular choices in 2026 include OpenAI's gpt-oss-20b, Google's Gemma models, Alibaba's Qwen models, Mistral models, and small distilled versions of DeepSeek reasoning models; earlier options such as Zephyr-7B and Mixtral 8x7B remain available.
  • LM Studio estimates whether each download will fit in your memory; choose a quantization level (such as Q4_K_M) that leaves headroom for the context.

3. Run LLMs Locally:

  • Once you have chosen and downloaded a model, load it and start chatting; you can also attach documents for local retrieval.
  • Enable GPU acceleration (offloading model layers to the GPU) if your hardware supports it, and adjust the context length to balance memory use and capability.
  • To use the model from other software, start the local server in the Developer section or with the lms command-line tool (for example, lms server start).

System Requirements: Ensure your system meets LM Studio's current requirements:

  • Mac: Apple Silicon (M1 or newer) with macOS 14.0 or newer; Intel Macs are not supported. 16 GB+ of RAM is recommended, although 8 GB Macs can run smaller models with modest context sizes.
  • Windows: x64 processor supporting AVX2, or ARM (Snapdragon X Elite); 16 GB+ of RAM recommended, and at least 4 GB of dedicated VRAM recommended for GPU acceleration.
  • Linux: x64 or ARM64 (aarch64), distributed as an AppImage; Ubuntu 20.04 or newer.
  • NVIDIA/AMD GPUs are supported.

Run ANY Open-Source Model LOCALLY (LM Studio Tutorial)
Matthew Berman shows how to run open-source models locally with LM Studio.

G. Risks, Evaluation, and Governance

🔍 Evaluate the outcome, not only the generated words
Answer quality
Check factual support, calculations, coverage, and whether uncertainty is stated appropriately.
Action reliability
Verify the intended change, unrelated state, retries, and recovery after interruption.
Access and data flow
Check what the model, tools, logs, memory, and other users can actually see or change.
Cost per accepted result
Include reasoning, retrieval, tools, retries, human review, and delivery time.
Run the same representative cases before and after a model, prompt, tool, or runtime change.

Question: What could go wrong in your use of an LLM?

Checkpoint: Before launch, document the intended use, red-team the system with adversarial inputs, define which actions need human approval, and set up monitoring with a fixed regression test set.

LLM training sources and disclosure practices vary. Risks arise from the data, the model, and the way the complete application is deployed. Open-weight models add particular concerns because safety training can be removed once weights are public, while proprietary models concentrate risk in a few providers whose systems users cannot inspect. Some of the main risk factors associated with LLMs are:

  • Bias and toxicity: LLMs can reflect and amplify the social biases and harmful language that exist in their training data, such as discrimination, exclusion, stereotypes, and hate speech. This can cause unfairness, offense, and harm to certain groups or individuals.
  • Hallucination and misinformation: LLMs can produce false or misleading information that can confuse or deceive users, such as inaccurate facts, invented citations, bad advice, or fake news, often in fluent and confident language. This can affect the quality and trustworthiness of information and influence users' decisions and actions.
  • Privacy and security: LLMs can leak or infer private or sensitive information from their training data or from user inputs, such as personal details, passwords, and intellectual property. This can compromise the confidentiality and integrity of the data and expose it to malicious actors.
  • Prompt injection and excessive agency: Instructions hidden in content that a model reads, such as a web page, email, or document, can hijack its behavior, and the damage grows when the model can send messages, run code, or move money. The OWASP Top 10 for LLM Applications ranks prompt injection as the leading risk.
  • Malicious uses: LLMs can be used by adversaries to cause harm or disruption, such as spreading disinformation, creating scams or frauds, generating malicious code, or seeking help with weapons. This can threaten the security and stability of individuals, organizations, and society.
  • Human-computer interaction harms: LLMs can affect the psychological and social well-being of users who interact with them, for example by creating unrealistic expectations, encouraging overreliance, flattering users instead of correcting them (sycophancy), reducing critical thinking, or diminishing human agency. This can affect users' identity, autonomy, and relationships.

Hallucination and prompt injection are the two risks most practitioners meet first. A 2025 analysis by OpenAI researchers argued that hallucinations persist partly because training and grading reward guessing: a model that says "I don't know" scores zero on most benchmarks, while a confident guess is sometimes right, so evaluations should give credit for appropriate expressions of uncertainty. Prompt injection is harder still, because an LLM cannot reliably distinguish instructions from data that merely contains instructions, and indirect attacks, systematically demonstrated by security researchers in 2023, hide commands in content that a model retrieves on its own. Defenses combine input and output filtering, separating trusted from untrusted content, limiting the tools and permissions an agent has, and requiring human confirmation for consequential actions, but none of them is complete.

As systems gain tools, the relevant safety boundary includes the application and execution environment. Model access can be staged or restricted, as Anthropic's Fable and Mythos announcement illustrates, but a vendor safeguard doesn't replace least-privilege tools, explicit action scope, and verification of the resulting state. Training-data quality also remains important: the effects of synthetic data depend on its selection, validation, diversity, and how it is mixed with other evidence. Avoid treating all synthetic data as equally useful or equally harmful. Anthropic release and safeguard distinctions

Governance should document the intended use, accountable owner, data sources, model and tool versions, evaluation results, and response to failures. Applicable obligations depend on jurisdiction, use case, role, and current rules; use the linked governance and regulation pages rather than treating this model overview as a fixed legal timetable. Keep a regression suite and monitor real-world errors. A reference answer can also become outdated, so review the test data as well as the model.


Life or death isn’t an issue at Morgan Stanley, but producing highly accurate responses to financial and investing questions is important to the firm, its clients, and its regulators. The answers provided by the system were carefully evaluated by human reviewers before it was released to any users. Then it was piloted for several months by 300 financial advisors. As its primary approach to ongoing evaluation, Morgan Stanley has a set of 400 “golden questions” to which the correct answers are known. Every time any change is made to the system, employees test it with the golden questions to see if there has been any “regression,” or less accurate answers. - How to Train Generative AI Using Your Company’s Data | Tom Davenport & Maryam Alavi - Harvard Business Review

Risks of Large Language Models (LLM)
IBM explains the risks of large language models.

Recent Developments

Selected changes checked for this revision. These are release or evaluation milestones, not directly comparable capability scores.

Date Development and significance
November 20, 2026 METR publishes a capability-evaluation update explaining limitations of older task-horizon measurements and changes to its approach. Primary report
November 18, 2026 Google announces Gemini 4 Neon, following Carbon and Hydrogen earlier in November. Announcement
November 17, 2026 OpenAI introduces GPT-6.2 Astra and Sol in the API. Product rollout is a separate availability question. Release notes
November 16, 2026 QwenCloud lists Qwen4-Max, following its preview; later entries specify deployment scope. Release log
November 13, 2026 DeepSeek exposes application features such as search, file input, and URL reading through its APIs. Release log
November 9, 2026 Anthropic announces Fable 5.2 and Mythos 5.2 with distinct access and safeguard arrangements. Announcement

LLM Project Completion Check

An LLM isn't required for every language task; a rules-based system, a search engine, or a small classifier is sometimes cheaper and more reliable. Use an LLM where its flexibility justifies its cost and uncertainty, keep people responsible for consequential decisions, and revisit your choice as models and prices change. Writing down the answers to the questions below makes your reasoning clear to colleagues, auditors, and users. For any project that uses a large language model, describe:

  1. The task, the people who will use the system, and how success will be measured.
  2. The branch you followed and the model or models you chose, with versions and prices.
  3. How the model gets the knowledge it needs: prompting, retrieval, fine-tuning, or tools.
  4. The test set you used to compare options, and the results.
  5. The risks you identified, such as hallucination, prompt injection, privacy, and bias, and the controls you applied.
  6. Which actions require human approval, and how the system will be monitored after launch.

Background

Language modeling, the task of predicting the next word in a sequence, is decades old and has long been central to natural language processing. Statistical n-gram models powered early speech recognition and machine translation, and neural approaches arrived with word embeddings such as Word2Vec (2013) and with recurrent networks and LSTMs that read text one token at a time. The 2017 paper "Attention Is All You Need" introduced the Transformer, whose attention mechanism processes whole sequences in parallel and made far larger training runs practical. In 2018 Google's BERT and OpenAI's first GPT showed that a model pretrained on unlabeled text could be adapted to many tasks, and GPT-3 (2020), with 175 billion parameters, showed that a large enough model could perform new tasks from a few examples in its prompt, a behavior called in-context learning.



A large language model is, at its core, a system trained to predict the next token, scaled until that one skill becomes general-purpose writing, coding, and reasoning. Getting value from one now depends less on raw size than on matching the model's capability, context, cost, openness, and safeguards to the task, and then verifying what it produces.




ChatGPT, released in November 2022, turned these research advances into a mass-market product by adding instruction tuning and reinforcement learning from human feedback to a GPT model. Progress since then has come in waves: multimodal models such as GPT-4 and Gemini (2023) that accept images; open-weight families such as LLaMA, Mistral, Qwen, and DeepSeek that anyone can download; reasoning models (2024 to 2025) that spend extra computation thinking before they answer; and agentic systems (2025 to 2026) that use tools, write and run code, and operate computers for hours at a time. By November 2026 the leading families included OpenAI's GPT-6, Google's Gemini 4, Anthropic's Claude Opus 5.5 and Fable 5.2, and DeepSeek V4, and one-million-token context windows had become common at the frontier. At the same time, the largest developers have stopped publishing parameter counts, dataset sizes, and training code, so outsiders increasingly judge models by their measured behavior rather than by their specifications.

LLMs differ from conventional software, and from traditional machine learning, in two important ways. Their behavior is specified largely in natural language, through instructions and examples, rather than through code or task-specific training, and their outputs are probabilistic, so the same question can produce different answers, including confident errors. This page is organized as a decision tree: start with what you need to do, follow the branch to the relevant explanations and tools, and use each checkpoint to test your choice before you rely on it. The foundational sections on how LLMs work and on tokens, parameters, and weights support every branch.


One of the more interesting, but seemingly academic, concerns of the new era of AI sucking up everything on the web was that AIs will eventually start to absorb other AI-generated content and regurgitate it in a self-reinforcing loop. Not so academic after all, it appears, because Bing just did it! When asked, it produced verbatim a COVID-19 conspiracy coaxed out of ChatGPT by disinformation researchers just last month. AI is eating itself: Bing’s AI quotes COVID disinfo sourced from ChatGPT | Devin Coldewey, Frederic Lardinois - TechCrunch




Additional Viewing

In this two-hour tutorial (February 2024), Andrej Karpathy, a founding member of OpenAI, builds the byte-pair encoding tokenizer used by GPT models from scratch and shows how tokenization causes many odd LLM behaviors, from spelling mistakes to weaker performance in some languages. It is a hands-on supplement to the Token section and its discussion of vocabularies and token counts. YouTube

Transformers, the tech behind LLMs | Deep Learning Chapter 5
3Blue1Brown visually explains how transformers, the architecture behind large language models, work. 3Blue1Brown's 27-minute visual explanation (April 2024) walks through how text becomes embedding vectors, how data flows through the layers of a Transformer, and how the final layer turns a vector into next-token probabilities. Its animations clarify the architecture described in How Large Language Models Work and the weight groups listed under Weight. YouTube

Andrej Karpathy's practical guide (February 2025, about 2 hours 11 minutes) demonstrates how he chooses among ChatGPT and other assistants, when he turns to reasoning models, and how tools such as web search, code execution, and file uploads change what a model can do. It complements A. Choose a Model and D. Adapt a Model with concrete, everyday examples of matching models and features to tasks. YouTube

Token Fraud

Token fraud: What it is, how to stop it Claire Vo walks you through a problem that has cost her tens of thousands of dollars over the past year and eaten almost all of my engineering energy: token fraud. YouTube

Resources