Option 1: A Hosted API
You call the provider's servers. There is nothing to run. It is the fastest way to start, and often the best for small teams. You pay per token and follow the provider's terms.
Option 2: Self-Hosting
You run an open model on your own or rented GPUs. You gain control and privacy, and you take on the work of servers, scaling, updates and monitoring.
| Tool type | Examples | Good for |
|---|---|---|
| High-throughput inference servers | vLLM, SGLang | Many users on GPU servers |
| Local and edge runtimes | llama.cpp, MLX | Laptops, phones, small machines |
| Library | Hugging Face Transformers | Experiments and custom code |
| Managed endpoints | Cloud model hosting services | Self-host without managing servers |
Batching
A GPU is much more efficient when it handles many requests together. Servers use continuous batching to add new requests into the running batch. This raises total throughput, though each request may wait a little.
Memory Planning
You need memory for the weights and for the KV cache of all active requests. Quantizing weights to fewer bits lowers memory, with some risk of quality loss that you must test.
16 bit, 8B model, 10 users, 1 GB cache each -> 28.0 GB total | 8 bit, 8B model, 10 users, 1 GB cache each -> 20.0 GB total | 4 bit, 8B model, 10 users, 1 GB cache each -> 16.0 GB total
Lower precision can move a model from needing a big server GPU to fitting on a smaller one. Always compare quality before and after quantizing, using your own test set.
A Simple Decision Guide
- Starting out or low traffic: hosted API
- Strict data rules: self-host or a private cloud option
- Very high steady traffic: compare cost of tokens and of GPUs
- Offline or on-device use: local runtime with a small quantized model
Practice
- Change the plan demo to 30 concurrent users
- Write whether your project should use API or self-hosting, and why
- List three things to monitor on a model server
Conclusion
Pick the simplest serving option that meets privacy, cost and speed needs, and plan memory for weights and caches.

