Lesson overview

Control context and generation limits

Control context and generation limits — Local AI with Ollama. Context is a shared budget; Set explicit options; Detect a cut answer. Practical assignment: Lab evidence.

Demo edition. The materials are undergoing editorial review.

Topics covered

  • Context is a shared budget
  • Set explicit options
  • Detect a cut answer

Practical assignment

Lab evidence

The full lesson is available as part of the course.

Continue to learning

Course outline

  1. Choose a model and a private boundary
  2. Download and inspect one local model
  3. Make and inspect the first API call
  4. Control context and generation limits
  5. Compare models with a tiny test set
  6. Recover and document a repeatable setup