Skip to content

Inference is the use of a trained model to compute an output from new input without performing the model’s training update process.

For a language model, inference commonly means producing probability distributions and generated tokens from the current context.

Inference cost depends on model size, input length, output length, hardware, and serving strategy.