Skip to content

Glossary and references

源码版本v0.25.1

Core terminology

TermEnglishDescription
Engine argsEngineArgsAll startup parameters; derives VllmConfig. vllm/engine/arg_utils.py
Global configVllmConfigAggregate of model / cache / scheduler / parallel sub-configs. vllm/config/__init__.py
LLM offline classLLMSynchronous offline generation entry, LLM.generate. vllm/entrypoints/llm.py
Async LLMAsyncLLMAsync implementation of EngineClient, server entry. vllm/v1/engine/async_llm.py
LLM engineLLMEnginev1 thin shell, add_request/step, delegates to EngineCore. vllm/v1/engine/llm_engine.py
Engine coreEngineCoreThe actual core, composes scheduler + worker + kv cache. vllm/v1/engine/core.py
Engine core processEngineCoreProcZMQ background process shell, inherits from EngineCore. vllm/v1/engine/core.py
Engine clientEngineCoreClientInproc/MP/AsyncMP client ABC. vllm/v1/engine/core_client.py
In-process clientInprocClientNo process spawned, calls step_fn directly. vllm/v1/engine/core_client.py
Multiprocess clientMPClientMultiprocess synchronization, communicates over ZMQ. vllm/v1/engine/core_client.py
SchedulerSchedulerwaiting/running queues, schedule, preemption. vllm/v1/core/sched/scheduler.py
Request queueRequestQueueFCFS / Priority strategies. vllm/v1/core/sched/queue.py
Continuous batchingContinuous BatchingDynamically builds batches every step, prefill and decode interleaved. vllm/v1/core/sched/scheduler.py
PreemptionPreemptionEvicts running requests when memory is tight, frees space for new requests. vllm/v1/core/sched/scheduler.py
ExecutorExecutorUniProc/Multiproc/Ray variants. vllm/v1/executor/
Ray distributed executorRayDistributedExecutorSchedules workers across a Ray cluster. vllm/v1/executor/ray_distributed_executor.py
WorkerWorkerDistributed environment + GPU execution unit. vllm/v1/worker/gpu_worker.py
Model runnerGPUModelRunnerexecute_model, input_batch, cudagraph management. vllm/v1/worker/gpu_model_runner.py
MicrobatchubatchSplits requests into microbatches inside a step to fit cudagraph. vllm/v1/worker/gpu_model_runner.py
CUDA graphcudagraphPre-recorded kernel sequence with fixed shape, eliminates launch overhead. vllm/v1/worker/gpu_model_runner.py
Default model loaderDefaultModelLoaderPulls weights from HF/s3 etc., safetensors / pytorch formats. vllm/model_executor/model_loader/default_loader.py
Column-parallel linearColumnParallelLinearWeights sharded along output dim, all-gather after forward or reduce before RowParallel. vllm/model_executor/layers/linear.py
QKV-parallel linearQKVParallelLinearShards Q/K/V together by head, merges projections for GQA/MQA. vllm/model_executor/layers/linear.py
Row-parallel linearRowParallelLinearWeights sharded along input dim, all-reduce after forward. vllm/model_executor/layers/linear.py
KV cache managerKVCacheManagerBlock allocation and lifecycle, across groups. vllm/v1/core/kv_cache_manager.py
KV cache coordinatorKVCacheCoordinatorHybrid/Unitary/NoPrefixCache variants. vllm/v1/core/kv_cache_coordinator.py
Block poolBlockPoolPagedAttention block allocation + prefix cache LRU. vllm/v1/core/block_pool.py
Paged attentionPagedAttentionSplits KV cache by block, avoids contiguous memory fragmentation. csrc/attention/
Prefix cachingPrefix CachingReuses KV blocks of shared prefixes across requests. vllm/v1/core/kv_cache_manager.py
Attention backendAttentionBackendAbstraction layer for FlashAttention/FlashInfer/Triton/MLA. vllm/v1/attention/backend.py
FlashAttentionFlashAttentionDao Labs flash_attn kernel, auto-selects FA2/3/4. vllm/v1/attention/backends/flash_attn.py
FlashInferFlashInferKernels from the FlashInfer project, native GQA/FP8/large-page support. vllm/v1/attention/backends/flashinfer.py
TritonTritonPure-Python Triton kernels, fp32 and edge-quantization fallback. vllm/v1/attention/backends/triton_attn.py
Multi-head latent attentionMLAMulti-head Latent Attention, DeepSeek family, caches latent + RoPE. vllm/v1/attention/backends/mla/
SamplerSamplerforward/sample, logits → token. vllm/v1/sample/sampler.py
Logits processorLogitsProcessorAbstraction for logits transforms before sampling, argmax-invariant category. vllm/v1/sample/logits_processor/interface.py
Parallel stateparallel_stateGlobal singleton of TP/PP/DP communication groups. vllm/distributed/parallel_state.py
Group coordinatorGroupCoordinatorProcessGroup wrapper, holds CPU/device dual groups. vllm/distributed/parallel_state.py
Tensor parallelismTPTensor Parallelism, shards weights along a dim, all-reduce/all-gather during forward.
Pipeline parallelismPPPipeline Parallelism, partitions model layers across GPUs, microbatch pipelining.

Directory conventions

  • Source: vllm-project/vllm, main code under vllm/ (Python), CUDA kernels under csrc/.
  • v0.25 has switched to the v1 architecture: vllm/v1/ is the main arena, vllm/engine/ is mostly aliases.
  • Entry points: vllm/entrypoints/ (llm.py offline, openai/ server, cli/).

Official references

Source version

This site pins the source version to v0.25.1; line numbers are accurate against that tag. All SrcLink point to github.com/vllm-project/vllm/blob/v0.25.1/<path>#Lxx-Lyy. To bump the version, edit VLLM_TAG in docs/.vitepress/site.ts and run npm run check:refs.