Open-weight models from families such as Llama, Qwen, Gemma, Mistral and others are now good enough for many everyday tasks, and tools like Ollama and LM Studio make running them almost as easy as installing an app. Local models keep data on your machine, work offline and have no per-request fees. This course shows how to get them running well, choose the right model for your hardware, and plug them into your own tools and code.
What you'll learn
- Why run models locally: privacy, cost, offline use and where hosted models are still better
- Installing and using Ollama: pulling models, Modelfiles, parameters and the local API
- LM Studio for browsing, testing and serving models through a graphical interface
- llama.cpp and the GGUF format, and what tools like Ollama build on
- Quantisation explained: what Q4, Q5 and Q8 mean for quality, speed and memory
- Sizing hardware: RAM, VRAM, Apple Silicon unified memory, context length and tokens per second
- Choosing models for chat, coding, embeddings and vision, and reading model cards and licences
- Using OpenAI-compatible local endpoints from Python, JavaScript and existing tools
- Chat interfaces such as Open WebUI, and private question-answering over your own documents
- Sharing a local model on a small office network safely
Who it's for
- Developers who want a private, free-to-run model for coding and experiments
- Small businesses handling sensitive documents that should not leave their machines
- Tech enthusiasts and students exploring open-weight AI
Prerequisites
- Comfortable installing software and using a terminal (see Linux Command Line for Developers)
- A computer with at least 16 GB of RAM; a recent GPU or Apple Silicon Mac makes a big difference
- Basic Python is useful for the API modules but not essential
Outcomes
By the end of this course you will be able to:
- Install, run and configure local models with Ollama and LM Studio.
- Pick a model and quantisation level that fit your hardware and task.
- Call local models from your own scripts and apps through a standard API.
- Set up a private chat and document Q&A tool for yourself or a small team.
Projects you'll build
- A model benchmark on your own machine - A small script that runs the same prompts against several models and quantisation levels and records speed, memory use and answer quality. You practise choosing models with evidence rather than leaderboards.
- A local AI helper script - A Python or JavaScript tool that uses Ollama's OpenAI-compatible API to summarise documents, draft replies or extract fields into JSON. You practise structured output and prompt design with smaller models.
- A private document Q&A assistant - A chat interface over your own PDFs and notes using local embeddings and a vector store, with nothing leaving your machine. You practise chunking, retrieval and checking answers against sources.
Tools you'll use
- Ollama and LM Studio
- llama.cpp and GGUF model files
- Open-weight models such as Llama, Qwen, Gemma, Mistral and DeepSeek families
- Open WebUI for a browser chat interface
- Python or Node.js with the OpenAI-compatible client libraries
- Local embedding models and a vector store such as Chroma or pgvector
Course outline
| Module | Topic |
|---|---|
| 1 | Local versus hosted models: honest trade-offs |
| 2 | Getting started with Ollama |
| 3 | Getting started with LM Studio |
| 4 | llama.cpp, GGUF and how inference works |
| 5 | Quantisation and model sizes |
| 6 | Hardware sizing and performance tuning |
| 7 | Choosing models and reading licences |
| 8 | Local APIs from Python and JavaScript |
| 9 | Local embeddings and private document Q&A |
| 10 | Chat interfaces and team access |
| 11 | Security and updates for local models |
| 12 | Project: a private assistant for your own files |
FAQ
Are local models as good as the best hosted ones?
Usually not for the hardest tasks. The largest hosted models still lead on complex reasoning, but smaller local models handle many summarising, drafting, coding and extraction tasks well. The course helps you test that on your own work.
Do I need an expensive GPU?
No. Small models run on ordinary laptops, just more slowly. We show what to expect on different machines so you can decide before buying anything.
How is this different from the fine-tuning course?
This course is about running existing models. Fine-Tuning and Open-Weight LLMs covers training your own variants and serving them at scale.
What is the most common beginner pitfall?
Downloading the largest model that fits on disk and finding it painfully slow, because it does not fit in GPU or unified memory. We show how to estimate memory needs, and why a smaller model with a sensible context length often gives better results in practice. For production retrieval, see RAG in Production.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.