Local models
Running open-weight models on your own hardware for privacy, cost or offline use.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
Overview
Open-weight models can be downloaded and run on a laptop, workstation or your own servers with tools like Ollama, LM Studio, llama.cpp or vLLM. Reasons to do it include keeping data on your own machines, working offline, predictable costs and experimenting freely.
The practical knowledge is about fit: how model size and quantisation relate to memory, what speed to expect on CPU, Apple Silicon or a GPU, how to choose a model for a task, and how to expose it through an OpenAI-compatible API so existing tools can use it. Check each model's licence, since open weights do not always mean unrestricted use.
What you will practise
- Estimate whether a model fits your memory at a given quantisation
- Run a model locally and call it through an OpenAI-compatible API
- Pick a model for a task and compare it with a hosted one
- Check the licence attached to open weights
Learning paths
- AI foundations
A free AI foundations course: the working vocabulary of modern AI, from prompting and structured output to retrieval, MCP, Agent Skills and prompt injection.
- Local models and fine-tuning
Run open-weight models on your own hardware, use them on private documents, decide when fine-tuning beats RAG or long context, and try a small LoRA fine-tune.
Tutorials
- 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.
- 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.
Workflow recipes
- 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.
Tools for this skill
9 of 21 tools tagged with this skill.
ComfyUI
Node-graph app for image, video and audio generation.
Continue
Open-source coding agent for VS Code, JetBrains and the terminal, unmaintained since 2026.
DeepSeek
Chat app and API for DeepSeek's open-weight models.
faster-whisper
Whisper reimplemented on CTranslate2: same accuracy, up to four times faster.
Gradio
Python library for web demos of ML models.
Hugging Face
Hub for models, datasets and Spaces, plus open-source ML libraries.
Jan
Open-source desktop chat app that runs local models offline or connects to hosted ones.
llama.cpp
C/C++ inference engine for GGUF models on CPUs and GPUs; many local tools use it.
LLM
CLI and Python library for prompting many models.
Key terms
Words you will meet while learning this, defined in the glossary.
- Inference
Running a trained model to produce outputs, as opposed to training it. Inference cost and speed decide what an AI feature costs to run.
- Mixture of experts (MoE)
A model architecture that routes each token through a few specialised sub-networks, so only part of the model runs per token.
- Model parameters
The numbers learned in training that determine what a model outputs; a model's size is usually quoted as how many of them it has.
- Open-weight model
A model whose trained weights are published for download, whatever the licence terms on their use. Training data and code may stay private.
- Quantization
Storing model weights at lower numerical precision, such as 8 or 4 bits, to reduce memory use and speed up inference at a small quality cost.
- Small language model
A language model small enough, usually up to a few billion parameters, to run cheaply on a laptop, phone or modest GPU.
- Speculative decoding
A speed-up where a small draft model proposes tokens and the large model checks them in one pass, keeping the ones it accepts.
- Throughput (tokens per second)
How many tokens a model or serving system generates per second, measured per request or across all requests.