# Appendix A2: Cheat sheet

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

*The essentials for looking things up: working out whether a model fits, how fast it writes and what it costs, the commands for Ollama, llama.cpp and MLX, and two checklists for agents.*

Reading time with exercises: 20 minutes

For agents, this page is split into 3 parts so that each part can be fetched in full. Read the parts the question needs.

## Parts

### Part 1: https://llm.yoga/en/a2-spickzettel-1.md

- **Introduction**: This cheat sheet sums up what the chapters work out step by step.
- **Formulas**: Calculate with the measured bits per weight, not the nominal number (Q4_K_M is 4.89, not 4).
- **Rough figures**: English: 1 token ≈ 4 characters, 100 tokens ≈ 75 words (OpenAI).

### Part 2: https://llm.yoga/en/a2-spickzettel-2.md

- **Commands**: In the chat: /set parameter num_ctx 8192.
- **Decision aids**: Before anything else comes an evaluation with fixed test cases.
- **Checklist for agents**: Simplest solution first: a single call, then a workflow (chaining, routing, parallelization), only then a free-running agent.

### Part 3: https://llm.yoga/en/a2-spickzettel-3.md

- **Checklist for security**: Rule of Two: no session has untrusted inputs, access to private data and a way out all at once without approval.
