AI glossary

550 terms across 19 categories. 87 have full definitions today; the rest are cataloged and being written.

We focus depth on terms most relevant to running AI locally. Cloud-only and academic terms are listed for completeness but get less attention.

Core concepts & fields18 terms · 0 defined

Large language models55 terms · 20 defined

Large Language Model (LLM)
defined

A Large Language Model is a neural network with billions of parameters trained on massive text corpora to predict the ne

Quantization
defined

Quantization is the process of reducing a model's numeric precision to shrink its memory footprint with minimal quality

Inference
defined

Inference is the act of running a trained model to generate predictions, as opposed to training which produces the model

Prompt
stub
Retrieval-Augmented Generation (RAG)
defined

RAG is the pattern of retrieving relevant documents from a knowledge base and including them in the LLM's prompt so the

Hallucination
defined

Hallucination is when an LLM generates plausible-sounding but factually incorrect information — citing papers that don't

Prompt Engineering
defined

Prompt engineering is the practice of crafting model inputs to elicit better outputs without changing the model itself.

LoRA (Low-Rank Adaptation)
defined

LoRA is a parameter-efficient fine-tuning technique that adapts a large pre-trained model by training small low-rank mat

RLHF (Reinforcement Learning from Human Feedback)
stub
Fine-tuning
defined

Fine-tuning is continued training of a pre-trained model on a smaller, task-specific dataset. Pre-training builds genera

Embedding (Vector Embedding)
defined

An embedding is a fixed-length vector representation of text, image, or other input — typically 384-3072 dimensions — wh

Foundation Model
stub
Chain-of-Thought (CoT)
defined

Chain-of-thought prompting is asking a model to show its reasoning step-by-step before giving the final answer. It drama

Latency
defined

Latency measures how fast you get a response. Two metrics matter for local LLMs: Time to First Token TTFT — wall-clock

Vector Database
stub
Alignment
stub
GGUF
defined

GGUF GGML Unified Format is the file format used by llama.cpp and its ecosystem Ollama, KoboldCPP, LM Studio. A single f

Pre-training
stub
System Prompt
stub
Throughput
defined

Throughput measures how much work a system completes per unit time — typically tokens-per-second across all concurrent r

Instruction Tuning
stub
QLoRA
defined

QLoRA combines LoRA/glossary/lora fine-tuning with 4-bit quantization of the base model. Introduced by Tim Dettmers in 2

Semantic Search
stub
Direct Preference Optimization (DPO)
stub
Few-Shot Prompting
stub
In-Context Learning
stub
Jailbreak
stub
ORPO (Odds Ratio Preference Optimization)
stub
Prompt Injection
stub
Zero-Shot Prompting
stub
DoRA (Weight-Decomposed Low-Rank Adaptation)
stub
KV Cache Quantization
stub
Speculative Decoding
defined

Speculative decoding speeds up LLM inference by using a small fast "draft" model to propose the next several tokens, the

Distillation
stub
Guardrails
stub
Parameter-Efficient Fine-Tuning (PEFT)
stub
ReAct
stub
Red Teaming
stub
Chunked Prefill
stub
Dense Retrieval
defined

Dense retrieval finds documents by computing cosine similarity or dot product between learned vector embeddings of the q

Reranker (Cross-Encoder)
defined

A reranker is a cross-encoder model that scores query/document pairs jointly concatenated as input, producing a relevanc

Hybrid Retrieval
defined

Hybrid retrieval combines dense and sparse retrieval, typically by union-then-rerank or reciprocal rank fusion RRF. The

Constitutional AI
stub
Grounding
stub
Knowledge Distillation
stub
Proximal Policy Optimization (PPO)
stub
RLAIF (RL from AI Feedback)
stub
BM25 (Best Matching 25)
defined

BM25 is the canonical sparse-retrieval algorithm: a TF-IDF variant that saturates term frequency a token appearing 100 t

Adapter
stub
Pruning
stub
Sycophancy
stub
Tree of Thoughts
stub
Sparse Retrieval
defined

Sparse retrieval scores documents by lexical overlap with the query — high-dimensional vectors where most entries are ze

Catastrophic Forgetting
stub
Mode Collapse
stub

Transformer & LLM components43 terms · 18 defined

KV Cache
defined

The KV cache stores the key and value tensors from previous attention computations so the model doesn't recompute them a

Context Window
defined

The context window is the maximum number of tokens a model can attend to at once — both prompt and previously generated

Attention Mechanism
stub
Token
defined

A token is the smallest unit of text a language model processes. Most modern models use subword tokenization, where comm

Self-Attention
defined

Self-attention computes a weighted representation of every position in a sequence by comparing each token against every

Tokenization
defined

Tokenization is the process of converting text into the numeric tokens a model can process. Modern systems use subword t

Multi-Head Attention
stub
Multi-Head Latent Attention (MLA)
stub
Prefill (Prompt Processing)
defined

Prefill is the first phase of LLM inference: the model processes the entire prompt in a single parallel pass, building u

Decode (Token Generation)
defined

Decode is the second phase of LLM inference: generating one output token at a time, autoregressively. Each decode step d

Flash Attention
defined

Flash Attention is a memory-efficient implementation of the attention mechanism that reduces memory usage from On² to On

Sliding Window Attention (SWA)
stub
Temperature (sampling)
stub
Decoder
stub
Encoder
stub
Grouped-Query Attention (GQA)
stub
Rotary Position Embedding (RoPE)
stub
Multi-Query Attention (MQA)
stub
PagedAttention
defined

PagedAttention is the memory layout introduced by vLLM that stores the KV cache in fixed-size blocks pages, like virtual

Sampling (Decoding)
defined

Sampling is the process of converting model logits into output tokens. Common strategies: greedy temperature 0, random s

Byte Pair Encoding (BPE)
stub
Encoder-Decoder
stub
Top-p (Nucleus) Sampling
stub
Temperature 0 (Greedy Sampling)
defined

Temperature 0 disables sampling entirely — the model picks the highest-logit token at every step. Equivalent to greedy d

Cross-Attention
stub
Positional Encoding
stub
Softmax
stub
Top-k Sampling
stub
Deterministic Decoding
defined

Deterministic decoding means same prompt → same output, every time. Achieved by setting temperature to 0 always pick the

Beam Search
stub
Layer Normalization
stub
Logits
stub
Random Seed
defined

A random seed initializes the pseudo-random generator that drives sampling at temperature > 0. Same seed + same prompt +

RMSNorm
defined

RMSNorm is a simpler variant of LayerNorm that normalizes activations by their root-mean-square instead of their varianc

YaRN (Yet another RoPE eNlargement)
defined

YaRN is a context-extension method that modifies RoPE frequencies to let a model trained on, say, 8K context generalize

Greedy Decoding
stub
Residual Connection
stub
SentencePiece
stub
SwiGLU
defined

SwiGLU is a gated feed-forward activation: W1·x ⊙ swishW2·x · W3, replacing the standard MLP's GELU/ReLU in modern trans

WordPiece
stub
ALiBi (Attention with Linear Biases)
defined

ALiBi is a positional encoding scheme that biases attention scores by a linear function of token distance, instead of in

Mirostat Sampling
defined

Mirostat is a sampling algorithm that targets a fixed perplexity-like "surprise" level tau instead of a fixed top-p or t

Feed-Forward Network
stub

Generative AI23 terms · 0 defined

Notable models & companies18 terms · 0 defined

Natural language processing28 terms · 0 defined

Frameworks & tools40 terms · 9 defined

Ollama
stub
llama.cpp
stub
PyTorch
stub
vLLM
stub
Hugging Face Transformers
stub
LM Studio
stub
LangChain
stub
scikit-learn
stub
TensorFlow
stub
text-generation-webui (oobabooga)
stub
ExLlamaV2
stub
KoboldCpp
stub
LlamaIndex
stub
OpenCV
stub
Continuous Batching
defined

Continuous batching sometimes "iteration-level scheduling" is a serving optimization where new requests join the active

Hugging Face Text Generation Inference (TGI)
stub
Gradio
stub
JAX
stub
Keras
stub
MLC LLM
stub
SGLang
stub
Streamlit
stub
Prefix Caching
defined

Prefix caching stores the KV cache from previous requests so a new request that shares a prefix system prompt, few-shot

Request Batching
defined

Request batching packs multiple inference requests into a single forward pass to amortize the cost of loading model weig

MPS (Metal Performance Shaders)
defined

MPS is Apple's high-level Metal-based compute library, exposed in PyTorch as the mps device backend. Calling model.to"mp

Airflow
stub
MLflow
stub
Ray
stub
spaCy
stub
Triton Inference Server
stub
Weights & Biases
stub
FAISS
defined

FAISS Facebook AI Similarity Search is a C++/Python library for fast approximate nearest-neighbor search over dense vect

GGML
defined

GGML is the C/C++ tensor library that underlies llama.cpp, whisper.cpp, and the original GGUF format. It provides quanti

Vulkan Compute
defined

Vulkan compute is the cross-vendor GPU compute API from Khronos. llama.cpp ships a Vulkan backend that runs on AMD, Inte

NLTK
stub
TensorBoard
stub
DirectML
defined

DirectML is Microsoft's GPU-agnostic ML acceleration API, layered on DirectX 12. It works on any Windows-supported GPU —

Expert Parallelism
defined

Expert parallelism is a parallelism strategy specific to MoE models: each GPU holds a different subset of the experts, a

Kubeflow
stub
DVC
stub

Neural network architectures29 terms · 5 defined

Hardware & infrastructure39 terms · 10 defined

VRAM (Video RAM)
defined

VRAM is the dedicated memory on a GPU. For local AI, VRAM capacity is the single most important spec — it determines whi

GPU
stub
CUDA
defined

CUDA Compute Unified Device Architecture is NVIDIA's parallel-computing platform and the dominant API for GPU-accelerate

MLX (Apple)
defined

MLX is Apple's open-source array framework optimized for Apple Silicon. The Apple equivalent of PyTorch + CUDA, with fir

CPU Offload
stub
Edge AI
stub
Tensor Parallelism
defined

Tensor parallelism splits each transformer layer's weight matrices across multiple GPUs. Card 0 holds the first half of

VRAM Bandwidth
stub
ROCm (AMD)
defined

ROCm Radeon Open Compute is AMD's open-source equivalent of NVIDIA's CUDA. It's required for any meaningful AMD GPU infe

TPU (Tensor Processing Unit)
stub
Distributed Training
stub
Edge Computing
stub
FLOPS
stub
FP16
stub
NPU (Neural Processing Unit)
stub
On-Device AI
stub
GDDR7
defined

GDDR7 uses PAM3 signaling to push per-pin rates to 28–32 Gbps in first-gen products 2025, with a path to 40+ Gbps. RTX 5

Pipeline Parallelism
defined

Pipeline parallelism a.k.a. "layer split" in llama.cpp parlance puts whole layers on different GPUs. Card 0 handles laye

Unified Memory
defined

Unified memory is a memory architecture where CPU and GPU share the same physical RAM pool, eliminating CPU↔GPU copies.

BF16 (BFloat16)
stub
Data Parallelism
stub
DeepSpeed
stub
FP8
stub
HBM (High Bandwidth Memory)
stub
Mixed Precision
stub
NVLink
defined

NVLink is NVIDIA's proprietary GPU-to-GPU interconnect, used to bind multiple data-center GPUs into a coherent memory fa

ONNX
stub
Tensor Core
stub
TensorRT
stub
cuDNN
stub
FSDP (Fully Sharded Data Parallel)
stub
INT8
stub
Metal (Apple)
stub
Model Parallelism
stub
ZeRO optimizer
stub
NVSwitch
defined

NVSwitch is the crossbar that connects 8 or in NVL72, 72 GPUs into a single all-to-all NVLink fabric. Each GPU talks to

FP32
stub
INT4
stub
Vulkan compute
stub

Training & optimization44 terms · 9 defined

Q4_K_M Quantization
defined

Q4KM is the most-downloaded GGUF quantization on Hugging Face — the default tradeoff for local inference. It mixes 6-bit

AWQ
defined

AWQ Activation-aware Weight Quantization is a 4-bit quantization method designed for fast inference on NVIDIA GPUs. It's

Backpropagation
stub
Dropout
stub
Gradient Descent
stub
Overfitting
stub
Q5_K_M Quantization
defined

Q5KM is a mixed-precision GGUF quantization averaging ~5.7 bits per parameter. Attention and feed-forward weights use 6-

Q8_0 Quantization
defined

Q80 is llama.cpp's simplest 8-bit GGUF quantization: weights in INT8, one FP16 scale per 32-element block, no zero-point

Adam Optimizer
stub
Batch Normalization
stub
Hyperparameter
stub
Learning Rate
stub
Loss Function
stub
Stochastic Gradient Descent (SGD)
stub
GPTQ
defined

GPTQ Generative Pre-trained Transformer Quantization is a one-shot post-training quantization method that uses approxima

Q4_0 Quantization
defined

Q40 is the original llama.cpp 4-bit quantization: INT4 weights with one FP16 scale per 32-element block, no zero-point,

AdamW
stub
Batch Size
stub
Cross-Entropy Loss
stub
Hyperparameter Tuning
stub
Regularization
stub
EXL2
defined

EXL2 is the ExLlamaV2 quantization format. NVIDIA-only, single-stream-throughput-optimized. Allows fractional bit-rates

Bias-Variance Tradeoff
stub
Epoch
stub
HQQ (Half-Quadratic Quantization)
stub
L1 / L2 Regularization
stub
Mean Squared Error (MSE)
stub
Q3_K_M Quantization
defined

Q3KM is a 3-bit GGUF K-quant averaging ~3.9 bits per parameter. It's the smallest format that still produces usable outp

Underfitting
stub
Vanishing Gradient
stub
Early Stopping
stub
Exploding Gradient
stub
Gradient Clipping
stub
Learning Rate Schedule
stub
Weight Decay
stub
Checkpoint
stub
Grid Search
stub
KL Divergence
stub
Mini-Batch
stub
Warmup
stub
Bayesian Optimization
stub
Momentum
stub
Q2_K Quantization
defined

Q2K is 2-bit GGUF quantization averaging ~3.0 bits per parameter with mandatory 4-bit scales and importance metadata. It

RMSprop
stub

Computer vision24 terms · 0 defined

Agents & agentic AI18 terms · 5 defined

Evaluation metrics27 terms · 5 defined

Learning paradigms23 terms · 0 defined

Ethics, safety & society23 terms · 1 defined

Specialized domains21 terms · 0 defined

Data & datasets34 terms · 0 defined

Classical ML algorithms27 terms · 0 defined

MLOps & deployment16 terms · 5 defined

Missing a term?

The glossary grows when we find gaps.

If you searched for an AI term and we don't have a definition, email Contact support with the term. We prioritize terms that are practical for running AI locally over purely academic ones, but we'll consider any reasonable suggestion.