Skip to main content
vLLM is a high-performance inference engine for large language models that provides significant performance improvements for local inference. It’s designed to maximize throughput and memory efficiency for serving LLMs.

Prerequisites

  1. Install vLLM:
  2. Start vLLM server:

Usage

Configuration Parameters

Environment Variables

You can set these environment variables instead of specifying them in config:

Benefits

  • High Performance: 2-24x faster inference than standard implementations
  • Memory Efficient: Optimized memory usage with PagedAttention
  • Local Deployment: Keep your data private and reduce API costs
  • Easy Integration: Drop-in replacement for other LLM providers
  • Flexible: Works with any model supported by vLLM

Troubleshooting

  1. Server not responding: Make sure vLLM server is running
  2. 404 errors: Ensure correct base URL format
  3. Model not found: Check model name matches server
  4. Out of memory: Try smaller models or reduce max_model_len

Config

All available parameters for the vllm config are present in Master List of All Params in Config.