Learning path
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.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat you will be able to do
- Run and size open-weight models locally with Ollama
- Chat with private documents without sending them to a cloud service
- Choose between prompting, RAG and fine-tuning for a given problem
- Build a held-out eval set before training anything
- Fine-tune a small model with LoRA and compare it with the base model
Steps
Step 1: 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.
Step 2: 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.
Step 3: 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.
Optional: the same offline approach for audio, with faster-whisper transcribing and an Ollama model summarising.
Step 4: RAG vs long context vs fine-tuning: how to choose
What each approach changes, what it costs, where it fails, and a practical order to try them in before you commit to one.
Most problems people fine-tune for are better solved by retrieval or a better prompt. Read this before training.
Step 5: Write your first LLM eval
Turn real outputs into a small test set, add code-based checks in promptfoo and run them in CI to catch regressions on every change.
Build the eval set first. Without a before-and-after score you cannot tell whether fine-tuning helped.
Step 6: Fine-tuning LLMs guide (opens on Unsloth in a new tab)
Choosing a base model, LoRA versus QLoRA, datasets and hyperparameters, with free notebooks.
External resource, not tracked
Step 7: 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 a LoRA fine-tune yourself and compare it with the base model on your eval set.
Step 8: smol course (opens on Hugging Face in a new tab)
A free course on instruction tuning, evaluation and preference alignment of small models. Start with the instruction tuning unit.
External resource, not tracked
Local models and fine-tuning quiz
7 questions with explanations. Your score is saved when you are signed in.
Final quiz
Related paths
AI foundations
The working vocabulary of modern AI, from prompting and structured output to retrieval, MCP, Agent Skills and prompt injection.
RAG engineer
A RAG course for engineers who want results they can measure: embeddings, pgvector, a pipeline built in a day, golden datasets, LLM judges and tracing.
AI for test engineers
An AI course for testers: apply generative AI to everyday test automation, from AI-assisted test design to generating, healing and reviewing Playwright tests.