Skip to content

Chapter 5 · Training

Chapter 5 ties everything together: a loss function, the training loop, and generating text from the trained model.

  1. Loss & cross-entropy
  2. The training loop
  3. Text generation
  • @node-llm/core → src/train/trainer.ts — trainModel
  • Runnable: pnpm ch05:train