Definitions

How computers for agents work, from the hardware to the sandbox.

Definitionsi

Inference

Inference is the process of running a trained machine learning model to produce outputs from new inputs.

Inference is the use of a trained model to produce an output, such as a prediction, a label or generated text. It follows training, the stage in which the model learns its weights. During inference the weights stay fixed. For a language model, inference turns an input prompt into output tokens, one token at a time.

Large models run inference on GPUs or other accelerators. These chips have thousands of simple cores suited to the parallel math that models use. Serving systems batch many requests together to keep the chips busy. The cost of inference for language models is usually measured and billed per input and output token.

Inference is the compute an AI agent consumes each time its model decides a next step. That compute runs on accelerator servers that are separate from the environment where the agent acts. The code the agent writes runs elsewhere, often in a sandbox on ordinary CPUs. An agent therefore uses two kinds of compute, inference for deciding and sandboxes for acting.