[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GBQ20F5RT8Z0SZP4S60NNV":3,"skill-same:01M6GBQ20F5RT8Z0SZP4S60NNV":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":6,"ownerHtmlUrl":64,"ownerBlogUrl":6,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6GBQ20F5RT8Z0SZP4S60NNV","serving-llms-vllm",null,"Serves LLMs with high throughput using vLLM's PagedAttention and continuous batching. Use when deploying production LLM APIs, optimizing inference latency\u002Fthroughput, or serving models with limited GPU memory. Supports OpenAI-compatible endpoints, quantization (GPTQ\u002FAWQ\u002FFP8), and tensor parallelism.","zapabob\u002FSkills","zapabob","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130830376?v=4","01M6DBMYZAGRTFQDSQYW3W764P","峯岸 亮","01M6DBMZ3GKDSJ01NZ9XTZD7JD",2,"MIT","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Farchive\u002Fskill-md-reviewed\u002Fsha256\u002F9e\u002F9e7b5bc87b06b0743b30c89e4a054f861f1944f1e27b537ce7264058ddecbcb1\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"vLLM","serving llms vllm","llms","api","openai-compatible","with","throughput","GPTQ","AWQ","High Throughput","latency","use","Transformers","Inference Serving","FP8","gpu","openai api","openai","research","memory","2026-11-10 10:12:30",false,"---\r\nname: serving-llms-vllm\r\ndescription: Serves LLMs with high throughput using vLLM's PagedAttention and continuous batching. Use when deploying production LLM APIs, optimizing inference latency\u002Fthroughput, or serving models with limited GPU memory. Supports OpenAI-compatible endpoints, quantization (GPTQ\u002FAWQ\u002FFP8), and tensor parallelism.\r\nversion: 1.0.0\r\nauthor: Orchestra Research\r\nlicense: MIT\r\ndependencies: [vllm, torch, transformers]\r\nmetadata:\r\n  hermes:\r\n    tags: [vLLM, Inference Serving, PagedAttention, Continuous Batching, High Throughput, Production, OpenAI API, Quantization, Tensor Parallelism]\r\n\r\n---\r\n\r\n# vLLM - High-Performance LLM Serving\r\n\r\n## Quick start\r\n\r\nvLLM achieves 24x higher throughput than standard transformers through PagedAttention (block-based KV cache) and continuous batching (mixing prefill\u002Fdecode requests).\r\n\r\n**Installation**:\r\n```bash\r\npip install vllm\r\n```\r\n\r\n**Basic offline inference**:\r\n```python\r\nfrom vllm import LLM, SamplingParams\r\n\r\nllm = LLM(model=\"meta-llama\u002FLlama-3-8B-Instruct\")\r\nsampling = SamplingParams(temperature=0.7, max_tokens=256)\r\n\r\noutputs = llm.generate([\"Explain quantum computing\"], sampling)\r\nprint(outputs[0].outputs[0].text)\r\n```\r\n\r\n**OpenAI-compatible server**:\r\n```bash\r\nvllm serve meta-llama\u002FLlama-3-8B-Instruct\r\n\r\n# Query with OpenAI SDK\r\npython -c \"\r\nfrom openai import OpenAI\r\nclient = OpenAI(base_url='http:\u002F\u002Flocalhost:8000\u002Fv1', api_key='EMPTY')\r\nprint(client.chat.completions.create(\r\n    model='meta-llama\u002FLlama-3-8B-Instruct',\r\n    messages=[{'role': 'user', 'content': 'Hello!'}]\r\n).choices[0].message.content)\r\n\"\r\n```\r\n\r\n## Common workflows\r\n\r\n### Workflow 1: Production API deployment\r\n\r\nCopy this checklist and track progress:\r\n\r\n```\r\nDeployment Progress:\r\n- [ ] Step 1: Configure server settings\r\n- [ ] Step 2: Test with limited traffic\r\n- [ ] Step 3: Enable monitoring\r\n- [ ] Step 4: Deploy to production\r\n- [ ] Step 5: Verify performance metrics\r\n```\r\n\r\n**Step 1: Configure server settings**\r\n\r\nChoose configuration based on your model size:\r\n\r\n```bash\r\n# For 7B-13B models on single GPU\r\nvllm serve meta-llama\u002FLlama-3-8B-Instruct \\\r\n  --gpu-memory-utilization 0.9 \\\r\n  --max-model-len 8192 \\\r\n  --port 8000\r\n\r\n# For 30B-70B models with tensor parallelism\r\nvllm serve meta-llama\u002FLlama-2-70b-hf \\\r\n  --tensor-parallel-size 4 \\\r\n  --gpu-memory-utilization 0.9 \\\r\n  --quantization awq \\\r\n  --port 8000\r\n\r\n# For production with caching and metrics\r\nvllm serve meta-llama\u002FLlama-3-8B-Instruct \\\r\n  --gpu-memory-utilization 0.9 \\\r\n  --enable-prefix-caching \\\r\n  --enable-metrics \\\r\n  --metrics-port 9090 \\\r\n  --port 8000 \\\r\n  --host 0.0.0.0\r\n```\r\n\r\n**Step 2: Test with limited traffic**\r\n\r\nRun load test before production:\r\n\r\n```bash\r\n# Install load testing tool\r\npip install locust\r\n\r\n# Create test_load.py with sample requests\r\n# Run: locust -f test_load.py --host http:\u002F\u002Flocalhost:8000\r\n```\r\n\r\nVerify TTFT (time to first token) \u003C 500ms and throughput > 100 req\u002Fsec.\r\n\r\n**Step 3: Enable monitoring**\r\n\r\nvLLM exposes Prometheus metrics on port 9090:\r\n\r\n```bash\r\ncurl http:\u002F\u002Flocalhost:9090\u002Fmetrics | grep vllm\r\n```\r\n\r\nKey metrics to monitor:\r\n- `vllm:time_to_first_token_seconds` - Latency\r\n- `vllm:num_requests_running` - Active requests\r\n- `vllm:gpu_cache_usage_perc` - KV cache utilization\r\n\r\n**Step 4: Deploy to production**\r\n\r\nUse Docker for consistent deployment:\r\n\r\n```bash\r\n# Run vLLM in Docker\r\ndocker run --gpus all -p 8000:8000 \\\r\n  vllm\u002Fvllm-openai:latest \\\r\n  --model meta-llama\u002FLlama-3-8B-Instruct \\\r\n  --gpu-memory-utilization 0.9 \\\r\n  --enable-prefix-caching\r\n```\r\n\r\n**Step 5: Verify performance metrics**\r\n\r\nCheck that deployment meets targets:\r\n- TTFT \u003C 500ms (for short prompts)\r\n- Throughput > target req\u002Fsec\r\n- GPU utilization > 80%\r\n- No OOM errors in logs\r\n\r\n### Workflow 2: Offline batch inference\r\n\r\nFor processing large datasets without server overhead.\r\n\r\nCopy this checklist:\r\n\r\n```\r\nBatch Processing:\r\n- [ ] Step 1: Prepare input data\r\n- [ ] Step 2: Configure LLM engine\r\n- [ ] Step 3: Run batch inference\r\n- [ ] Step 4: Process results\r\n```\r\n\r\n**Step 1: Prepare input data**\r\n\r\n```python\r\n# Load prompts from file\r\nprompts = []\r\nwith open(\"prompts.txt\") as f:\r\n    prompts = [line.strip() for line in f]\r\n\r\nprint(f\"Loaded {len(prompts)} prompts\")\r\n```\r\n\r\n**Step 2: Configure LLM engine**\r\n\r\n```python\r\nfrom vllm import LLM, SamplingParams\r\n\r\nllm = LLM(\r\n    model=\"meta-llama\u002FLlama-3-8B-Instruct\",\r\n    tensor_parallel_size=2,  # Use 2 GPUs\r\n    gpu_memory_utilization=0.9,\r\n    max_model_len=4096\r\n)\r\n\r\nsampling = SamplingParams(\r\n    temperature=0.7,\r\n    top_p=0.95,\r\n    max_tokens=512,\r\n    stop=[\"\u003C\u002Fs>\", \"\\n\\n\"]\r\n)\r\n```\r\n\r\n**Step 3: Run batch inference**\r\n\r\nvLLM automatically batches requests for efficiency:\r\n\r\n```python\r\n# Process all prompts in one call\r\noutputs = llm.generate(prompts, sampling)\r\n\r\n# vLLM handles batching internally\r\n# No need to manually chunk prompts\r\n```\r\n\r\n**Step 4: Process results**\r\n\r\n```python\r\n# Extract generated text\r\nresults = []\r\nfor output in outputs:\r\n    prompt = output.prompt\r\n    generated = output.outputs[0].text\r\n    results.append({\r\n        \"prompt\": prompt,\r\n        \"generated\": generated,\r\n        \"tokens\": len(output.outputs[0].token_ids)\r\n    })\r\n\r\n# Save to file\r\nimport json\r\nwith open(\"results.jsonl\", \"w\") as f:\r\n    for result in results:\r\n        f.write(json.dumps(result) + \"\\n\")\r\n\r\nprint(f\"Processed {len(results)} prompts\")\r\n```\r\n\r\n### Workflow 3: Quantized model serving\r\n\r\nFit large models in limited GPU memory.\r\n\r\n```\r\nQuantization Setup:\r\n- [ ] Step 1: Choose quantization method\r\n- [ ] Step 2: Find or create quantized model\r\n- [ ] Step 3: Launch with quantization flag\r\n- [ ] Step 4: Verify accuracy\r\n```\r\n\r\n**Step 1: Choose quantization method**\r\n\r\n- **AWQ**: Best for 70B models, minimal accuracy loss\r\n- **GPTQ**: Wide model support, good compression\r\n- **FP8**: Fastest on H100 GPUs\r\n\r\n**Step 2: Find or create quantized model**\r\n\r\nUse pre-quantized models from HuggingFace:\r\n\r\n```bash\r\n# Search for AWQ models\r\n# Example: TheBloke\u002FLlama-2-70B-AWQ\r\n```\r\n\r\n**Step 3: Launch with quantization flag**\r\n\r\n```bash\r\n# Using pre-quantized model\r\nvllm serve TheBloke\u002FLlama-2-70B-AWQ \\\r\n  --quantization awq \\\r\n  --tensor-parallel-size 1 \\\r\n  --gpu-memory-utilization 0.95\r\n\r\n# Results: 70B model in ~40GB VRAM\r\n```\r\n\r\n**Step 4: Verify accuracy**\r\n\r\nTest outputs match expected quality:\r\n\r\n```python\r\n# Compare quantized vs non-quantized responses\r\n# Verify task-specific performance unchanged\r\n```\r\n\r\n## When to use vs alternatives\r\n\r\n**Use vLLM when:**\r\n- Deploying production LLM APIs (100+ req\u002Fsec)\r\n- Serving OpenAI-compatible endpoints\r\n- Limited GPU memory but need large models\r\n- Multi-user applications (chatbots, assistants)\r\n- Need low latency with high throughput\r\n\r\n**Use alternatives instead:**\r\n- **llama.cpp**: CPU\u002Fedge inference, single-user\r\n- **HuggingFace transformers**: Research, prototyping, one-off generation\r\n- **TensorRT-LLM**: NVIDIA-only, need absolute maximum performance\r\n- **Text-Generation-Inference**: Already in HuggingFace ecosystem\r\n\r\n## Common issues\r\n\r\n**Issue: Out of memory during model loading**\r\n\r\nReduce memory usage:\r\n```bash\r\nvllm serve MODEL \\\r\n  --gpu-memory-utilization 0.7 \\\r\n  --max-model-len 4096\r\n```\r\n\r\nOr use quantization:\r\n```bash\r\nvllm serve MODEL --quantization awq\r\n```\r\n\r\n**Issue: Slow first token (TTFT > 1 second)**\r\n\r\nEnable prefix caching for repeated prompts:\r\n```bash\r\nvllm serve MODEL --enable-prefix-caching\r\n```\r\n\r\nFor long prompts, enable chunked prefill:\r\n```bash\r\nvllm serve MODEL --enable-chunked-prefill\r\n```\r\n\r\n**Issue: Model not found error**\r\n\r\nUse `--trust-remote-code` for custom models:\r\n```bash\r\nvllm serve MODEL --trust-remote-code\r\n```\r\n\r\n**Issue: Low throughput (\u003C50 req\u002Fsec)**\r\n\r\nIncrease concurrent sequences:\r\n```bash\r\nvllm serve MODEL --max-num-seqs 512\r\n```\r\n\r\nCheck GPU utilization with `nvidia-smi` - should be >80%.\r\n\r\n**Issue: Inference slower than expected**\r\n\r\nVerify tensor parallelism uses power of 2 GPUs:\r\n```bash\r\nvllm serve MODEL --tensor-parallel-size 4  # Not 3\r\n```\r\n\r\nEnable speculative decoding for faster generation:\r\n```bash\r\nvllm serve MODEL --speculative-model DRAFT_MODEL\r\n```\r\n\r\n## Advanced topics\r\n\r\n**Server deployment patterns**: See [references\u002Fserver-deployment.md](references\u002Fserver-deployment.md) for Docker, Kubernetes, and load balancing configurations.\r\n\r\n**Performance optimization**: See [references\u002Foptimization.md](references\u002Foptimization.md) for PagedAttention tuning, continuous batching details, and benchmark results.\r\n\r\n**Quantization guide**: See [references\u002Fquantization.md](references\u002Fquantization.md) for AWQ\u002FGPTQ\u002FFP8 setup, model preparation, and accuracy comparisons.\r\n\r\n**Troubleshooting**: See [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for detailed error messages, debugging steps, and performance diagnostics.\r\n\r\n## Hardware requirements\r\n\r\n- **Small models (7B-13B)**: 1x A10 (24GB) or A100 (40GB)\r\n- **Medium models (30B-40B)**: 2x A100 (40GB) with tensor parallelism\r\n- **Large models (70B+)**: 4x A100 (40GB) or 2x A100 (80GB), use AWQ\u002FGPTQ\r\n\r\nSupported platforms: NVIDIA (primary), AMD ROCm, Intel GPUs, TPUs\r\n\r\n## Resources\r\n\r\n- Official docs: https:\u002F\u002Fdocs.vllm.ai\r\n- GitHub: https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm\r\n- Paper: \"Efficient Memory Management for Large Language Model Serving with PagedAttention\" (SOSP 2023)\r\n- Community: https:\u002F\u002Fdiscuss.vllm.ai\r\n","# vLLM - High-Performance LLM Serving\r\n\r\n## Quick start\r\n\r\nvLLM achieves 24x higher throughput than standard transformers through PagedAttention (block-based KV cache) and continuous batching (mixing prefill\u002Fdecode requests).\r\n\r\n**Installation**:\r\n```bash\r\npip install vllm\r\n```\r\n\r\n**Basic offline inference**:\r\n```python\r\nfrom vllm import LLM, SamplingParams\r\n\r\nllm = LLM(model=\"meta-llama\u002FLlama-3-8B-Instruct\")\r\nsampling = SamplingParams(temperature=0.7, max_tokens=256)\r\n\r\noutputs = llm.generate([\"Explain quantum computing\"], sampling)\r\nprint(outputs[0].outputs[0].text)\r\n```\r\n\r\n**OpenAI-compatible server**:\r\n```bash\r\nvllm serve meta-llama\u002FLlama-3-8B-Instruct\r\n\r\n# Query with OpenAI SDK\r\npython -c \"\r\nfrom openai import OpenAI\r\nclient = OpenAI(base_url='http:\u002F\u002Flocalhost:8000\u002Fv1', api_key='EMPTY')\r\nprint(client.chat.completions.create(\r\n    model='meta-llama\u002FLlama-3-8B-Instruct',\r\n    messages=[{'role': 'user', 'content': 'Hello!'}]\r\n).choices[0].message.content)\r\n\"\r\n```\r\n\r\n## Common workflows\r\n\r\n### Workflow 1: Production API deployment\r\n\r\nCopy this checklist and track progress:\r\n\r\n```\r\nDeployment Progress:\r\n- [ ] Step 1: Configure server settings\r\n- [ ] Step 2: Test with limited traffic\r\n- [ ] Step 3: Enable monitoring\r\n- [ ] Step 4: Deploy to production\r\n- [ ] Step 5: Verify performance metrics\r\n```\r\n\r\n**Step 1: Configure server settings**\r\n\r\nChoose configuration based on your model size:\r\n\r\n```bash\r\n# For 7B-13B models on single GPU\r\nvllm serve meta-llama\u002FLlama-3-8B-Instruct \\\r\n  --gpu-memory-utilization 0.9 \\\r\n  --max-model-len 8192 \\\r\n  --port 8000\r\n\r\n# For 30B-70B models with tensor parallelism\r\nvllm serve meta-llama\u002FLlama-2-70b-hf \\\r\n  --tensor-parallel-size 4 \\\r\n  --gpu-memory-utilization 0.9 \\\r\n  --quantization awq \\\r\n  --port 8000\r\n\r\n# For production with caching and metrics\r\nvllm serve meta-llama\u002FLlama-3-8B-Instruct \\\r\n  --gpu-memory-utilization 0.9 \\\r\n  --enable-prefix-caching \\\r\n  --enable-metrics \\\r\n  --metrics-port 9090 \\\r\n  --port 8000 \\\r\n  --host 0.0.0.0\r\n```\r\n\r\n**Step 2: Test with limited traffic**\r\n\r\nRun load test before production:\r\n\r\n```bash\r\n# Install load testing tool\r\npip install locust\r\n\r\n# Create test_load.py with sample requests\r\n# Run: locust -f test_load.py --host http:\u002F\u002Flocalhost:8000\r\n```\r\n\r\nVerify TTFT (time to first token) \u003C 500ms and throughput > 100 req\u002Fsec.\r\n\r\n**Step 3: Enable monitoring**\r\n\r\nvLLM exposes Prometheus metrics on port 9090:\r\n\r\n```bash\r\ncurl http:\u002F\u002Flocalhost:9090\u002Fmetrics | grep vllm\r\n```\r\n\r\nKey metrics to monitor:\r\n- `vllm:time_to_first_token_seconds` - Latency\r\n- `vllm:num_requests_running` - Active requests\r\n- `vllm:gpu_cache_usage_perc` - KV cache utilization\r\n\r\n**Step 4: Deploy to production**\r\n\r\nUse Docker for consistent deployment:\r\n\r\n```bash\r\n# Run vLLM in Docker\r\ndocker run --gpus all -p 8000:8000 \\\r\n  vllm\u002Fvllm-openai:latest \\\r\n  --model meta-llama\u002FLlama-3-8B-Instruct \\\r\n  --gpu-memory-utilization 0.9 \\\r\n  --enable-prefix-caching\r\n```\r\n\r\n**Step 5: Verify performance metrics**\r\n\r\nCheck that deployment meets targets:\r\n- TTFT \u003C 500ms (for short prompts)\r\n- Throughput > target req\u002Fsec\r\n- GPU utilization > 80%\r\n- No OOM errors in logs\r\n\r\n### Workflow 2: Offline batch inference\r\n\r\nFor processing large datasets without server overhead.\r\n\r\nCopy this checklist:\r\n\r\n```\r\nBatch Processing:\r\n- [ ] Step 1: Prepare input data\r\n- [ ] Step 2: Configure LLM engine\r\n- [ ] Step 3: Run batch inference\r\n- [ ] Step 4: Process results\r\n```\r\n\r\n**Step 1: Prepare input data**\r\n\r\n```python\r\n# Load prompts from file\r\nprompts = []\r\nwith open(\"prompts.txt\") as f:\r\n    prompts = [line.strip() for line in f]\r\n\r\nprint(f\"Loaded {len(prompts)} prompts\")\r\n```\r\n\r\n**Step 2: Configure LLM engine**\r\n\r\n```python\r\nfrom vllm import LLM, SamplingParams\r\n\r\nllm = LLM(\r\n    model=\"meta-llama\u002FLlama-3-8B-Instruct\",\r\n    tensor_parallel_size=2,  # Use 2 GPUs\r\n    gpu_memory_utilization=0.9,\r\n    max_model_len=4096\r\n)\r\n\r\nsampling = SamplingParams(\r\n    temperature=0.7,\r\n    top_p=0.95,\r\n    max_tokens=512,\r\n    stop=[\"\u003C\u002Fs>\", \"\\n\\n\"]\r\n)\r\n```\r\n\r\n**Step 3: Run batch inference**\r\n\r\nvLLM automatically batches requests for efficiency:\r\n\r\n```python\r\n# Process all prompts in one call\r\noutputs = llm.generate(prompts, sampling)\r\n\r\n# vLLM handles batching internally\r\n# No need to manually chunk prompts\r\n```\r\n\r\n**Step 4: Process results**\r\n\r\n```python\r\n# Extract generated text\r\nresults = []\r\nfor output in outputs:\r\n    prompt = output.prompt\r\n    generated = output.outputs[0].text\r\n    results.append({\r\n        \"prompt\": prompt,\r\n        \"generated\": generated,\r\n        \"tokens\": len(output.outputs[0].token_ids)\r\n    })\r\n\r\n# Save to file\r\nimport json\r\nwith open(\"results.jsonl\", \"w\") as f:\r\n    for result in results:\r\n        f.write(json.dumps(result) + \"\\n\")\r\n\r\nprint(f\"Processed {len(results)} prompts\")\r\n```\r\n\r\n### Workflow 3: Quantized model serving\r\n\r\nFit large models in limited GPU memory.\r\n\r\n```\r\nQuantization Setup:\r\n- [ ] Step 1: Choose quantization method\r\n- [ ] Step 2: Find or create quantized model\r\n- [ ] Step 3: Launch with quantization flag\r\n- [ ] Step 4: Verify accuracy\r\n```\r\n\r\n**Step 1: Choose quantization method**\r\n\r\n- **AWQ**: Best for 70B models, minimal accuracy loss\r\n- **GPTQ**: Wide model support, good compression\r\n- **FP8**: Fastest on H100 GPUs\r\n\r\n**Step 2: Find or create quantized model**\r\n\r\nUse pre-quantized models from HuggingFace:\r\n\r\n```bash\r\n# Search for AWQ models\r\n# Example: TheBloke\u002FLlama-2-70B-AWQ\r\n```\r\n\r\n**Step 3: Launch with quantization flag**\r\n\r\n```bash\r\n# Using pre-quantized model\r\nvllm serve TheBloke\u002FLlama-2-70B-AWQ \\\r\n  --quantization awq \\\r\n  --tensor-parallel-size 1 \\\r\n  --gpu-memory-utilization 0.95\r\n\r\n# Results: 70B model in ~40GB VRAM\r\n```\r\n\r\n**Step 4: Verify accuracy**\r\n\r\nTest outputs match expected quality:\r\n\r\n```python\r\n# Compare quantized vs non-quantized responses\r\n# Verify task-specific performance unchanged\r\n```\r\n\r\n## When to use vs alternatives\r\n\r\n**Use vLLM when:**\r\n- Deploying production LLM APIs (100+ req\u002Fsec)\r\n- Serving OpenAI-compatible endpoints\r\n- Limited GPU memory but need large models\r\n- Multi-user applications (chatbots, assistants)\r\n- Need low latency with high throughput\r\n\r\n**Use alternatives instead:**\r\n- **llama.cpp**: CPU\u002Fedge inference, single-user\r\n- **HuggingFace transformers**: Research, prototyping, one-off generation\r\n- **TensorRT-LLM**: NVIDIA-only, need absolute maximum performance\r\n- **Text-Generation-Inference**: Already in HuggingFace ecosystem\r\n\r\n## Common issues\r\n\r\n**Issue: Out of memory during model loading**\r\n\r\nReduce memory usage:\r\n```bash\r\nvllm serve MODEL \\\r\n  --gpu-memory-utilization 0.7 \\\r\n  --max-model-len 4096\r\n```\r\n\r\nOr use quantization:\r\n```bash\r\nvllm serve MODEL --quantization awq\r\n```\r\n\r\n**Issue: Slow first token (TTFT > 1 second)**\r\n\r\nEnable prefix caching for repeated prompts:\r\n```bash\r\nvllm serve MODEL --enable-prefix-caching\r\n```\r\n\r\nFor long prompts, enable chunked prefill:\r\n```bash\r\nvllm serve MODEL --enable-chunked-prefill\r\n```\r\n\r\n**Issue: Model not found error**\r\n\r\nUse `--trust-remote-code` for custom models:\r\n```bash\r\nvllm serve MODEL --trust-remote-code\r\n```\r\n\r\n**Issue: Low throughput (\u003C50 req\u002Fsec)**\r\n\r\nIncrease concurrent sequences:\r\n```bash\r\nvllm serve MODEL --max-num-seqs 512\r\n```\r\n\r\nCheck GPU utilization with `nvidia-smi` - should be >80%.\r\n\r\n**Issue: Inference slower than expected**\r\n\r\nVerify tensor parallelism uses power of 2 GPUs:\r\n```bash\r\nvllm serve MODEL --tensor-parallel-size 4  # Not 3\r\n```\r\n\r\nEnable speculative decoding for faster generation:\r\n```bash\r\nvllm serve MODEL --speculative-model DRAFT_MODEL\r\n```\r\n\r\n## Advanced topics\r\n\r\n**Server deployment patterns**: See [references\u002Fserver-deployment.md](references\u002Fserver-deployment.md) for Docker, Kubernetes, and load balancing configurations.\r\n\r\n**Performance optimization**: See [references\u002Foptimization.md](references\u002Foptimization.md) for PagedAttention tuning, continuous batching details, and benchmark results.\r\n\r\n**Quantization guide**: See [references\u002Fquantization.md](references\u002Fquantization.md) for AWQ\u002FGPTQ\u002FFP8 setup, model preparation, and accuracy comparisons.\r\n\r\n**Troubleshooting**: See [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for detailed error messages, debugging steps, and performance diagnostics.\r\n\r\n## Hardware requirements\r\n\r\n- **Small models (7B-13B)**: 1x A10 (24GB) or A100 (40GB)\r\n- **Medium models (30B-40B)**: 2x A100 (40GB) with tensor parallelism\r\n- **Large models (70B+)**: 4x A100 (40GB) or 2x A100 (80GB), use AWQ\u002FGPTQ\r\n\r\nSupported platforms: NVIDIA (primary), AMD ROCm, Intel GPUs, TPUs\r\n\r\n## Resources\r\n\r\n- Official docs: https:\u002F\u002Fdocs.vllm.ai\r\n- GitHub: https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm\r\n- Paper: \"Efficient Memory Management for Large Language Model Serving with PagedAttention\" (SOSP 2023)\r\n- Community: https:\u002F\u002Fdiscuss.vllm.ai\r\n",{"name":5,"author":44,"license":15,"version":45,"metadata":46,"description":7,"dependencies":55},"Orchestra Research","1.0.0",{"hermes":47},{"tags":48},[19,32,49,50,28,51,52,53,54],"PagedAttention","Continuous Batching","Production","OpenAI API","Quantization","Tensor Parallelism",[56,57,58],"vllm","torch","transformers","main","0d1434f89f4bc6b07e9d272accd8c1013768820f","archive\u002Fskill-md-reviewed\u002Fsha256\u002F9e\u002F9e7b5bc87b06b0743b30c89e4a054f861f1944f1e27b537ce7264058ddecbcb1",0,"https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills","https:\u002F\u002Fgithub.com\u002Fzapabob","The Open University of JAPAN　2019-now\r\n\r\nTokyo University of Science　2007-2010","2026-10-26 16:29:01",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add zapabob\u002FSkills --skill serving-llms-vllm",{"tool":73,"command":74},"bunx","bunx skills add zapabob\u002FSkills --skill serving-llms-vllm",{"tool":76,"command":77},"pnpm","pnpm dlx skills add zapabob\u002FSkills --skill serving-llms-vllm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Farchive\u002Fskill-md-reviewed\u002Fsha256\u002F9e\u002F9e7b5bc87b06b0743b30c89e4a054f861f1944f1e27b537ce7264058ddecbcb1\u002FSKILL.md",true,[],[82,106,130,151,175,190],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":39},"01M6GJTE1GESGGF9K028Y7753E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fxurl\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[],[84,89,90,91,92,93,94,95,96,97,98,22,99,100,101,102,59,103,104,105],"openclaw","macos","cli","github","linux","windows","official","search","https","social-media","Media","hermes","hermes agent","twitter","social","via","post",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":39},"01M6GJT8S1PXQ8WPXT1HSNBWH2","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwriting-plans\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[],[113,114,115,116,90,117,93,118,94,119,120,121,122,123,124,125,126,127,128,129],"writing","writing plans","plans","design","review","workflow","documentation","tasks","development","code","planning","code-review","subagent","write","superpowers","paths","test-driven-development",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":39},"01M6GJST0H5X7WHBJ3BZK0DVKH","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwhisper\u002Fvariants\u002Fhermes-agent-optional\u002FSKILL.md",[],[132,90,93,36,137,138,31,139,140,141,142,143,30,144,145,146,147,148,149,150],"speech","multimodal","ASR","Audio","text","model","speech recognition","general","multilingual","translation","english","identification","processing","Audio Processing",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":39},"01M6GJSMRQ8EETZTYMG72P70EA","weights-and-biases","W&B: log ML experiments, sweeps, model registry, dashboards.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fweights-and-biases\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[],[158,90,159,160,94,161,162,163,164,165,166,142,167,168,169,170,171,172,173,174],"weights and biases","tensorflow","experiments","pytorch","visualization","registry","real-time","tuning","dashboards","experiment","log","time","Experiment Tracking","Model Registry","Hyperparameter Tuning","WandB","Real-Time Visualization",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":39},"01M6GJS19KDPRY112JTR326S06","watchers","Poll RSS, JSON APIs, and GitHub with watermark dedup.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwatchers\u002Fvariants\u002Fhermes-agent-optional\u002FSKILL.md",[],[177,90,182,92,93,183,184,185,186,187,188,100,101,189,24],"terminal","automation","http","monitoring","cron","json","rss","devops",{"skillNo":191,"name":5,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":39},"01M6GJRHJD2A6Q830SWF9W48BC","vLLM: high-throughput LLM serving, OpenAI API, quantization.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fvllm\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[],[21,19,20,93,37,36,35,196,32,31,51,22,197,28,49,50,53,54,198,25],"tensor","llm serving","high-throughput"]