Complete LLM Glossary

Phase 1 · Document 09 · LLM Vocabulary and Mental Models Prev: 08 — Business and Pricing Terms · Up: Phase 1 Index

All terms in one place. Use as a reference and self-test. Return to this after completing each phase.


How to Use This Glossary

  • Production-critical terms must be known cold; important terms matter for intermediate work; deep/specialized terms can wait until relevant.
  • This glossary is the index; the deep treatment of each cluster lives in the Phase 1 documents below. When a term is unfamiliar, read its home document for the full 15-section treatment (why it matters, mental model, lab, decision framework).
DomainHome document
Core mental model, token loop, the Six Laws00 — Core Mental Model
Tokens, tokenizer, vocabulary, context window01 — Tokenization and Context
Parameters, weights, checkpoints, dense/MoE, precision02 — Parameters, Weights, and Checkpoints
Sampling/generation parameters03 — Inference Parameters
Model families, variants, capabilities (tools, embeddings, multimodal)04 — Model Capabilities
Prefill/decode, KV cache, batching, TTFT/TPOT, throughput05 — Serving Terms
GGUF/safetensors, quantization, runtimes, hardware/memory06 — Local Model Terms
Benchmarks, evals, golden sets, LLM-as-judge, pass@k07 — Evaluation Terms
Providers, routing, pricing, limits, unit economics08 — Business and Pricing Terms

This glossary is organized by domain. Cross-reference with phase documents for full explanations and labs.


A. Core Model Terms

TermSimple meaningTechnical meaningPhase
LLMLarge Language ModelA transformer-based neural network trained on text to predict/generate tokens1
Foundation modelPre-trained base modelA large model trained on broad data, usable for many tasks with or without fine-tuning1
Generative modelText-producing modelA model that generates new content by sampling from a learned distribution1
Base modelUntrained-for-chat modelA model trained on raw text prediction only; not yet fine-tuned for instruction following1
Instruct modelChat-ready modelA base model fine-tuned with SFT+RLHF/DPO to follow instructions1
Chat modelConversational modelA model fine-tuned for multi-turn dialogue1
Reasoning modelExtended-thinking modelA model trained to generate internal chain-of-thought before answering2
Multimodal modelText + image/audio modelA model that accepts multiple input modalities1
Embedding modelText → vector modelA model that converts text into a dense vector for similarity search9
RerankerRelevance scorerA model that scores (query, document) pairs for ranking, used after initial retrieval9
Vision modelImage-understanding modelA model that processes images as input1
Audio modelSound-processing modelA model that processes audio input1
Speech-to-textTranscription modelConverts speech audio to text1
Text-to-speechTTS modelConverts text to audio1

B. Architecture Terms

TermSimple meaningTechnical meaningPhase
TransformerThe core architectureSelf-attention + feedforward layers stacked N times2
Parameters/WeightsLearned numbersFloating-point values updated during training; define model behavior1
CheckpointSaved model stateA snapshot of weights at a point in training1
Dense modelAll-neurons-active modelAll parameters are used for every token2
MoE modelSparse modelMixture-of-Experts: only a subset of "expert" layers activate per token2
Active parametersMoE active countParameters actually used per token (smaller than total in MoE)2
Total parametersFull model sizeAll parameters, including inactive experts in MoE2
Model familySeries of related modelsE.g., Llama 3, Gemma, Qwen — models sharing architecture/training1
Model variantSize/use-case versionE.g., Llama-3-8B, Llama-3-70B, Llama-3-8B-Instruct1
ArchitectureModel designConfiguration: layers, heads, hidden dim, FFN size, attention type2
Embedding layerText → vectorsConverts token IDs into high-dimensional float vectors2
AttentionContext-aware weightingMechanism for tokens to attend to each other across the sequence2
Multi-head attentionParallel attentionMultiple attention heads running in parallel, each attending differently2
Self-attentionToken-to-token attentionTokens attend to all other tokens in the same sequence2
Feed-forward networkPer-token transformationTwo-layer MLP applied to each token position independently2
Layer normNormalizationStabilizes activations; applied before or after attention/FFN2
Residual connectionSkip connectionAdds input to output of each sublayer; prevents vanishing gradients2
RoPERotary position encodingRelative positional encoding used by Llama, Gemma, Qwen2
ALiBiAttention with linear biasesAlternative positional encoding that extrapolates to longer sequences2
FlashAttentionFast attention kernelMemory-efficient CUDA kernel for attention computation7

C. Inference and Generation Terms

TermSimple meaningTechnical meaningPhase
TokenText unitSubword unit from BPE/SentencePiece vocabulary1
TokenizerText splitterMaps string → token IDs using a vocabulary1
VocabularyToken dictionaryThe full set of tokens the model knows1
Token IDInteger indexIndex into the vocabulary and embedding table1
PromptYour inputAll text sent to the model as input1
CompletionModel outputThe generated text returned by the model1
Chat completionMulti-turn formatAPI endpoint that accepts a messages array1
System messageModel instructionFirst message setting model behavior and persona1
User messageUser inputThe human turn in the conversation1
Assistant messageModel outputThe model turn in the conversation1
Context windowMax input sizeMax tokens (input + output) in one call1
Max input tokensPrompt size limitHard limit on prompt length1
Max output tokensResponse size limitHard limit on generated length1
Input tokensTokens sentTokens in the prompt/context1
Output tokensTokens generatedTokens produced by the model1
Cached input tokensReused prompt tokensInput tokens served from KV cache; may cost less7
Reasoning tokensHidden thinking tokensInternal chain-of-thought tokens; billed but not returned2
AutoregressiveOne-token-at-a-timeGenerating tokens sequentially, each depending on previous2
PrefillPrompt processing phaseProcessing all input tokens to build KV cache2
DecodeGeneration phaseGenerating output tokens one at a time2
KV cacheAttention memoryStored key/value vectors from previous tokens; avoids recomputation2
PagedAttentionVirtual memory for KV cacheManages KV cache in non-contiguous memory pages7
Continuous batchingDynamic request batchingAdds new requests to a running batch as slots free up7
Chunked prefillSplit prefillProcesses long prompts in chunks to reduce batch stalls7
Prefix cachingShared prompt cachingReuses KV cache for identical prompt prefixes7
Speculative decodingDraft-then-verifyUse small model to draft tokens; large model verifies in parallel6
MTPMulti-Token PredictionExtension of speculative decoding predicting multiple tokens at once6
Draft modelSmall fast modelThe model that proposes candidate tokens for speculation6
Acceptance rateSpeculation success rateFraction of draft tokens accepted by the verifier6
Greedy decodingAlways-pick-bestSelect highest probability token at every step; temperature=01
Beam searchMulti-path searchMaintain k candidate sequences; pick highest overall probability1
StreamingToken-by-token outputReturn generated tokens as they're produced via SSE1
Structured outputSchema-constrained outputForce output to conform to a JSON schema1
JSON modeValid JSON outputConstrain model to produce syntactically valid JSON1
Tool callingModel-requested toolsModel emits a structured call to an external tool; app executes10
Function callingSame as tool callingOpenAI's original term for tool calling10
Stop sequenceGeneration stopperString that halts generation when encountered1

D. Generation Parameters

TermSimple meaningTechnical meaning
temperatureRandomness controlDivides logits before softmax; 0=deterministic
top_pProbability poolSample from tokens covering top-p cumulative probability
top_kCount poolSample from top-k highest probability tokens
min_pProbability floorExclude tokens below min_p × max_token_probability
repetition_penaltyRepeat reducerPenalizes tokens based on prior occurrence (local models)
presence_penaltyDiversity boosterPenalizes tokens that appeared at all
frequency_penaltyRepetition reducerPenalizes tokens proportional to frequency
max_tokensOutput length capHard limit on generated tokens
seedReproducibilityRNG seed for deterministic sampling
logprobsToken probabilitiesLog-probabilities of each output token

E. Performance and Serving Terms

TermSimple meaningTechnical meaning
TTFTTime to first tokenLatency from request to first generated token; measures prefill speed
TPOTTime per output tokenLatency between consecutive generated tokens; measures decode speed
ThroughputRequests per secondHow many requests/tokens the server can handle per second
LatencyResponse timeTotal time from request to complete response
Tokens/secondGeneration speedHow fast the server generates output tokens
ConcurrencyParallel requestsNumber of simultaneous requests handled
Batch sizeRequests per batchNumber of requests processed together
Tensor parallelismMulti-GPU splittingSplit model across GPUs on layer dimension
Pipeline parallelismMulti-GPU stagesSplit model across GPUs by layer groups
Data parallelismMulti-GPU replicationReplicate model on multiple GPUs for throughput

F. Model File and Local Inference Terms

TermSimple meaningTechnical meaning
GGUFLocal model formatQuantized model format for llama.cpp; single file
safetensorsSafe weight formatHuggingFace format for storing tensors safely
PyTorch checkpointTraining save format.pt/.bin files; PyTorch's native format
ONNXCross-framework formatOpen Neural Network Exchange; portable model format
TensorRTNVIDIA optimized formatNVIDIA's compiled, optimized model format
llama.cppCPU/GPU inference engineC++ inference library for GGUF models
llama-serverHTTP server for llama.cppOpenAI-compatible HTTP server using llama.cpp
OllamaLocal model runnerEasy-to-use local model server with model registry
LM StudioGUI local runnerDesktop app for running local models
MLXApple Silicon inferenceApple's ML framework optimized for Apple Silicon
vLLMHigh-throughput serverPython serving library with PagedAttention
SGLangStructured generation serverFast inference with structured output support
TensorRT-LLMNVIDIA serving libraryNVIDIA's optimized serving library
TGIHuggingFace serverText Generation Inference by HuggingFace
OpenAI-compatible APIStandardized APIREST API matching OpenAI's /v1/chat/completions format

G. Hardware and Quantization Terms

TermSimple meaningTechnical meaning
RAMSystem memoryCPU-accessible memory; used for CPU inference
VRAMGPU memoryGPU-accessible memory; used for GPU inference
Unified memoryShared CPU/GPU memoryApple Silicon: CPU and GPU share the same memory pool
CUDANVIDIA GPU programmingNVIDIA's parallel computing platform
ROCmAMD GPU programmingAMD's equivalent to CUDA
MetalApple GPU programmingApple's GPU compute framework
BF1616-bit brain floatTraining-friendly 16-bit format; good range, lower precision
FP1616-bit floatHalf precision; common inference format
FP88-bit floatEmerging format; supported on H100+
INT88-bit integer8-bit quantization; ~2x memory reduction
INT4 / 4-bit4-bit integer~4x memory reduction; quality tradeoff
QuantizationWeight compressionReducing weight precision to save memory and speed inference
GPTQPost-training quantGPU-optimized post-training quantization
AWQActivation-aware quantPreserves important weights more carefully than GPTQ
QATQuantization-aware trainingTraining with quantization simulation; higher quality
Memory headroomSafety bufferAdditional free memory needed beyond model size for KV cache and ops

H. Business and Provider Terms

TermSimple meaningTechnical meaning
ProviderModel hostA company or service that serves the model via API
LabModel creatorThe organization that trained the model
AggregatorMulti-provider routerA service that routes to multiple providers (OpenRouter)
GatewayInternal routing layerA proxy that adds auth, routing, metering, and policy
ProxyPass-through serverA server that forwards requests with added functionality
BYOKBring Your Own KeyUsing your own API keys instead of the platform's
Rate limitRequest speed capMaximum requests per minute/hour
QuotaUsage allowanceTotal tokens or requests allowed in a period
FallbackBackup modelA secondary model used when the primary fails
SLAService availability guaranteeUptime/availability promise from provider
SLOInternal performance targetTeam's target for a service level metric
Cost per 1M tokensPricing unitStandard pricing: USD per million tokens
Input pricePrompt costCost per million input/prompt tokens
Output priceGeneration costCost per million output/generated tokens
Cached input priceCache hit costReduced cost when prefix is served from cache
Data retentionHow long data is storedWhether provider stores your requests/responses
Data residencyWhere data livesWhich region/country data is processed and stored in
LicenseUsage termsLegal terms governing model use (commercial, research, etc.)
Open weightsDownloadable modelWeights can be downloaded; does not imply open source
Alias modelVersioned shorthande.g., "gpt-4o" may point to a specific versioned model
DeprecationModel end-of-lifeProvider announcing a model will be retired

I. RAG and Retrieval Terms

TermSimple meaningTechnical meaning
RAGRetrieval-Augmented GenerationPattern of retrieving relevant docs and inserting into context
ChunkDocument segmentA portion of a document used as a retrieval unit
EmbeddingText vectorDense float vector representing text semantics
Vector databaseEmbedding storeDatabase optimized for similarity search over embeddings
Semantic searchMeaning-based searchSearch by embedding similarity rather than keyword match
Hybrid searchCombined searchCombines dense (semantic) and sparse (BM25) retrieval
BM25Keyword search algorithmTF-IDF based ranking; good complement to semantic search
RerankingRelevance re-scoringRe-order retrieved docs by relevance using a cross-encoder
FaithfulnessGroundedness metricWhether the answer is supported by retrieved documents
GroundednessCitation accuracyWhether claims are traceable to source documents
Context packingOptimal context fillingFitting retrieved chunks into context as efficiently as possible

J. Agent and Tool Terms

TermSimple meaningTechnical meaning
AgentAutonomous LLM loopLLM in a loop that can call tools and take actions
ToolCallable functionA function the model can request to run
Tool schemaTool definitionJSON Schema describing a tool's name, description, and parameters
ReActReason + Act loopAgent pattern: reason about what to do, then act with a tool
PlannerTask decomposerComponent that breaks a goal into subtasks
ExecutorTask performerComponent that carries out individual tool calls
Approval gateHuman checkpointPause requiring human confirmation before risky action
SandboxIsolated executionSafe environment for code or tool execution
MemoryAgent recallMechanisms for agents to remember prior state
GuardrailSafety checkChecks that constrain or validate agent actions

K. Evaluation Terms

TermSimple meaningTechnical meaning
EvalQuality measurementSystematic test of model outputs against expected behavior
BenchmarkStandardized testPublic test suite used to compare models
Golden datasetGround truth setCurated examples with known correct answers
LLM-as-judgeModel evaluatorUsing an LLM to score another LLM's output
Pairwise evalComparative scoringComparing two model outputs head-to-head
Regression evalChange detectionTesting whether a model change hurt existing performance
TTFTFirst token latencyTime from request to first output token
HallucinationFabricated contentModel output that is factually incorrect but sounds confident
FaithfulnessCitation groundednessWhether the answer is supported by the retrieved context

Quick Self-Test

Can you explain these without looking at the glossary?

  • Token vs word
  • Context window vs max output tokens
  • Input price vs output price vs cached input price
  • Temperature 0 vs temperature 1
  • Prefill vs decode
  • KV cache vs PagedAttention
  • TTFT vs TPOT
  • Dense model vs MoE model
  • GGUF vs safetensors
  • Open weights vs open source
  • Provider vs lab vs aggregator vs gateway
  • RAG vs fine-tuning
  • Tool calling: who executes the tool?
  • LLM-as-judge
  • Reasoning tokens

If you can explain all of these, you are ready for Phase 2.