Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← All weeks

Advanced and Production AI / Week 22

Fine-Tuning and Adaptation

Build an adapter evaluation study. Adapt a hardware-appropriate model for one narrow task and compare with the unchanged base.

Your lessons

  1. 01

    Choosing and preparing an adaptation task

    60 minutes planned · 7 sections
    Start →
  2. 02

    Training low-rank adapters

    60 minutes planned · 7 sections
    Start →
  3. 03

    Evaluating specialization and forgetting

    60 minutes planned · 7 sections
    Start →

// Put it into practice

An adapter evaluation study

  1. Download week22.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Audit a small narrow-task dataset and choose a justified intervention.
  3. Lesson 2: Train a tiny adapter on an accessible model; compare full and low-rank parameter counts.
  4. Lesson 3: Evaluate base and adapter on identical reserved cases and then restore the base release.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 22 Python lab ↓

Read the script’s setup instructions and run it on your own computer. The website does not execute code or verify your results.

// Independent work

W22-LAB

Week 22: An adapter evaluation study

Adapt a hardware-appropriate model for one narrow task and compare with the unchanged base.

Extend the guided artifact rather than start a second project. Save training and reload evidence, fixed evaluation results, regression slices, and a verified base rollback.

What to produce

  • An adapter evaluation study
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • Save training and reload evidence, fixed evaluation results, regression slices, and a verified base rollback.
  • Each claimed execution is supported by actual saved output.
  • Fixture results and real model results are identified separately.
  • Setup and reproduction use the taught tools without private credentials.
Self-assessment rubric
Technical correctness · 35 points
Implementation or analysis follows the relevant technical mechanism and handles the stated case.
Evaluation and evidence · 30 points
Reproducible tests, appropriate baseline, and accurate interpretation.
Engineering quality · 20 points
Clear structure, safe boundaries, and usable reproduction instructions.
Explanation and reflection · 15 points
Explains tradeoffs, limitations, and next experiment with evidence.

// Retrieve before you reread

Week 22 knowledge check

Try all 6 questions. Check your answers, review the explanations, and retry whenever you like. Answers are checked on this device.

1. An assistant needs today’s changing exchange table and a stable output schema. Which intervention split is justified?
2. Twelve paraphrases come from one vendor manual. Which split best prevents shared-source leakage?
3. A 256-by-512 weight matrix receives rank-four factors. How many adapter values are trainable?
4. A real numeric adapter run changes its factors, preserves the base exactly, and reproduces outputs after reload. What has it demonstrated?
5. An adapter raises target accuracy from 62 to 86 percent but breaks 5 mandatory denial cases. What should the release gate do?
6. An adapter file is removed but its factors remain loaded in a running service. What confirms rollback?

Next: week 23 →