Skip to content
AI-Arena

Hosting Open Weights: Runtimes and Setup

· AI-Arena Editorial

Downloading weights is the easy part. Serving them behind an API — with sane memory use and predictable latency — is where self-hosting decisions get real. Here’s the runtime landscape in one page.

The Three Runtimes You’ll Actually Consider

RuntimeSweet spotWhy you’d pick it
llama.cppLaptops, edge, single-userCPU-friendly, quantized GGUF builds, zero ceremony
OllamaLocal dev, quick experimentsllama.cpp with a friendly model manager; pulls and runs in one command
vLLMProduction servingHigh-throughput batching, OpenAI-compatible API, multi-GPU

The fork in the road is concurrency. One user on a laptop: llama.cpp or Ollama. Many simultaneous requests: vLLM — its batching keeps throughput from collapsing under load, which changes the latency math entirely.

The Setup Path, Honestly

  1. Size the memory: parameters × bits (see quantization), plus KV cache for your context length. Long contexts are memory-hungry at runtime.
  2. Pick the precision: 8-bit if it fits, 4-bit if it doesn’t, below 4-bit only with benchmarking.
  3. Serve an OpenAI-compatible endpoint: all three runtimes speak it (vLLM natively; llama.cpp’s server mode; Ollama similarly) — which keeps your application code swappable between self-hosted and hosted providers.
  4. Benchmark with your traffic: tokens/second at your prompt lengths, not the README’s.

The Operations You Signed Up For

Self-hosting moves the stack from a provider’s plate to yours: model updates (re-download, re-benchmark), security patches for the runtime, capacity planning, and observability. None is hard; all recur. The honest accounting: run both sides of the pricing math — per-token API rates versus hardware + your ops time — before committing.

What the Sheets Tell You Before You Start

On open-weights sheets: the openWeights and license fields (can you legally run this, and quantize it — see licenses explained), parameters (memory math), and the airgap field (whether offline deployment is documented). The servers directory covers the MCP layer on top — tools, not inference.