Skip to content
AWS Certified AI Practitioner (AIF-C01) Exam Prep

Lesson 25 of 34 · 6 min

x
25/34

Training and Fine-Tuning Foundation Models

Video lesson: AIF-C01 25/34: Training and Fine-Tuning Foundation Models

Key training elements (named in the guide; general background)

ElementDataPurpose
Pre-trainingMassive unlabelled data (self-supervised)General knowledge and language
Continued pre-trainingLarge unlabelled domain dataAbsorb a domain's vocabulary (medical, legal, finance)
Fine-tuningSmaller labelled prompt → response examplesSpecific task, format or style
DistillationPrompts answered by a large teacher modelTrain a smaller student to match it

Fine-tuning methods (named in the guide)

  • Instruction tuning: train on instruction → response pairs so the model follows instructions better.
  • Domain adaptation: adapt to a field's language and tasks.
  • Transfer learning: reuse what a model already learned and train only for the new task. Fine-tuning is a form of transfer learning.
  • Continued pre-training: more self-supervised training on domain text.
  • Reinforcement fine-tuning on Bedrock (verified): define reward functions (e.g. in AWS Lambda) that score responses; the model learns from the scores, no labelled pairs needed.
  • RLHF: human rankings train a reward model that guides the FM (general background).

Preparing fine-tuning data (named in the guide; design guidance)

FactorPractice
Data curationClean, deduplicated, correct examples
GovernanceRights to use the data; remove personal data you can't use
SizeEnough examples to cover the task; quality beats quantity
LabellingAccurate, consistent labels (human labelling workflows; SageMaker Ground Truth is now closed to new customers)
RepresentativenessCover the real range of inputs and users, to avoid bias
RLHFHuman preference data for alignment

On Bedrock, fine-tuning uses labelled data in JSONL and creates a private copy of the base model (verified, Bedrock docs and FAQ).

Exam traps

  • Fine-tuning on unlabelled data. Supervised fine-tuning needs labelled pairs; unlabelled domain data is continued pre-training.
  • More data always wins. Biased or noisy data makes the model worse.
  • Fine-tuning to add fresh facts. Use RAG (20).

References

  1. Bedrock model customization — checked Oct 19, 2026
  2. Bedrock fine-tuning — checked Oct 19, 2026
  3. Bedrock FAQs — checked Oct 19, 2026
  4. AIF-C01 Domain 3 — checked Oct 19, 2026

Check your understanding

  • A hospital has millions of unlabelled clinical notes and wants the model to understand medical terms. Method?Show answer

    Answer

    Continued pre-training (domain adaptation).
  • 2,000 example question → ideal answer pairs. Method?Show answer

    Answer

    Supervised fine-tuning (instruction tuning).
  • Which data property prevents a model from serving only one region's customers well?Show answer

    Answer

    Representativeness.
Previous

Progress is saved in this browser.

Next Lesson