Skip to content
Courses/Local MLOps and model deployment/Serving map: Ollama, llama.cpp, vLLM

Serving map: Ollama, llama.cpp, vLLM

Running a model on your machine is the first step. Serving it well means a stable API, limits, logs, metrics, queues, cache, and a clear way to switch models without breaking the app.

  • Choose between Ollama, llama.cpp, vLLM, LiteLLM, and Ray Serve depending on the use case.
  • Distinguish local demos, internal services, and real production.
  • Design a minimal architecture with gateway, observability, and evals.

Quick rule

  • Ollama: local prototypes, teaching, personal apps, and small teams.
  • llama.cpp server: lightweight GGUF, modest CPU/GPU, fine control, and a simple local server.
  • vLLM: GPUs, high performance, batching, OpenAI-compatible API, and large models.
  • LiteLLM: gateway to unify providers, keys, budgets, cache, and fallbacks.
  • Ray Serve: scale multiple replicas, multi-model, autoscaling, and production patterns.

Minimal architecture

Terminal
web app
  -> own API /api/chat
  -> LiteLLM gateway
  -> local backend: llama.cpp | vLLM | Ollama
  -> observability: Langfuse / OpenTelemetry
  -> evals: promptfoo or own tests
  -> logs: request_id, model, latency, cost, result
Complete Aulafy mapSee how this lesson fits without leaving your path.

Complete Aulafy map

How all courses connect

This is not a checklist. Start with the foundation, choose an outcome, and go deeper only when your project needs more control.

  1. 1Understand
  2. 2Apply or build
  3. 3Operate with confidence
01

Choose an application

Turn the foundation into a visible outcome: a website, a business improvement, media, or an interactive experience.

Continue into the technical branch when you need to maintain code, data, or infrastructure.

02

Build with code

Prepare your environment, work with coding agents, and run models while keeping control of your projects.

This branch prepares you to design and operate reliable AI systems.

03

Take systems to production

Combine retrieval, agents, evaluation, security, deployment, and model adaptation when the problem requires it.

You do not need every course: choose the component your system needs and return as it grows.

View full catalogue