Inference Server
A service that keeps the model in memory and handles requests from clients. It turns a 'model' into an 'API'.
Why is it needed
Running a model through Python is fine for experiments. But in production, you need:
- simultaneous handling of many requests;
- management of VRAM;
- stability and monitoring.
All of this is provided by an inference server.
Popular solutions
| Server | Feature |
|---|---|
| vLLM | High throughput, PagedAttention |
| Ollama | Easy local deployment |
| TensorRT-LLM | Optimized for NVIDIA |
| TGI (Hugging Face) | Open source, with monitoring |
How it looks
vllm serve Qwen/Qwen2.5-7B-Instruct --port 8000
After starting, the server returns an OpenAI-compatible API, and clients connect at http://host:8000/v1.