Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Learn AI in Bits

Learn AI in Bits artwork

077 - What Is AI Training?

Oct 7, 20265 minAudioSeason 1, Episode 77
ShareXLinkedInFacebookWhatsAppEmail

How does an AI model learn in the first place? This episode builds on the show's earlier episodes on tokens, embeddings, attention, and Transformers to explain training: the process that turns a model's huge collection of adjustable parameters into something useful. For a language model, training centers on a surprisingly simple task: predicting the next token. Using the illustrative example "The cat sat on the...", the episode shows a model producing probabilities across possible next tokens, with the gap between its prediction and the correct answer measured by a loss function. Lower loss means a better prediction, and backpropagation is how the model figures out which of its millions or billions of parameters contributed to that error and in which direction each one should change, by calculating gradients. The episode explains how frameworks like PyTorch use automatic differentiation to calculate those gradients through a model's computation graph via the chain rule, instead of deriving equations by hand, and how an optimizer such as gradient descent then nudges each parameter in the direction that reduces loss, using the metaphor of moving downhill across a loss landscape. It walks through the full loop, batch by batch: predict, measure the loss, backpropagate, update parameters, repeat, with an epoch marking one complete pass through the training data. It also draws a clear line between training and inference: during training the model's errors change its parameters, while during inference those parameters are fixed, so a chatbot responding to a question is running on weights it already learned rather than learning from that individual conversation. The episode closes on two practical points: models can overfit, performing well on training data but worse on new data, and data quality shapes outcomes as much as scale does, since bad, duplicated, biased, or contaminated data can produce bad results regardless of model size. Sources & References PyTorch: The Fundamentals of Autograd - https://docs.pytorch.org/tutorials/beginner/introyt/autogradyt_tutorial.html PyTorch: Automatic Differentiation with torch.autograd - https://docs.pytorch.org/tutorials/beginner/basics/autogradqs_tutorial PyTorch: Optimizing Model Parameters - https://docs.pytorch.org/tutorials/beginner/basics/optimization_tutorial.html PyTorch: Quickstart - https://docs.pytorch.org/tutorials/beginner/basics/quickstart_tutorial.html Li et al.: Mechanics of Next Token Prediction with Self-Attention - https://arxiv.org/abs/2403.08081 Voice narration is AI-generated.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. 099 - How Does an LLM Generate Text?

    Nov 23, 20265 minAudio

    Follow a prompt through the inner workings of a large language model. This episode explains tokenization, embeddings, transformer layers, attention, logits, probability selection, and the KV cache. It also compares...

    Credit the people on this episode

  2. 098 - Product Managers: What AI Skills Are Companies Looking for?

    Nov 23, 20265 minAudio

    Explore the AI skills employers increasingly expect from product managers working on AI products. This episode covers core product management, AI literacy, model and agent fundamentals, evaluation, product metrics, and...

    Credit the people on this episode

  3. 097 - Developers: What AI Skills Are Companies Looking?

    Nov 23, 20266 minAudio

    Companies are looking for developers who can combine strong software fundamentals with practical AI skills. This episode looks at AI-assisted development, model APIs, RAG, agents, evaluation, debugging, and system...

    Credit the people on this episode

  4. 096 - Structured Outputs — How to Make AI Return Valid JSON

    Nov 22, 20265 minAudio

    Structured outputs help AI models return data that software can reliably read. This episode explains JSON, JSON Schema, and the difference between JSON mode and schema-constrained responses. It also compares how OpenAI,...

    Credit the people on this episode

  5. 095 - Function Calling: How AI Uses Tools

    Nov 22, 20265 minAudio

    Function calling lets AI models work with external tools, APIs, and business systems. This episode explains the tool-calling loop, how applications define and execute functions, and how OpenAI, Claude, Gemini, and...

    Credit the people on this episode