Glossary category

Inference and generation

What happens when a trained model turns context into an output under real runtime constraints.

What belongs here

Sampling, decoding, token budgets, caching, serving, and generation-time behavior.

What belongs elsewhere

Model training and the higher-level workflow that decides when a model should run.

Adjacent categories

Definitions in this category

stable

Beam search

A decoding algorithm that keeps a fixed number of high-scoring partial sequences while generating output.

Chain-of-thought prompting

Prompting a model to produce or use intermediate reasoning steps before an answer.

Continuous batching

An inference scheduling technique that adds and removes generation requests at iteration boundaries as capacity becomes available.

Few-shot prompting

Supplying a small set of worked examples in context to steer task behavior without updating model weights.

Greedy decoding

Generating each next token by selecting the current highest-probability candidate.

In-context learning

A model's ability to adapt behavior from instructions, examples, or patterns supplied within the current context without parameter updates.

Input token

A token supplied to a model for an inference call, including user content and any instructions, history, retrieved material, tool definitions, or other context assembled by the system.

KV cache

Stored attention keys and values from earlier tokens that an autoregressive transformer reuses instead of recomputing them for every new token.

Logit

An unnormalized score produced by a model before conversion into probabilities.

Maximum output tokens

A hard limit on how many tokens a model may generate in one response.

One-shot prompting

Supplying one worked example in context to demonstrate the desired task or output pattern.

Output token

A token generated by a model as part of its response, often metered separately from input tokens.

Prompt

Input supplied to a model to condition the output, including instructions, examples, context, and user data.

Prompt chaining

Connecting multiple model calls so one call's structured output becomes context or input for a later call.

Sampling

Selecting an output token from the probability distribution produced by a generative model.

Stop sequence

A configured token or text pattern that causes generation to terminate when produced.

Temperature

An inference setting that reshapes token probabilities, with higher values generally increasing variation and lower values concentrating choices.

Top-p sampling

A decoding method that samples only from the smallest set of candidate tokens whose cumulative probability reaches a chosen threshold.

Zero-shot learning

Performing a task or recognizing a category without task-specific labeled examples supplied for that use.