# Inference

> The Inference is the process of using a trained AI model to produce output for new input.

## What is inference in AI?

The process of running a trained model to get a result for new input, for example generating an answer to a prompt. Unlike training, it happens on every request, so its speed and cost matter most for applications.

- Topic: Basics
- Type: process

## Interview questions

### What is the difference between inference and training?

Training changes model weights using data. Inference only runs the trained model on new input, so it is cheaper per request but happens far more often.

### Why is LLM inference slow?

The model generates output one token at a time, and each token needs a pass through the network. Longer output means longer wait.

### Can I run inference without a GPU?

Yes, small or quantized models can run on a CPU, but large models are usually too slow without a GPU or other accelerator.

## Related cards

- [Training](https://wonderium.dev/ai/training.md)
- [Latency](https://wonderium.dev/ai/latency.md)
- [Token Cost](https://wonderium.dev/ai/token-cost.md)
- [Quantization](https://wonderium.dev/ai/quantization.md)
- [Local Model](https://wonderium.dev/ai/local-model.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/inference
- Last updated: 2026-11-25
