How My AI Stack Fits Together
A plain-language map of the layers in my AI stack, what each one does, and which project page shows it, with a glossary of the terms those pages use.
Ollama
Ollama is the local model runtime I use to serve open-weight language models on my own GPUs.
Ollama is a runtime for downloading and serving open-weight language models on local hardware. It exposes an HTTP API that other tools can call.
I run Ollama on GPU-backed virtual machines in my homelab. It serves the models, and LiteLLM sits in front of it so that callers use one gateway instead of talking to the runtime directly. I also work on model load behavior and on how thinking modes are switched per model. See Local LLM serving platform.
Ollama makes model management simple, has a large catalog of quantized models, and offers an OpenAI-compatible endpoint. I run one instance per GPU, and every instance reads the same model files from shared storage. A model setting makes a load that does not fit in GPU memory fail with an error, so a model never spills onto the CPU and runs slowly. The trade-off is that its OpenAI-compatible endpoint ignores a per-request context size, so I set the context size once, in each model’s declaration.
For high-throughput serving to many concurrent users, I would choose a server built for request batching, such as vLLM. Ollama is a good fit for a small number of users and for trying many models.
For how this fits with the rest of my AI stack, see How my AI stack fits together.
A plain-language map of the layers in my AI stack, what each one does, and which project page shows it, with a glossary of the terms those pages use.
Why I run a homelab with local GPUs and self-hosted software: some workloads have to run locally, running it myself shows me how the large providers work, and it lets me build for clients in both places.
How I run open-weight models on homelab GPUs behind the same kind of API the hosted providers use, so apps can switch between local and cloud models by configuration, and so I understand the hosting problems those providers solve.
A 4-node Proxmox cluster running Kubernetes, Ceph, site-to-site VPNs to AWS, GitOps pipelines, and a full observability stack — built to test every architecture I recommend to clients.