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

076 - What Is an AI Transformer [revised episode]?

Oct 6, 20265 minAudioSeason 1, Episode 76
ShareXLinkedInFacebookWhatsAppEmail

What is a Transformer, and why did this one architecture become the foundation for so much of modern AI? This episode builds on the show's earlier episodes on tokens, embeddings, and attention to explain how a Transformer puts those pieces together into a working system. A Transformer is a neural network architecture designed to process sequences, introduced in the 2017 paper "Attention Is All You Need" for machine translation and later adopted far beyond it. Tokens become embeddings, positional information is added so the model knows where each token sits in the sequence, and the result moves through repeated layers combining attention with a feed-forward network, residual connections, and layer normalization, so later layers build on patterns found by earlier ones. The episode uses the original 2017 base model as a concrete example: six encoder layers and six decoder layers, eight attention heads, a 512-dimensional representation per token, and a feed-forward network that expands to 2,048 dimensions before compressing back down. It walks through that model translating English to French, with the encoder building contextual representations and the decoder generating output one token at a time while a mask stops it from looking ahead at tokens it hasn't produced yet. It also draws the distinction between that original encoder-decoder design and the decoder-only Transformers behind modern chatbots like GPT, which skip the encoder entirely and use causal attention to predict the next token from what came before. The episode explains why the architecture scaled so well in the first place: training can process many token positions in parallel instead of one at a time, which fits how modern hardware handles large matrix operations, though standard self-attention's computational cost still grows roughly with the square of sequence length. It closes by stressing that a Transformer is an architecture, not a single model: GPT, BERT, and many other systems are all built from Transformer ideas, using different parts of it for different purposes. Sources & References Vaswani et al.: Attention Is All You Need - https://arxiv.org/abs/1706.03762 PyTorch: Accelerating PyTorch Transformers by replacing nn. Transformer with Nested Tensors and torch.compile() - https://docs.pytorch.org/tutorials/intermediate/transformer_building_blocks.html PyTorch Tutorial: Implementing High-Performance Transformers with Scaled Dot Product Attention - https://docs.pytorch.org/tutorials/intermediate/scaled_dot_product_attention_tutorial Hugging Face: How do Transformers work? - https://huggingface.co/docs/course/chapter1/4 Hugging Face: Transformer Architectures - https://huggingface.co/docs/course/chapter1/6 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