Source

Andrej Karpathy’s 1-hour Stanford lecture on AI engineering is one of the best explanations I’ve ...

Watch on YouTube

Karpathy teaches that programming has progressed from explicitly writing algorithms, to training neural networks through data-set iteration, to programming large language models with natural-language prompts. He also explains transformers as general-purpose, expressive, optimizable, and hardware-efficient computers whose attention layers enable data-dependent communication among tokens.

- Software 1.0 specifies algorithms directly, Software 2.0 compiles data sets into neural-network weights, and Software 3.0 conditions language models with prompts. - A Software 2.0 data engine repeatedly deploys a model, monitors failures, collects and labels difficult examples, and feeds them back into training and test sets. - Effective prompting narrows a next-word predictor toward the desired kind of completion; asking for step-by-step work can give the model more tokens over which to reason. - Transformers can process many modalities by dividing inputs into tokens, marking their source or position, and allowing self-attention to determine how they interact. - Attention is a communication mechanism in which queries seek information, keys advertise available information, and values carry the information ultimately aggregated. - Transformers became dominant because they combine expressive computation, reliable optimization, and efficient parallel execution on GPUs.

Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.

Supports these rules

Quotes from this video

“you really have to like narrow in on the slice of the prediction that you want it to perform otherwise it's just going to imitate the average case.”

“these prompts really matter and there's a lot of art and science to designing these prompts.”

“when you ask it to uh think step by step it gets to break down the problem and it's not thinking too much per token and so it has more tokens and it has more time to think”

“let's think step by step was a very big accuracy boost here from 17% all the way to 78.7.”

“So you program them by accumulating data sets and iterating on them. something that I call data engine.”

“you start with a data set, you train a neural net and then you deploy it and then um you have a lot of telemetry and monitoring for how that neural network is performing.”

“you spin the cycle over and over again and so I call this the data engine.”

“you just take whatever you want you chop it up into pieces and you feed it in with a set of what you had before and you let the self attention figure out how everything should communicate”

“So just chop up everything and throw it into the mix is kind of like the way.”

“you could you just need to chop it up and enter it and then you have to encode it somehow like the transformer needs to know that they're coming from”

“if you have enough data usually trying to mess with it is like a bad thing.”

“If you have infinity data then you actually want to encode less and less that turns out to work better.”

“And if you have very little data then actually you do want to encode some biases”

“thinking backwards from the constraints of the hardware which I think is a very interesting way to think about it.”

“if it's efficient on the current hardware then you can make it bigger.”

Topics