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

How to Build a Bi-Gram Character-Level Language Model

449.4K views
•
September 7, 2022
by
Andrej Karpathy
YouTube video player
How to Build a Bi-Gram Character-Level Language Model

TL;DR

To build a bi-gram character-level language model, start by gathering a dataset of names and counting character pairs to establish probabilities. Use these probabilities to generate new, unique names that resemble names from the dataset. Implement model smoothing techniques to handle cases of zero probability for certain character combinations, and evaluate the model's quality using negative log likelihood.

Transcript

hi everyone hope you're well and next up what i'd like to do is i'd like to build out make more like micrograd before it make more is a repository that i have on my github webpage you can look at it but just like with micrograd i'm going to build it out step by step and i'm going to spell everything out so we're going to build it out slowly and tog... Read More

Key Insights

  • 😃 Make More is a bi-gram character-level language model that generates new names based on training data.
  • 0️⃣ Model smoothing is used to avoid issues with zero probabilities in the model.
  • 🧑‍💻 The negative log likelihood is used to evaluate the quality of the model.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How is the Make More model different from Micrograd?

The Make More model is focused on building a character-level language model, while Micrograd is a machine learning library.

Q: How does Make More generate new names?

Make More generates new names by training on a dataset of existing names and learning the patterns of name-like sequences of characters. It then uses this knowledge to generate unique names that sound similar to real names.

Q: What is the purpose of character-level language modeling?

Character-level language modeling aims to predict the next character in a sequence based on the previous characters. It can be used for various applications, such as generating text, speech recognition, and machine translation.

Q: What is model smoothing and why is it used?

Model smoothing is a technique used to prevent zero probabilities in the model. It involves adding a small count or probability to every possible outcome, ensuring that no probability is zero. This helps avoid issues such as infinite loss when evaluating the model.

Q: How is the quality of the model evaluated?

The quality of the model is evaluated using negative log likelihood, which measures how well the model predicts the next character in a sequence. A lower negative log likelihood indicates a better model.

Key Insights:

  • Make More is a bi-gram character-level language model that generates new names based on training data.
  • Model smoothing is used to avoid issues with zero probabilities in the model.
  • The negative log likelihood is used to evaluate the quality of the model.
  • Character-level language modeling is a powerful technique for generating text and predicting sequences.

Summary & Key Takeaways

  • The content explores the process of building a bi-gram character-level language model using count-based techniques.

  • The model is trained on a dataset of names and is used to generate new names that sound name-like but are unique.

  • The probability distribution of the model is evaluated using negative log likelihood to assess its quality.

  • Model smoothing is applied to address cases where the model assigns zero probability to certain word combinations.


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 📚

How Do Large Language Models Like ChatGPT Work? thumbnail
How Do Large Language Models Like ChatGPT Work?
Andrej Karpathy
How Does ChatGPT Work and Generate Text Responses? thumbnail
How Does ChatGPT Work and Generate Text Responses?
Andrej Karpathy
Building makemore Part 5: Building a WaveNet thumbnail
Building makemore Part 5: Building a WaveNet
Andrej Karpathy
Building makemore Part 4: Becoming a Backprop Ninja thumbnail
Building makemore Part 4: Becoming a Backprop Ninja
Andrej Karpathy
How Do Neural Networks Train with Backpropagation in Micrograd? thumbnail
How Do Neural Networks Train with Backpropagation in Micrograd?
Andrej Karpathy
Stable diffusion dreams of steampunk brains thumbnail
Stable diffusion dreams of steampunk brains
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.