Skip to main content
🎤 Luca Berton is speaking at Red Hat Summit & KubeCon EU 2026!Learn more →
intermediate

Spend Fewer Cloud Tokens: Offload Work to a Local Model

Decide which AI tasks to run locally, measure whether the local model is good enough, and reserve cloud calls for work that needs them.

7 lessons33mUpdated November 2026

What you'll learn

  • Compare output quality, latency, and token usage across endpoints
  • Route text processing and summarization to Ollama
  • Measure the effect on coding agents and tool-calling tests

Who this is for

  • • DevOps engineers deepening their expertise
  • • SREs building production-grade systems
  • • Backend developers expanding into infrastructure

Prerequisites

  • • A Mac with Ollama, Python, and a terminal.

Course content

2 modules, 7 lessons, 33m of video

Module 1

3 lessons, 15 min
1

5 min

Which work a small local model can take over, and what it costs in seconds and gigabytes.

2
One endpoint, two APIs

7 min

The same server answers both APIs. Existing tools move with two environment variables.

3
Measure before you move

4 min

Twenty tasks, one check each: pass or fail, seconds and tokens for local and cloud.

Module 2

4 lessons, 18 min
4
Bulk text locally

5 min

The same prompt on many files, on a local model, with a check on every answer.

5
A local summarizer in front of the cloud model

4 min

The local model reads the whole build log. Only its summary and your question go out.

6
Agent test runs on a local model

5 min

Five runs local, three on the cloud side, and a fallback one variable away.

7
A coding agent on a local model, and the before/after table

7 min

What one agent question really costs in tokens, and how much of the work stayed on the Mac.

Get started

Start Free Lesson

First lesson is always free — no signup required

This course includes

7 hands-on lessons
Intermediate level
33m total
Final assessment

Want all courses?

See Pro plan →

Your instructor

Luca Berton

Founder and CEO, Open Empower. About the author

More in AI Homelab on a Mac mini

All courses in this track

Turn a Mac mini into a reproducible homelab server

You will turn an Apple Silicon Mac mini into an always-on home server. You start by planning hardware choices and initializing a Git repository to track your setup steps. This foundation ensures your configuration is documented and ready for automation. You then configure remote access using SSH and Tailscale for secure connectivity. You also adjust power settings to keep the machine running continuously without interruption. Next, you use Homebrew with a Brewfile to manage software packages consistently. You create a Makefile that journals every command and output for full reproducibility. Finally, you add a read-only health check to verify system status. You learn to rebuild the entire setup on a clean machine from your repository.

Beginner · 4 lessons · 15 min · Updated Nov 2026

Preview free lesson

Virtual machines on Apple Silicon

You will build a Linux virtual machine on your Apple Silicon Mac using Colima and the Virtualization framework. You will point Docker to this VM and manage it with simple commands. You will share files between your Mac and the VM using virtiofs mounts. You will run AMD64 container images efficiently using Rosetta translation instead of slow emulation. You will size your VM correctly for your specific Mac hardware to avoid resource issues. You will create a plain Ubuntu VM with Lima for lab environments. You will configure launchd to start your VM automatically when you log in. You will learn to stop and clean up these virtual machines when you are done.

Beginner · 6 lessons · 20 min · Updated Nov 2026

Preview free lesson

Kubernetes on your Mac

You will build a multi-node Kubernetes cluster on your Apple Silicon Mac using kind. You start by creating a single-node cluster and then expand it to three nodes using a configuration file. You install applications with Helm and reach them from your Mac using ingress or Gateway. You also manage persistent storage and resource limits for your pods. You finish by tearing down and rebuilding the entire environment in minutes. You use a Makefile to automate the setup and cleanup process. This ensures your cluster is reproducible and easy to manage. You gain hands-on experience with a real cluster that runs entirely on your laptop.

Beginner · 6 lessons · 23 min · Updated Nov 2026

Preview free lesson