- Resources
- Courses & Learning
- Local AI Models
Courses & LearningFree
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.
5 modules · 34 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
Understand open weights
Separate weights, architecture, training, inference, licenses, and the wider meaning of open source AI.
- 01 Weights are learned numbers
- 02 Separate training from inference
- 03 Architecture, weights, and runtime
- 04 Open weights and open source AI
- 05 Read the model card and license
- 06 Check your understanding: open weights
- 2
Choose a model that fits
Compare capabilities, parameter counts, quantization, formats, context, memory, and task quality.
- 07 Start from the task
- 08 Parameters and memory
- 09 Understand quantization
- 10 Safetensors and GGUF
- 11 Context and the KV cache
- 12 Build a small evaluation
- 13 Check your understanding: choosing a model
- 3
Run models locally
Install Ollama, manage model files, use the local API, stream responses, and measure performance.
- 14 Choose a local runtime
- 15 Install and check Ollama
- 16 Pull and run your first model
- 17 Call the local chat API
- 18 Call Ollama from Node.js
- 19 Stream and measure responses
- 20 Check your understanding: running models locally
- 4
Build a local AI feature
Create a Node.js summarizer with structured output, timeouts, cancellation, fallback behavior, and focused tests.
- 21 Define the feature boundary
- 22 Request structured output
- 23 Add timeout and cancellation
- 24 Add a deterministic fallback
- 25 Use tools with a permission boundary
- 26 Keep the provider swappable
- 27 Test the local AI feature
- 28 Check your understanding: building a local feature
- 5
Operate local AI responsibly
Review privacy, model supply chains, permissions, upgrades, costs, evaluations, and production boundaries.
- 29 Map the complete data flow
- 30 Verify model files and code
- 31 Pin and upgrade models
- 32 Understand the real cost
- 33 Complete the local summarizer
- 34 Check your understanding: operating local AI
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 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.
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.
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.