AI Terms Dictionary

A comprehensive multilingual AI terminology dictionary

Definition

vLLM (Virtual Large Language Model) is an open-source library designed to accelerate LLM serving. It introduces PagedAttention, a memory management technique inspired by operating system virtual memory, which eliminates memory fragmentation and allows for efficient handling of KV caches. This results in significantly higher throughput and lower latency compared to other serving frameworks like HuggingFace Transformers, making it ideal for production deployments requiring high concurrency.

Summary

vLLM is a high-throughput and memory-efficient inference engine for Large Language Models, utilizing PagedAttention to optimize GPU memory usage.

Key Concepts

Use Cases

Code Example

1
2
3
4
5
from vllm import LLM, SamplingParams
llm = LLM(model="facebook/opt-125m")
prompts = ["Hello, my name is", "The capital of France is"]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
outputs = llm.generate(prompts, sampling_params)