Ollama
Runs open-weight models locally with one command and serves an OpenAI-compatible API.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat it is
Ollama downloads and runs open-weight models on macOS, Windows and Linux with commands such as ollama run. It serves a local HTTP API, including an OpenAI-compatible endpoint, so other tools can use the models.
Best for
Local models from the terminal or as a backend.
Skills it helps with
Learn Ollama by doing
- Optimise a prompt automatically with DSPy
Write a signature and a metric, run three optimisers on 30 labelled examples, score 20 held-out ones, and see when hand-tuning wins.
- Stream LLM responses to a web page with server-sent events
A Node server relays tokens as server-sent events, the page renders them as they arrive, and a Stop button cancels.
- Transcribe and summarise audio locally with faster-whisper
Transcribe audio locally with faster-whisper in Python, fix misheard names, then summarise the transcript with a local model through Ollama, all offline.
- Fine-tune a small model with LoRA
Fine-tune a small open model with LoRA using TRL and PEFT, measure it on a held-out set before and after, and decide whether the gain is worth keeping.
- Embeddings and vector search, hands on
Embed documents, store them in Postgres with pgvector, index them and run similarity and hybrid search.
- RAG fundamentals: retrieval before generation
What RAG is and how retrieval-augmented generation works, when it beats long context or fine-tuning, and a minimal working pipeline in about 80 lines of Python.
- Run local models with Ollama
Install Ollama, run an open-weight model on your own machine, call it from scripts over the local API and choose a model size your hardware can handle, offline.
- Chat with private documents on a local model
Chat with PDFs locally: ask questions about contracts, notes and PDFs with Ollama and Open WebUI or LM Studio on your own computer, and check nothing leaves it.
- Extract structured data from PDFs
Turn a folder of PDF invoices into validated JSON with Docling, a Pydantic schema and structured outputs, plus a review file for every one that fails a check.
- Build a no-code AI inbox triage
An AI step labels each email and drafts replies, and a person approves every message before anything is sent.
- Local model servers cheat sheet
Start commands, default ports and OpenAI-compatible base URLs for Ollama, LM Studio, llama.cpp, MLX LM, vLLM and SGLang, checked against each project's docs.
- Ollama commands cheat sheet
Ollama CLI commands, in-chat commands, Modelfile instructions, environment variables and API endpoints on one page, checked against the Ollama docs and source.
Related tools
LLM
CLI and Python library for prompting many models.
DeepSeek
Chat app and API for DeepSeek's open-weight models.
Jan
Open-source desktop chat app that runs local models offline or connects to hosted ones.
LM Studio
Desktop app for finding, downloading and running local models, with a local server.
MLX LM
Runs and fine-tunes LLMs on Apple silicon with MLX.
Hugging Face
Hub for models, datasets and Spaces, plus open-source ML libraries.