agentsclimarketplace

Vllm serving planner

Skill mouadja02/skills/skills/llm-tooling/vllm-serving-planner

A curated collection of agent skills for your AI agents - engineering craft, prompt engineering, design, growth marketing, ...

Install
npx -y skills add mouadja02/skills --skill vllm-serving-planner

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 8 stars8 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when planning, reviewing, or tuning vLLM or OpenAI-compatible LLM serving for throughput, latency, KV-cache pressure, batching, quantization, prefix caching, or multimodal serving.

SKILL.md

3.2 KB, 712 tokens by cl100k_base, as published. Nobody here has run it

vLLM Serving Planner

Plan LLM serving around workload shape: concurrency, context length, output length, model size, hardware, latency target, and cost. vLLM is usually strongest for high-throughput serving, but it still needs workload-specific tuning.

Use When

  • Deploying an OpenAI-compatible self-hosted model endpoint.
  • Comparing vLLM with TGI, SGLang, llama.cpp, or hosted APIs.
  • Throughput collapses under long context, high concurrency, or large output.
  • You need batching, chunked prefill, prefix caching, quantization, tensor parallelism, or multimodal serving.

Planning Steps

  1. Capture workload: requests per second, concurrent users, input tokens, output tokens, streaming needs, latency SLO, and model list.
  2. Estimate KV-cache pressure before choosing hardware.
  3. Choose precision and quantization based on quality tolerance and GPU memory.
  4. Enable prefix caching only when prompts share stable prefixes.
  5. Tune max model length, max batched tokens, max sequences, and prefill behavior together.
  6. Benchmark with real prompts, not only synthetic token counts.
  7. Track p50, p95, p99 latency, time to first token, tokens/sec, GPU memory, queue time, and error rates.
  8. Use disaggregated or staged serving for multimodal or any-to-any pipelines when one engine cannot efficiently host all stages.

Capacity Helper

python skills/llm-tooling/vllm-serving-planner/scripts/vllm_capacity_planner.py \
  --model-gb 70 --gpu-gb 80 --input-tokens 4000 --output-tokens 1000 --concurrency 32

The helper is intentionally approximate. Use it to flag obvious capacity risk before running a real benchmark.

Tuning Table

SymptomLikely lever
GPU memory full before target concurrencyLower max model length, quantize, add GPUs, reduce concurrency
High queue timeIncrease batching capacity or add replicas
Slow first tokenTune prefill, use prefix caching, reduce prompt length
Slow decodeCheck model size, parallelism, quantization, GPU utilization
Multimodal pipeline stallsSplit stages and batch each stage independently

Common Mistakes

MistakeFix
Sizing only model weightsInclude KV cache and activation overhead
Benchmarking one request at a timeTest expected concurrency and prompt lengths
Turning on every optimizationAdd one lever at a time and record deltas
Ignoring workload varianceTest short, median, long, and worst-case prompts
Comparing systems without SLOsDecide throughput, latency, cost, and model-quality priorities first

References

What ships with it: 2 files

2.3 KB alongside SKILL.md, 1 of them executable

references/

scripts/

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.