vLLM

vLLM is a fast and easy-to-use library for running LLM models locally.

ExampleDescription
vLLM BasicRun a Qwen2.5-7B agent on a local vLLM server in sync, async, and streaming modes.
Code GenerationCode generation example with DeepSeek-Coder.
DBStore a vLLM agent's session history in Postgres and reuse it across turns.
MemoryPersonalized memory and session summaries with vLLM.
RetryReview retry settings and why invalid model IDs cannot reliably exercise the retry path.
vLLM Structured OutputRequest JSON and validate a MovieScript with Pydantic through vLLM.
vLLM Tool UseAdd web search tools to a vLLM agent and stream responses sync and async.