We implement a multilayer perceptron (MLP) character-level language model. In this video we also introduce many basics of machine learning (e.g. model training, learning rate tuning, hyperparameters, evaluation, train/dev/test splits, under/overfitting, etc.).
Links:
- makemore on github:
- jupyter notebook I built in this video:
- collab notebook (new)!!!:
- Bengio et al. 2003 MLP language model paper (pdf):
- my website:
- my twitter:
- (new) Neural Networks: Zero to Hero series Discord channel: , for people who’d like to chat more and go beyond youtube comments
Useful links:
- PyTorch internals ref
Exercises:
- E01: Tune the hyperparameters of the training to beat my best validation loss of 2.2
- E02: I was not careful with the intialization of the network in this video. (1) What is the loss you’d get if the predicted probabilities at initialization were perfectly uniform? What loss do we achieve? (2) Can you tune the initialization to get a starting loss that is much more similar to (1)?
- E03: Read the Bengio et al 2003 paper (link above), implement and try any idea from the paper. Did it work?
Chapters:
00:00:00 intro
00:01:48 Bengio et al. 2003 (MLP language model) paper walkthrough
00:09:03 (re-)building our training dataset
00:12:19 implementing the embedding lookup table
00:18:35 implementing the hidden layer internals of : storage, views
00:29:15 implementing the output layer
00:29:53 implementing the negative log likelihood loss
00:32:17 summary of the full network
00:32:49 introducing and why
00:37:56 implementing the training loop, overfitting one batch
00:41:25 training on the full dataset, minibatches
00:45:40 finding a good initial learning rate
00:53:20 splitting up the dataset into train/val/test splits and why
01:00:49 experiment: larger hidden layer
01:05:27 visualizing the character embeddings
01:07:16 experiment: larger embedding size
01:11:46 summary of our final code, conclusion
01:13:24 sampling from the model
01:14:55 google collab (new!!) notebook advertisement
1 view
60
20
4 months ago 00:55:49 1
Inside the Life of Titus 🇺🇸
4 months ago 00:43:58 1
45 Min Best Full Body Workout With Dumbbells - No Repeat, Home Workout
4 months ago 00:40:04 1
40 MIN PILATES TONE FULL BODY: light weights, ankle weights, booty band
4 months ago 00:40:37 1
40 MIN PILATES X STRENGTH WORKOUT: dumbbells and Pilates total full body at home workout
4 months ago 00:02:48 1
WTC Simulation - World Trade Center Case Study - Blender Demolition (Demo 3)
4 months ago 00:07:08 1
Presale Crypto | Presale Crypto Tokens | Early Crypto Presale
4 months ago 00:23:59 1
1,200HP TWIN TURBO BMW E30 Wide Body Build | INSANE V8 Power with SEQUENTIAL Shift
4 months ago 04:24:15 1
30 Days Alone Building Wood And Stone Warm Shelter in The Woods, Smoked Eel, Catch and Cook
4 months ago 00:08:08 1
Tim Minchin “One day you’ll be as good as Elton John“ | Universal Comedy
4 months ago 00:10:28 1
Building $10 Million Offshore Wind Turbine in Middle of the Sea
4 months ago 00:29:31 1
I Made $114,127,975,963 by Exploiting the Public and Collapsing the Film Industry - Blockbuster Inc
4 months ago 00:10:48 1
Warren Buffett’s 19 Game-Changing Saving Tips
4 months ago 00:06:53 1
The Game-Changer in Action | Building a Custom PC with EK Nexe in Record Time!
4 months ago 00:00:10 1
This dog saved its owner from a falling branch 🤨 Real or fake
4 months ago 00:21:39 1
Hrithik Roshan & Vinod Rawat: How Anyone Can Be An Actor, Reinventing Yourself and More! | Pushtaini
4 months ago 00:10:02 1
Inside Abandoned Olympic Buildings Around The World
4 months ago 00:06:22 1
Building a better world with wood? ⏲️ 6 Minute English
4 months ago 00:06:41 1
Audi Films: An Avant Story
4 months ago 00:17:16 1
How to read ALL NUMBERS in English Big numbers Decimals/Ordinal/Fractions/Dates/Addresses/Phone
4 months ago 00:05:56 1
1969 Dodge Super Bee, Gateway Classic Cars Louisville #3093 LOU
4 months ago 00:18:06 1
🎵 Hans Zimmer - Interstellar Organ Suite (Salisbury Cathedral Organ)
4 months ago 00:11:15 1
Elden Ring Backhand Blade Build - How to Build a Knight Blade Guide (Shadow of the Erdtree Build)
4 months ago 02:12:46 1
Kis Kisko Pyaar Karoon | Hindi Full Movie | Kapil Sharma | Varun Sharma | Hindi Comedy Movies
4 months ago 00:16:29 5
catapult travel system, to ashlands from home: valheim