- Resources
- Courses & Learning
- Build a Language Model on Your Mac
Courses & LearningFree
Build a Language Model on Your Mac
Train a small language model with Language Model Builder on a Mac. Covers tokens and embeddings, designing the run, pre-training and reading loss, fine-tuning with SFT and DPO, and comparing checkpoints in a lab report.
6 modules · 29 lessons. Readable online with no signup, or offline as a PDF or EPUB via the free newsletter.
View course (opens in new tab)Curriculum
- 1
Plan the experiment
Install the app, set realistic expectations, and define what you will measure.
- 01 What we are building
- 02 Install the app and check your Mac
- 03 What a small model can and cannot do
- 04 Start a model lab notebook
- 05 Check your understanding: plan the experiment
- 2
See what the model sees
Inspect tokens, embeddings, attention, and the transformer path.
- 06 Tokens and token IDs
- 07 Run the tokenizer playground
- 08 Explore embedding space
- 09 Trace a transformer prediction
- 10 Check your understanding: model foundations
- 3
Design the run
Choose the model shape, tokenizer, data, and practical resource budget.
- 11 Choose a model blueprint
- 12 Parameters, memory, and training estimates
- 13 Choose a tokenizer
- 14 Select and prepare a dataset
- 15 Check your understanding: design the run
- 4
Pre-train and observe
Run training over time, read loss, sample checkpoints, and diagnose results.
- 16 Start a pre-training run
- 17 Pause and return later
- 18 Read training and validation loss
- 19 Checkpoints and sampling
- 20 Diagnose poor results
- 21 Check your understanding: pre-train and observe
- 5
Shape model behavior
Use SFT, preference data, chat, and inspection tools deliberately.
- 22 Run supervised fine-tuning
- 23 Preference data and DPO
- 24 Chat with your model
- 25 Inspect the model with visualization tools
- 26 Check your understanding: shape behavior
- 6
Compare and report
Compare checkpoints fairly and document what the experiment proved.
- 27 Compare checkpoints fairly
- 28 Write the model lab report
- 29 Final check: compare and report
Author
Flavio CopesMore from Flavio Copes
AI Agent Skills
Turn a repeated workflow into an Agent Skill, design its discovery and activation, write SKILL.md, bundle scripts, references, and assets, then evaluate, secure, and ship it.
AI Fundamentals
How language models work, writing prompts and project rules, curating context, agents and tools, verifying AI output, and using AI safely.
Build with MCP
Build a TypeScript MCP server with tools, resources, and prompts, move it to remote HTTP with authorization and security boundaries, then deploy and review it.
Local AI Models
Choose an open-weight model that fits your hardware, run it locally with Ollama and Node.js, build a private AI feature with structured output and fallbacks, and operate local AI responsibly.
MCP
What MCP solves, how hosts, clients, servers, tools, resources, and prompts fit together, and how to connect, configure, test, and troubleshoot an existing server you trust.
No resources match your search.