Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Building makemore Part 5: Building a WaveNet

November 21, 2022
by
Andrej Karpathy
YouTube video player
Building makemore Part 5: Building a WaveNet

TL;DR

Implementing a hierarchical language model in PyTorch to improve performance by gradually fusing information from previous characters in the sequence.

Transcript

hi everyone today we are continuing our implementation of make more our favorite character level language model now you'll notice that the background behind me is different that's because I am in Kyoto and it is awesome so I'm in a hotel room here now over the last few lectures we've built up to this architecture that is a multi-layer perceptron ch... Read More

Key Insights

  • 😕 The hierarchical architecture progressively fuses information from previous characters, leading to improved predictions.
  • ❓ The implementation involves using embedding layers, linear layers, and the batch normalization layer.
  • 🇦🇪 The architecture can be further optimized by tuning hyperparameters, such as the number of hidden units and learning rates.
  • 🥺 Setting up an experimental harness and conducting more rigorous experiments could lead to better performance.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is the purpose of making the language model architecture more complex?

By making the architecture more complex, the model can gradually fuse information from multiple characters in the sequence, leading to better predictions and improved performance.

Q: How does the hierarchical architecture differ from the previous architecture?

In the hierarchical architecture, characters are fused in a progressive manner, starting with pairs of characters, then bigrams, and so on, rather than all characters being fed into a single hidden layer at once.

Q: How does the use of batch normalization affect the language model?

Batch normalization helps to control the statistics of the activations by computing running means and variances. It ensures more stable training and improves the performance of the language model.

Q: What challenges arise when implementing the hierarchical architecture?

Challenges include maintaining the correct state of the batch normalization layer, addressing bugs related to training and evaluation mode, and correctly reshaping tensors to match the desired input shapes.

Summary & Key Takeaways

  • The content discusses the implementation of a hierarchical language model using PyTorch.

  • The hierarchical architecture progressively fuses information from previous characters to predict the next character in the sequence.

  • The implementation involves using embedding layers, linear layers, and the batch normalization layer.

  • The content highlights the importance of maintaining the correct state and addressing bugs in the implementation.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Andrej Karpathy 📚

What Are Large Language Models and How Do They Work? thumbnail
What Are Large Language Models and How Do They Work?
Andrej Karpathy
How to Effectively Use Large Language Models Like ChatGPT thumbnail
How to Effectively Use Large Language Models Like ChatGPT
Andrej Karpathy
Let's build the GPT Tokenizer thumbnail
Let's build the GPT Tokenizer
Andrej Karpathy
How Do Large Language Models Like ChatGPT Work? thumbnail
How Do Large Language Models Like ChatGPT Work?
Andrej Karpathy
Stable diffusion dreams of steampunk brains thumbnail
Stable diffusion dreams of steampunk brains
Andrej Karpathy
Building makemore Part 3: Activations & Gradients, BatchNorm thumbnail
Building makemore Part 3: Activations & Gradients, BatchNorm
Andrej Karpathy

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.