serving-llms-vllm

Serve LLMs with high throughput using vLLM's PagedAttention and continuous batching.

14|5|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/MLT-OSS/hermes-agent-go --skill serving-llms-vllm-mlt-oss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: serving-llms-vllm
Source: https://github.com/MLT-OSS/hermes-agent-go/tree/main/skills/mlops/inference/vllm
Command: npx skills add https://github.com/MLT-OSS/hermes-agent-go --skill serving-llms-vllm-mlt-oss

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vllm, torch, transformers, and includes references (resource) components.

What problem does it solve? Deploying large language models in production often means choosing between slow inference, excessive GPU memory consumption, and complex serving infrastructure. This Skill guides you through serving LLMs with vLLM, which uses PagedAttention and continuous batching to achieve up to 24x higher throughput than standard transformers while fitting larger models into limited GPU memory. ## Core Features & Use Cases - Production API Deployment: Launch OpenAI-compatible endpoints with tensor parallelism, prefix caching, and Prometheus metrics for monitoring latency and throughput. - Offline Batch Inference: Process large prompt datasets efficiently with automatic internal batching, no manual chunking required. - Quantized Model Serving: Fit 70B models into 40GB of VRAM using AWQ, GPTQ, or FP8 quantization with minimal accuracy loss. - Use Case: You need to deploy Llama-3-8B as a production chatbot API handling 100+ requests per second. This Skill walks you through server configuration, load testing, monitoring setup, and Docker deployment with performance verification. ## Quick Start Ask the agent to help you deploy a Llama model as an OpenAI-compatible API server using vLLM with appropriate GPU memory settings.

Frequently Asked Questions about serving-llms-vllm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an LLM as an OpenAI-compatible API with vLLM?

Run 'vllm serve' with your model name, for example 'vllm serve meta-llama/Llama-3-8B-Instruct --gpu-memory-utilization 0.9 --port 8000'. This starts an OpenAI-compatible endpoint you can query with the standard OpenAI Python SDK by pointing base_url to your server.

vLLM vs TensorRT-LLM vs llama.cpp: which should I use?

Use vLLM for production APIs needing high throughput and multi-platform support. Choose TensorRT-LLM only for NVIDIA-only deployments needing maximum performance, and llama.cpp for CPU or edge single-user inference. HuggingFace transformers suits research and prototyping.

How do I fit a 70B model on a single 40GB GPU?

Use AWQ quantization with a pre-quantized model like TheBloke/Llama-2-70B-AWQ and launch with '--quantization awq --gpu-memory-utilization 0.95'. This reduces memory from 140GB to roughly 35GB with under 1% accuracy loss.

Why does vLLM run out of memory during model loading?

OOM occurs when the model plus KV cache exceeds available VRAM. Lower '--gpu-memory-utilization' to 0.7, reduce '--max-model-len', enable AWQ quantization, or split the model across GPUs with '--tensor-parallel-size'.

How do I fix slow time to first token in vLLM?

Enable prefix caching with '--enable-prefix-caching' for repeated prompt prefixes, and use '--enable-chunked-prefill' for long prompts. If too many concurrent requests cause delays, reduce '--max-num-seqs' to prioritize latency.

Does vLLM support GPUs other than NVIDIA?

Yes, vLLM supports NVIDIA as the primary platform plus AMD ROCm, Intel GPUs, and TPUs. FP8 quantization, however, requires H100 or H800 GPUs with CUDA 12.3 or newer.