Skip to content
seekho.
← How AI Models Are Trained: A Visual Guide to Building Models from Scratch

Your journey

27 stops. Sign in to see your ticks and stars on the map. Go at your own pace.

  1. Start Here

    📍 You are hereWhat It Means to Train a ModelTraining means a model guesses, sees how wrong it was, and changes its numbers a little.Lesson
  2. Data, Features and LabelsTraining data is a table of examples.Lesson
  3. Your First Model: Fitting a Line

    A Model Is a Formula with KnobsOur first model is a straight line: price = w × size + b.Lesson
  4. Measuring Mistakes: The LossThe loss is one number for all of a model's mistakes.Lesson
  5. Gradient Descent: Turning the Knobs DownhillGradient descent finds which way each knob makes the loss grow.Lesson
  6. Lab: Train a Line from ScratchIn this lab you write the loss, the slopes and the update step in Python.Lesson
  7. Classifying Things

    From Numbers to Yes or No: Logistic RegressionThe model adds up clues with weights.Lesson
  8. Training, Validation and Test SetsSplit your examples into three piles.Lesson
  9. Overfitting and UnderfittingA model that is too simple misses the pattern.Lesson
  10. Judging a Classifier: Accuracy, Precision and RecallCount the right and wrong answers by type.Lesson
  11. Check Your Understanding: Training BasicsQuiz
  12. Neural Networks from Scratch

    Neurons, Weights and ActivationsA neuron takes some numbers in and gives one number out.Lesson
  13. The Forward PassThe forward pass is how a network makes a guess.Lesson
  14. Backpropagation Without the FearBackpropagation finds how much each knob caused the mistake.Lesson
  15. Lab: Train a Tiny Neural NetworkIn this lab you train a small network on a pattern called XOR.Lesson
  16. Making Training Work: Learning Rate, Batches and EpochsThree settings shape training.Lesson
  17. Models That Write Text

    Tokens and EmbeddingsA model only works with numbers.Lesson
  18. Predicting the Next TokenA text model looks at the text so far.Lesson
  19. Lab: Build a Tiny Text GeneratorYou build a text model that counts which letter comes after which.Lesson
  20. Attention and Transformers in PicturesAttention lets each word look back at earlier words.Lesson
  21. How Large Language Models Are TrainedLarge language models are trained in three stages.Lesson
  22. Training Your Own Models in Practice

    Getting and Cleaning Data ResponsiblyBefore training, make sure you may use the data.Lesson
  23. The Same Ideas in PyTorchPyTorch is a free library that does the same training steps you did by hand.Lesson
  24. Fine-Tuning an Existing Model Instead of Starting OverFine-tuning means you take a model that is already trained.Lesson
  25. Evaluating, Saving and Sharing a ModelTest the model once on data it has never seen.Lesson
  26. Check Your Understanding: Networks, Text and PracticeQuiz
  27. Final Project: Train and Evaluate Your Own ModelPick a small task and data you may use.Project

End of the course

Every stop you finish brings you closer.