LLM Engineer: From Local Setup to Production · Lesson 1
Running LLMs Locally with Ollama
Installing Ollama on Linux, macOS and Windows, choosing an open model (Gemma 4, Ministral 3, Qwen3.8), Q4/Q8 quantization, Ollama cloud models, connecting a coding agent, and local vs API tradeoffs.
Ollama: a local server for LLMs
Ollama packages the model and the runtime into one program. Once it is installed, the model is available through an OpenAI-compatible REST API on port 11434.
# install: Linux/macOS
curl -fsSL https://ollama.com/install.sh | sh
# install: Windows (PowerShell)
irm https://ollama.com/install.ps1 | iex
# download and run Gemma 4 E4B (the default tag)
ollama pull gemma4
ollama run gemma4 "Hello!"
# Ministral 3 8B from Mistral (~6 GB)
ollama pull ministral-3:8b
On macOS and Windows there is also an Ollama desktop app with a chat window, so you can pick and run a model without the terminal.
The rest of this lesson opens after a free sign-up
Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.
