RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Eruo Fredoline
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
Glossary / Core concepts & fields / Inference (logical)
Core concepts & fields

Inference (logical)

Inference is the process of running a trained model on input data to generate an output — the "forward pass" that produces predictions, text, or classifications. For local AI operators, inference is what happens when you send a prompt to a model and get a response. It contrasts with training, which updates model weights. Inference is the operational phase: the model is static, and the runtime (llama.cpp, Ollama, vLLM) loads the weights into VRAM and computes outputs token by token. Latency and throughput (tokens/sec) are the key metrics, constrained by VRAM, memory bandwidth, and quantization level.

Practical example

On an RTX 4090 (24 GB VRAM), running Llama 3.1 8B at Q4_K_M (~5 GB) achieves ~80 tok/s inference. The same model on an RTX 3060 (12 GB) might run at ~30 tok/s due to lower memory bandwidth. If VRAM is insufficient, the runtime offloads layers to system RAM, dropping speed to ~3-5 tok/s — the operator sees this as sluggish responses.

Workflow example

When you run ollama run llama3.1:8b and type a prompt, Ollama loads the model into VRAM (if available) and performs inference: it tokenizes the input, runs the forward pass through the transformer layers, and decodes tokens one at a time. The --num-gpu-layers flag in llama.cpp controls how many layers are offloaded to GPU — setting it too high with limited VRAM causes out-of-memory errors.

Reviewed by Eruo Fredoline. See our editorial policy.

Buyer guides
  • Best GPU for local AI →
  • Best laptop for local AI →
  • Best Mac for local AI →
When it doesn't work
  • CUDA out of memory →
  • Ollama running slowly →
  • ROCm not detected →