MyClaw
HomeProductsUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
Home
ProductsOpenClaw HostingHermes Agent Hosting
Use CasesPricingSkills
ResourcesCompareTutorialLearnBlogUpdatesResourcesCommunity
CompanyAboutSupport
Sign In
MyClaw.ai

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingUse CasesPricingCompareAlibaba Cloud

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

Legal

TermsPrivacyCookieGDPRContact

© 2023 Cubo World Inc. All rights reserved.

← Back to Skills
AI & LLMs
🚀

vLLM Serving

High-throughput LLM inference server with OpenAI-compatible API, PagedAttention, quantization (AWQ/GPTQ/FP8), and tensor parallelism for production deployments.

by NousResearchv1.0.0
Connecting to VM...
Connecting to VM...
npx clawhub@latest install vllm
1.4kStars
167Downloads
2Current Installs
📦
v1.0.0Version
View Source

vLLM Serving Skill Overview

vLLM is a high-throughput LLM inference engine that serves any HuggingFace-compatible model through an OpenAI-compatible REST API. It uses PagedAttention and continuous batching to deliver up to 24x more throughput than standard Transformers inference, making it the go-to choice for production LLM deployments where latency, throughput, and GPU memory efficiency all matter.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install vllm
or

Click the Install button at the top of this page for one-click setup

When to Use vLLM Serving

Best Fit

  • You need to serve LLM endpoints to multiple concurrent users and require high throughput (100+ req/sec).
  • You want an OpenAI-compatible API so existing SDKs and tools work without code changes.
  • You have large models (30B–70B+) and need quantization or tensor parallelism to fit them in available GPU memory.
  • You are running batch inference jobs over large datasets and want automatic, efficient internal batching.

When Not to Use

  • You need CPU-only or edge/mobile inference — use llama.cpp instead.
  • You are prototyping or running one-off experiments where raw throughput does not matter — HuggingFace Transformers is simpler.
  • You require absolute maximum NVIDIA-specific performance and are willing to accept vendor lock-in — TensorRT-LLM may outperform vLLM on H100s.

Key Features

PagedAttention

Manages GPU KV cache in fixed-size memory blocks, eliminating fragmentation. This is the core innovation enabling up to 24x throughput gains over standard inference.

OpenAI-Compatible API

Launches a server that accepts the same request format as OpenAI's chat and completions endpoints. Any client using the OpenAI SDK can switch to vLLM by changing base_url to http://localhost:8000/v1.

Continuous Batching

Dynamically combines new incoming requests with in-progress ones, keeping GPU utilization consistently high across fluctuating traffic patterns.

Quantization (AWQ, GPTQ, FP8)

Serves pre-quantized models with minimal accuracy loss. AWQ is recommended for 70B models, GPTQ offers broad model support, and FP8 delivers maximum speed on H100 GPUs.

Tensor Parallelism

Splits model layers across multiple GPUs using a power-of-2 shard count. Enables serving 70B+ models across 2–8 GPUs without custom sharding code.

Prometheus Metrics & Prefix Caching

Exposes vllm:time_to_first_token_seconds, cache utilization, and queue depth on a dedicated metrics port. Prefix caching reuses cached system-prompt KV states to reduce TTFT for repeated contexts.

Use Cases

Production Chat API

Deploy a vllm serve instance behind a reverse proxy to power a customer-facing or internal chatbot. The OpenAI-compatible endpoint means zero changes to existing frontend code.

Offline Batch Processing

Pass thousands of prompts to llm.generate() in a single call. vLLM handles internal batching automatically, making it efficient for dataset annotation, evaluation pipelines, or bulk content generation.

Large Model on Limited Hardware

Serve a 70B model on a single A100 80 GB or across two A100 40 GB GPUs using AWQ quantization and tensor parallelism, achieving production-grade throughput without expensive multi-node setups.

Multi-GPU Inference Infrastructure

Containerize vLLM with Docker or Kubernetes and scale horizontally. The built-in metrics endpoint integrates directly with Grafana/Prometheus stacks for SLA monitoring.

Requirements

  • pip install vllm (installs torch and transformers as dependencies)
  • NVIDIA GPU with sufficient VRAM (primary platform); AMD ROCm, Intel GPU, and TPU also supported
  • 7B–13B models: 1× A10 24 GB or A100 40 GB
  • 30B–40B models: 2× A100 40 GB with --tensor-parallel-size 2
  • 70B+ models: 4× A100 40 GB or 2× A100 80 GB; AWQ/GPTQ quantization strongly recommended
  • HuggingFace account and access token for gated models (e.g. Llama 3)
  • Linux or macOS
Connecting to VM...
npx clawhub@latest install vllm
1.4kStars
167Downloads
2Current Installs
📦
v1.0.0Version
View Source

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!