vLLM
Overview
vLLM is a high-performance inference server. It is optimized for GPU and can handle multiple requests simultaneously.
Capabilities
- High throughput;
- Efficient VRAM management;
- OpenAI-compatible API;
- Request batching;
- Support for popular open-source models.
Quick Start
pip install vllm
vllm serve Qwen/Qwen2.5-7B-Instruct --port 8000
After starting, the API is available at:
http://localhost:8000/v1
Use Cases
- Server-side inference;
- Multi-user applications;
- Replacing cloud API with local hardware;
- Integration with Docker.
vLLM vs Ollama
| vLLM | Ollama | |
|---|---|---|
| Purpose | Server | Desktop |
| Speed | Very high | Good |
| Load | Multi-user | Personal |
| Windows | Limited | Yes |