# Chapter 0: How to use this course

Part of the course “AI from Zero to Autonomous Agents” (https://llm.yoga/en). Page for humans: https://llm.yoga/en/00-kurs-nutzen

*Three learning paths, a guide to your hardware, and a few reading aids before you start.*

About 10 min to read · about 5 min hands-on exercise

**Start with the missions**

This chapter also comes as 2 short missions with a case, a decision and feedback, about 10 minutes each:

- [0.1 Is my laptop enough for local AI?](https://llm.yoga/en/einsatz-0-1.md)
- [0.2 My Mac is faster than in the course. Is the course wrong?](https://llm.yoga/en/einsatz-0-2.md)

**Getting started**

To learn to drive, you don’t need to know how a fuel injection pump works. To service your own car, you do. And to rebuild a car, you need both, plus the tools. AI is similar. You can use ChatGPT or Claude without knowing what a token is. But as soon as you want to run a model on your own computer, build an agent, or judge whether a provider is telling you the truth about “private” and “secure”, you need a picture of what happens under the hood.

That’s why this course works in layers: first the terms, then the inner workings of a model, then how models connect to knowledge, tools and voice, and finally agents that work on their own. You decide how deep you go.

**Learning goals**

- You know how the course is structured and which chapters build on each other.
- You pick one of the three learning paths to fit your time and your hardware.
- You know which models can realistically run on your computer.
- You can tell the labels “measured”, “checked against the documentation” and “unconfirmed” apart.

## How the course is structured

The course has two levels. The learning path is made of 62 [missions](https://llm.yoga/en/einsaetze) of about ten minutes each, in chapter order: you are the go-to person for AI at your company, you get a case, you decide first, you read at most one screen of explanation, you try something out, and you answer check questions with instant feedback. Behind them are the chapters for reading up, with the full reasoning, worked examples, exercises and sources; every mission points to the matching sections, and every chapter page lists its missions at the top.

The chapters are grouped into four parts and an appendix. Each part builds on the one before; within a part you can also skip around.

- **Part I, Foundations** (chapters 1 to 5): what AI is, what it’s good for and what it isn’t, how a model splits text into tokens and “guesses” the next token, roughly how a transformer works, and what the context is.
- **Part II, What happens inside the model** (chapters 6 to 10): inference, that is, running a model, the KV cache, dense models versus Mixture of Experts, number formats and quantization, and how to run local models in practice.
- **Part III, Knowledge, tools, voice** (chapters 11 to 14): retrieval with RAG, connecting to programs through APIs, tool use and MCP, voice agents for the phone, and memory.
- **Part IV, Agents** (chapters 15 to 19): wrapper and harness, the agent loop, agents that run around the clock, security, and finally a short look at fine-tuning.
- **Appendix**: a four-week study plan, cheat sheet, glossary, final quiz, an overview of the DGX Spark playbooks with Mac versions, and the list of sources.

**Diagram: Structure of the course in four parts.** Four stacked blocks. At the bottom Part I Foundations, above it Part II What happens inside the model, above that Part III Knowledge, tools, voice, at the top Part IV Agents. Arrows show that each part builds on the one below.

Labels in the diagram: Part IV: Agents · Chapters 15 to 19 · Harness, loop, 24/7, security · Part III: Knowledge, tools, voice · Chapters 11 to 14 · RAG, APIs, MCP, voice, memory · Part II: Inside the model · Chapters 6 to 10 · Inference, KV cache, MoE, bits, local · Part I: Foundations · Chapters 1 to 5 · Terms, tokens, transformer, context

Caption: Each part builds on the one below. If you already have experience, you can skim Part I, but read chapters 3 and 5: the course keeps coming back to token guessing and context.

Every chapter follows the same pattern: an opening with an everyday comparison, learning goals, the concept with the why, diagrams, a step-by-step example, an exercise, common misconceptions, four review questions with answers you can expand, and pointers for further reading. The review questions are not an extra. If you can’t answer one, read the section before it again before you move on.

**Diagram: The pattern of every chapter, with the way back when questions remain open.** Nine stations from top to bottom: opening with an everyday comparison, learning goals, concept with the why, diagrams and calculations, step-by-step example, exercise for Mac or Spark, common misconceptions, four review questions, and go further. An arrow leads from the review questions back to the concept: if you can’t answer a question, you read the section again. On the Just understand path, the exercise is skipped.

Labels in the diagram: Every chapter, same pattern · Opening: everyday example · Learning goals · Concept with the why · Diagrams and calculations · Step-by-step example · Exercise (Mac or Spark) · Common misconceptions · 4 review questions · Go further · Still unsure: · read the · section · again · “Just · understand” · skips this

Caption: Read from top to bottom, this is the route through every chapter. The arrow on the right is the most important part: the review questions are the checkpoint, and if you get stuck there, you go back to the concept instead of moving on.

## Three learning paths

Not everyone wants to or can do everything. That’s why there are three paths. You can switch at any time.

| Path | For whom | What you do |
| --- | --- | --- |
| Just understand | You want to join the conversation, judge providers and make decisions without installing anything yourself. | Read all chapters, follow the diagrams and worked examples, answer the review questions. Skip the exercises. About 15 to 20 hours. |
| Hands-on on the Mac | You have a MacBook with Apple Silicon (M1 or newer) and want to run models yourself. | In addition, the exercises in the “On the MacBook” version. Small models, short runs. About 30 to 40 hours, spread over four weeks ([study plan](https://llm.yoga/en/a1-lernplan.md)). |
| All in with DGX Spark | You have an NVIDIA DGX Spark or a comparable computer with a lot of GPU memory. | In addition, the “On the DGX Spark” version and the matching NVIDIA playbooks ([overview](https://llm.yoga/en/a5-spark-und-mac)). Larger models, longer contexts, fine-tuning. |

**Diagram: Decision aid: which of the three learning paths fits.** Three questions from top to bottom. Do you want to run models yourself? No: the Just understand path, read all chapters without exercises, 15 to 20 hours. Yes: do you have a DGX Spark or a similar computer? Yes: the All in with DGX Spark path with the Spark version and playbooks. No: do you have a Mac with Apple Silicon, M1 or newer? Yes: the Hands-on on the Mac path, 30 to 40 hours over four weeks. No: Just understand, and try things with cloud models through a subscription or API. You can switch at any time.

Labels in the diagram: Which path fits you? · Run models · yourself? · no · Just understand · read it all, · no exercises, · 15 to 20 h · yes · DGX Spark or · similar machine? · yes · All in with · DGX Spark · Spark version · and playbooks · no · Apple Silicon Mac · (M1 or newer)? · yes · Hands-on · on the Mac · 30 to 40 h · over 4 weeks · no · No suitable computer · Just understand; try cloud models · via subscription or API · You can switch anytime.

Caption: Read from top to bottom and follow the first arrow that applies to you. The hours come from the table; if you don’t have a suitable computer but still want to try something, use the cloud models from the hardware guide.

The exercises are deliberately small. The point is to see an effect with your own eyes, for example how memory grows when you enlarge the context window, not to build a product. If you do the exercises, you will still have all the parts an agent of your own needs by the end of the course: a local or rented model, tools, memory, a voice if you want one, and the knowledge of how to secure it.

## Hardware guide

For language models, one thing matters most: how much fast memory is available to the graphics unit (GPU). On Macs with Apple Silicon, the processor and the GPU share the memory (unified memory), so the whole memory counts there, minus what macOS and your apps need. You’ll learn how to calculate this exactly in [chapter 9](https://llm.yoga/en/09-quantisierung-3.md). As a first orientation, based on the table in [chapter 10](https://llm.yoga/en/10-lokale-modelle.md):

| Computer | What runs well | Limit |
| --- | --- | --- |
| Mac with 8 GB | models up to about 4 billion parameters in 4 bits, such as `qwen3:1.7b` or `qwen3:4b` | short context, few other apps running |
| Mac with 16 GB | up to 8 billion parameters, such as `qwen3:8b` or `llama3.1:8b` | 12 to 14 billion models barely fit |
| Mac with 24 GB (main version of this course) | up to 14 billion comfortably, `gpt-oss:20b` with a short context | 30 billion models don’t fit |
| DGX Spark with 128 GB, also with 64 GB through OEM partners | according to NVIDIA, with 128 GB models up to about 200 billion parameters, such as `gpt-oss:120b`; with 64 GB up to about 100 billion | memory bandwidth of 273 GB/s limits the speed of large dense models |
| No suitable computer | cloud models through an API or subscription (Claude, ChatGPT, Gemini) | data leaves your computer, costs per use |

**Diagram: Model sizes versus the usable memory of Macs with 8, 16 and 24 GB.** Horizontal bars for the file sizes of six models: qwen3:1.7b 1.4 GB, qwen3:4b 2.5 GB, qwen3:8b 5.2 GB, qwen3:14b 9.3 GB, gpt-oss:20b 14 GB, qwen3:30b 19 GB. Three dashed lines show the most memory the model gets on a Mac: about 5.3 GB with 8 GB, about 10.5 GB with 16 GB and about 19.1 GB with 24 GB. qwen3:8b reaches the 8 GB line, qwen3:30b reaches the 24 GB line and therefore doesn’t fit.

Labels in the diagram: What fits on which Mac? · 8 GB · ≈ 5.3 · 16 GB · ≈ 10.5 · 24 GB · ≈ 19.1 · qwen3:1.7b · 1.4 · qwen3:4b · 2.5 · qwen3:8b · 5.2 · qwen3:14b · 9.3 · gpt-oss:20b · 14 · qwen3:30b · 19 GB, doesn’t fit · 0 · 5 · 10 · 15 · 20 · GB · Dashed: the most memory the model can get · on the Mac. The context needs more on top.

Caption: A model fits comfortably if its bar ends well to the left of the line, because the context still needs room to the right of it (for an 8B model, about 0.6 GB for 4,096 tokens). File sizes and the 24 GB limit come from [chapter 10](https://llm.yoga/en/10-lokale-modelle.md); the limits for 8 and 16 GB are estimated there at two thirds. Scale: 1 GB equals 10 pixels.

Even without your own hardware, you’ll learn everything important in this course. The concepts are the same whether a model runs on your desk or in a data center.

**Diagram: Memory of a MacBook with 24 GB and a DGX Spark with 128 GB at the same scale.** Two bars at the same scale. At the top the MacBook with 24 GB: gpt-oss:20b takes up 14 GB, up to the GPU limit of about 19 GB there is room for the context, the rest belongs to macOS and the apps. At the bottom the DGX Spark with 128 GB: gpt-oss:120b takes up 65 GB, a little over half, the rest is free. According to NVIDIA, the Spark with 128 GB handles models up to about 200 billion parameters.

Labels in the diagram: 24 GB versus 128 GB · MacBook with 24 GB · gpt-oss:20b, 14 GB · DGX Spark with 128 GB · gpt-oss:120b, 65 GB · free · Model weights · Rest up to GPU limit: context · macOS, apps, free · Spark with 128 GB (NVIDIA): up to 200B parameters

Caption: Both bars use the same scale (1 GB equals 2.5 pixels). The largest model that fits on the test Mac is smaller than the free remainder on the Spark. Sizes according to ollama.com, as of November 24, 2026.

## How to read the labels

AI changes fast. Model names, prices and commands that are right today can be outdated in three months. All facts in the course are as of November 25, 2026, and were checked against the primary source: the provider’s page, the model card, the official docs or the paper. Where that wasn’t possible, the text says so. You’ll come across three labels:

- (Measured on an M4 Mac (24 GB) on November 24, 2026) I measured these values for the course on a MacBook with an Apple M4 and 24 GB of memory. The computer wasn’t idle at the time, so speed values are on the cautious side. Memory values and ratios are reliable.
- (Checked against the documentation, not run here) The command comes from the official documentation and was looked up there, but it wasn’t tried out for the course. Small differences between versions are possible.
- (Unconfirmed) A claim that couldn’t be backed by any primary source. It only appears when it helps understanding, and you shouldn’t pass it on without checking it.

**Diagram: The three labels: where a claim comes from and how far you can rely on it.** Three boxes from top to bottom. Measured: run and measured on the test Mac with an M4 and 24 GB; memory values and ratios are reliable, speed rather cautious. Checked against the docs: looked up in the official documentation but not run; small differences between versions are possible. Unconfirmed: no primary source found, only there to aid understanding; don’t pass it on without checking.

Labels in the diagram: Where does it come from? · measured · On the test Mac (M4, 24 GB) · run and measured here · Memory and ratios reliable, · speed rather cautious · checked against docs · In the official docs · looked up, not run · small differences · between versions · unconfirmed · No primary source found, · only there to aid understanding · check before · passing on

Caption: Each box names the origin at the top and, after the arrow, what you can do with the claim. Green doesn’t mean “true” here, but “I measured it myself”; red means “not backed by a source”, not “wrong”.

Statements from videos are marked as such (“The video says …”). Where a number from a video is wrong, the correct one is given next to it.

## The boxes in the text

**Key point**

The core of a section in two or three sentences. If you read only these boxes, you have the framework of the course.

**Watch out**

Traps, exceptions, and places where many guides online are wrong or outdated.

**How tybo does it**

tybo is a homemade assistant that runs around the clock, takes messages from Telegram, the browser and the terminal, and has Claude Code answer them. In this course it serves as a running example of how the building blocks work together in a real system. It is introduced in detail in [chapter 17](https://llm.yoga/en/17-selbststaendige-agenten.md).

**Shown in the video**

Pointers to spots in the source videos, with a timestamp. One click opens the video at the right place.

## What the course builds on

The course is an original work. Some of its ideas, structure and examples come from three German-language video courses by Everlast AI (private company AI, phone agents, AI knowledge management), from two English-language video playlists on the “Claude Certified Architect” and “Google Generative AI Leader” certifications, and from NVIDIA’s DGX Spark playbooks. On top of that come the documentation of the tools and the original papers. All sources are linked in the chapters and collected in the [list of sources](https://llm.yoga/en/a6-quellen).

## Exercise: place your computer

**Diagram: What happens on the computer during the exercise.** Five steps. First, you type sysctl -n hw.memsize into the terminal. Second, macOS reports the chip Apple M4 and 24 GB of memory. Third: only part of it belongs to the model, about 19 GB on the test Mac. Fourth, you read the matching model size from the table, up to 14 billion parameters comfortably, such as qwen3:14b. Fifth, you check with ollama --version whether Ollama is there; if not, the installation comes in chapter 10.

Labels in the diagram: What the exercise does · 1 · You type in Terminal · sysctl -n hw.memsize · 2 · macOS reports chip and memory · Apple M4 · 24 GB · 3 · Only part of it goes to the model · for the model ≈ 19 GB · System · 4 · Table or chart above: model size · up to 14B comfortably, qwen3:14b · 5 · ollama --version · found: continue; not found: · installation in chapter 10

Caption: The values in steps 2 and 3 come from the test Mac; you’ll see your own. Metal reported the limit of about 19 GB on this Mac ([chapter 10](https://llm.yoga/en/10-lokale-modelle.md)). (Measured on an M4 Mac (24 GB) on November 24, 2026)

**Exercise: What’s inside your computer?**

Goal: you know which learning path and which model size suit you. Takes about 5 minutes.

**On the MacBook (24 GB)**

1. Open Terminal (Applications, Utilities, Terminal).

2. Show the chip and memory:

   ```
   sysctl -n machdep.cpu.brand_string
   ```

   ```
   sysctl -n hw.memsize | awk '{print $1/1024/1024/1024 " GB"}'
   ```

   On the test Mac the result was `Apple M4` and `24 GB`. (Measured on an M4 Mac (24 GB) on November 24, 2026)

3. Check whether Ollama is already installed: `ollama --version`. If the command isn’t found, that’s fine; the installation comes in [chapter 10](https://llm.yoga/en/10-lokale-modelle.md).

4. Look up in the table above which model size fits your memory.

**With 16 GB or 8 GB:** the exercises each name a smaller model. With 8 GB, stick to models up to about 4 billion parameters and short contexts.

**On the DGX Spark**

Log in to the Spark (at the device or via SSH; the playbook [Connect Remotely to Your AI Compute](https://build.nvidia.com/spark/connect-to-your-spark) shows how remote access works) and check the memory with `free -h` and the GPU with `nvidia-smi`. (Checked against the documentation, not run here)

## Common misconceptions

**Diagram: Misconception: local AI needs an expensive graphics card.** Top, red: what people think, local AI needs an expensive graphics card. Bottom, green: how it really is. A bar for a Mac with 8 GB. The model qwen3:1.7b takes up 1.4 GB, about 5.3 GB is usable. That’s enough for the exercises, because they are about effects, not peak performance.

Labels in the diagram: Common belief · Local AI needs an expensive · graphics card. · GPU card · Reality · qwen3:1.7b on a Mac with 8 GB: · 1.4 GB model · ≈ 5.3 GB usable · 8 GB · Enough for the exercises: they are · about effects, not peak speed.

Caption: The bar shows the 8 GB of a small Mac, the dashed line the estimated limit for the model. A small model takes up only a fraction of it. Sizes from [chapter 10](https://llm.yoga/en/10-lokale-modelle.md).

- **Without an expensive graphics card, I can’t take part in local AI.**: Small models with 1 to 4 billion parameters run on any Mac with Apple Silicon and on many ordinary PCs. They are enough for the exercises in this course, because the exercises are about effects, not peak performance.
- **If you understand the technology, you don’t need the foundation chapters.**: Chapters 3 and 5 (token guessing and context) explain the mechanics that later chapters refer to all the time, such as why models hallucinate or why long conversations get more expensive. Skim them, yes; better not skip them.
- **What’s in an AI course stays true for years.**: Concepts like tokens, attention and the KV cache last a long time. Model names, prices and commands go out of date fast. That’s why every such claim carries a date, and the sources are linked so you can check them.

## Review questions

**Review question 1:** Why does the whole memory count toward model size on a Mac with Apple Silicon, while on a typical Windows PC it’s mainly the memory on the graphics card?

**Review question 2:** You have a MacBook with 16 GB and want to try a model with 14 billion parameters. What do you expect?

**Review question 3:** A speed value in the course is labeled “measured on an M4 with 24 GB”. You measure a much higher value on your M4. Does that mean the course is wrong?

**Review question 4:** When would you choose the “Just understand” path even though you have a suitable Mac?

## Go further

- [Four-week study plan](https://llm.yoga/en/a1-lernplan.md) with daily portions.
- [Overview: DGX Spark playbooks and their smaller Mac versions](https://llm.yoga/en/a5-spark-und-mac).
- NVIDIA: [DGX Spark playbooks](https://build.nvidia.com/spark).
- Ollama: [Download for macOS, Windows and Linux](https://ollama.com/download).

## Answers: only reveal them after the learner has answered or explicitly asks

**Review question 1:** On a Mac, the processor and the GPU share the same memory (unified memory). A PC with its own graphics card has two separate memories: the main memory (RAM) and the GPU memory on the card. The model only runs fast if it fits into the GPU memory. A PC with 64 GB of RAM and an 8 GB card can therefore run large models only slowly, because parts of them spill over to the processor.

**Review question 2:** According to the table in chapter 10, `qwen3:14b` in 4 bits is 9.3 GB and barely fits on 16 GB. On top of that come the KV cache and everything macOS and other apps need. It can work if you keep the context short and close other large apps. An 8B model is more comfortable.

**Review question 3:** Not necessarily. Speed depends on what else is running, how warm the computer is and which Ollama version you use. The test Mac was under heavy load during the measurement, as the chapters concerned point out. Memory values and ratios, such as “the small model is several times faster”, should come out similar for you.

**Review question 4:** When your goal is to assess and decide, for example at work: compare providers, estimate costs, spot risks. For that you need the concepts, not the installation. You can catch up on the exercises later if you want to try something yourself.
