📄 SKILL.md

← Vault

name: serving-llms-vllm

description: Serves LLMs with high throughput using vLLM's PagedAttention and continuous batching. Use when deploying production LLM APIs, optimizing inference latency/throughput, or serving models with limited GPU memory. Supports OpenAI-compatible endpoints, quantization (GPTQ/AWQ/FP8), and tensor parallelism.

version: 1.0.0

author: Orchestra Research

license: MIT

dependencies: [vllm, torch, transformers]

metadata:

hermes:

tags: [vLLM, Inference Serving, PagedAttention, Continuous Batching, High Throughput, Production, OpenAI API, Quantization, Tensor Parallelism]


vLLM - High-Performance LLM Serving

Quick start

vLLM achieves 24x higher throughput than standard transformers through PagedAttention (block-based KV cache) and continuous batching (mixing prefill/decode requests).

Installation:

`bash

pip install vllm

`

Basic offline inference:

`python

from vllm import LLM, SamplingParams

llm = LLM(model="meta-llama/Llama-3-8B-Instruct")

sampling = SamplingParams(temperature=0.7, max_tokens=256)

outputs = llm.generate(["Explain quantum computing"], sampling)

print(outputs[0].outputs[0].text)

`

OpenAI-compatible server:

`bash

vllm serve meta-llama/Llama-3-8B-Instruct

Query with OpenAI SDK

python -c "

from openai import OpenAI

client = OpenAI(base_url='http://localhost:8000/v1', api_key='EMPTY')

print(client.chat.completions.create(

model='meta-llama/Llama-3-8B-Instruct',

messages=[{'role': 'user', 'content': 'Hello!'}]

).choices[0].message.content)

"

`

Common workflows

Workflow 1: Production API deployment

Copy this checklist and track progress:

`

Deployment Progress: