AI Terms Dictionary

A comprehensive multilingual AI terminology dictionary

Definition

Inference refers to the deployment stage where a finalized model is used to make decisions or predictions on unseen data. Unlike training, which updates weights, inference consumes computational resources to execute forward passes through the network. Optimizing inference is crucial for latency, cost, and scalability in production environments, often involving techniques like quantization, pruning, or batching to ensure efficient real-time performance.

Summary

The phase where a trained model processes new data to generate predictions or outputs.

Key Concepts

Use Cases

Code Example

1
2
3
4
5
import torch
model.eval()
with torch.no_grad():
    output = model(input_tensor)
    prediction = torch.argmax(output, dim=1)