Generative AI 101: Tokens, Pre-training, Fine-tuning, Reasoning — With Dylan Patel

23 Apr 2025 · 42 min

Ask about this episode

Ask anything about it. ChatGPT or Claude reads this page and answers with the times it was said.

Connect VO and ask about every podcast you hear, including the moments you saved. Add to ChatGPT · Add to Claude

In short

Big Technology Podcast: Episode Summary

Episode Title

Generative AI 101: Tokens, Pre-training, Fine-tuning, Reasoning — With Dylan Patel

Host

  • Alex Kantrowitz - Silicon Valley journalist and host of the podcast.

Guest

  • Dylan Patel - Founder and CEO of SemiAnalysis, an expert in semiconductor and generative AI research.

---

Episode Overview In this episode, Dylan Patel provides a masterclass on how generative AI works, including discussions on tokens, pre-training, fine-tuning, reasoning, and recent advancements in AI efficiency. The conversation is structured to aid listeners in understanding generative AI and its future trajectory.

---

Key Concepts and Discussions

  1. Tokens
  2. Definition: Tokens are chunks of words or parts of words that AI models use to understand and generate language.
  3. Mechanism:
  4. Tokens are numerically represented, allowing models to predict the next token based on learned patterns.
  5. Each token can be broken down into multiple vectors representing various meanings and relationships.
  6. For example, the relationship between "king" and "queen" is captured in multiple dimensions of meaning.
  1. Pre-training
  2. Description: Pre-training involves feeding the model vast amounts of text (the entire internet) to learn relationships between tokens.
  3. Objective: The main goal is to predict the next token accurately, which involves minimizing loss (the difference between predicted and actual outcomes).
  4. Example: Given the phrase "the sky is," the model would learn to predict "blue" based on context but must also understand nuances and exceptions (e.g., "the sky is red" in a Martian context).
  1. Fine-tuning (Post-training)
  2. Definition: Post-training refines a model post pre-training by training it on specific datasets to give it a "personality" or specific functionality.
  3. Human Involvement: The process often includes human feedback to teach the model what responses are desired or undesirable.
  4. Efficiency: Fine-tuning allows models to learn from human interactions and adjust outputs to align with user expectations or safety guidelines.
  1. Reasoning in AI
  2. Innovation: Recent advancements in reasoning allow models to take time to "think" before generating responses, improving the accuracy of complex problem-solving.
  3. Comparison with Humans: Reflects how humans also take time to think through problems before arriving at an answer, enhancing model performance in areas like coding and mathematics.
  1. Model Efficiency Breakthroughs
  2. DeepSeek's Contribution: The introduction of DeepSeek has led to significant efficiencies in AI, sparking discussions around the need for massive data centers.
  3. Cost Efficiency: Models have become dramatically cheaper to run while simultaneously improving in capability. For instance, costs have dropped significantly across various models over time.
  1. Data Centers and Scale
  2. Current Trends: There is a massive increase in data center buildouts designed to support the heightened need for computational power in AI.
  3. Scaling Laws: Despite improvements in efficiency, there is still a continuous push for larger models, as scaling often leads to better performance.
  1. The Future of GPT-5
  2. Expectations: GPT-5 is anticipated to integrate both extensive pre-training and advanced post-training capabilities, potentially revolutionizing generative AI once released.

---

Conclusion This episode serves as an educational resource for anyone curious about generative AI, providing clear explanations of complex concepts and discussing the landscape's evolution, including efficiency breakthroughs that shape the future of technology.

Call to Action

  • Feedback: Listeners are encouraged to rate the podcast and provide feedback via email.
  • Further Learning: For more insights, listeners can explore SemiAnalysis for research updates.

---

Additional Links

  • SemiAnalysis: [semi-analysis.com](https://semi-analysis.com)
  • Big Technology on Substack: [40% off for the first year](https://tinyurl.com/bigtechnology)

---

This structured summary captures the essence of the podcast episode, highlighting key topics discussed by Alex Kantrowitz and Dylan Patel while ensuring accessibility for readers looking to deepen their understanding of generative AI.

Written by AI. May contain mistakes. Listen to the episode to check what was said.

Hear the part that matters, and keep it.Open this episode in VO. Double tap your headphones to save a moment as you listen.
Get VO free

Transcript

Automatic transcript. May contain errors.

0:00If you've ever wondered how generative AI works, and where the technology is heading, this episode is for you. We're going to explain the basics of the technology and then catch up with modern day advances like reasoning to help you understand exactly how it does what it does and where it might advance in the future. That's coming up with Semi Analysis founder and chief analyst Dylan Patel right after this.

0:25You're used to hearing my voice on the world bringing you interviews from around the globe. And you hear me reporting environment and climate news. I'm Carolyn Buehler. And I'm Marco Werman. We're now with you hosting The World Together. More global journalism with a fresh new sound. Listen to The World on your local public radio station and wherever you find your podcasts.

0:53Welcome to Big Technology Podcast, a show for cool-headed and nuanced conversation of the tech world and beyond. We're joined today by Semi-Analysis founder and chief analyst Dylan Patel, a leading expert in semiconductor and generative AI research and someone I've been looking forward to speaking with for a long time. Now, I want this to be an episode that A, helps people learn how generative AI works, and B, is an episode that people will send to their friends to explain to them how generative AI works. I've had a couple of those that I've been sending to my friends and colleagues and counterparts about what is going on within generative AI.

1:30That includes one, this three and a half hour long video from Andre Karpathy explaining everything about training large language models. And the second one is a great episode that Dylan and Nathan Lambert from the Allen Institute of AI did with Lex Friedman. Both of those three hours plus. So I want to do it hours in an hour. And I'm very excited to begin. So Dylan, it's great to see you and welcome to the show. Thank you for having me. Great to have you here. Let's just start with tokens. Can you explain how AI researchers basically take words and then give them numerical representations and parts of words and give them numerical representations?

2:08So what are tokens? Tokens are, in fact, like chunks of words, right? In the human way, you can think of like syllables, right? Syllables are often viewed as like chunks of word. they have some meaning it's the base level of of speaking right is syllables right now for models tokens are the base level of output they're all about like sort of compressing you know sort of this is the most efficient representation of language from my understanding ai models are very good at predicting patterns so if you give it one three seven nine it might know the next number is going to be 11. And so what it's doing in with tokens is taking words, breaking them down to their component parts, assigning them a numerical value.

2:54And then basically in its own word, in its own language, learning to predict what number comes next, because computers are better at numbers and then converting that number back to text. And that's what we see come out. Is that accurate? Yeah. And each individual token is actually, it's not just like one number, right? It's multiple vectors. You could think of like, well, the tokenizer needs to learn king and queen are actually extremely similar on, on most in terms of like the English language, extremely similar, right? Except there is like one vector in which they're super different, right? Because a king is a male and a queen is a female, right?

3:29And then from there, like, you know, in language, oftentimes kings are considered conquerors and, and, you know, all these are the things and like, these are just like historical things, right? So a lot of the text around them, while they're both like royal regal, right? Like, you know, uh, monarchy, et cetera. There are many vectors in which they differ. So like, it's not just like converting a word into one number, right? It's like converting it into multiple vectors. And each of these vectors, the model learns what it means, right? Um, you don't initialize the model with like, Hey, you know, King means male, uh, monarch and it's associated with like war and conquering because that's what all the writing about Kings is on, you know, in history and all that, right?

4:08Like people don't talk about the daily lives of kings that much or they mostly talk about like their wars and conquests and stuff um and so like there will be each of these numbers in this embedding space right will be assigned over time as the model reads the internet's text and trains on it it'll start to realize oh king and queen are exactly similar on these vectors but very different on these vectors and these vectors aren't you don't explicitly tell the model hey this is what this vector is for but it could be like you know it It could be as much as like one vector could be like, is it a building or not?

4:39Right. And it doesn't actually know that you don't, you don't know that ahead of time. It just happens to in the latent space. And then all of these vectors sort of relate to each other. But yeah, these numbers are, um, are an efficient representation of words, uh, because you can do math on them, right? You can, you can multiply them. You can divide them. You can run them through an entire model. Whereas we're in, and your brain does something similar, right? When it hears something, it converts that into a frequency in your ears. and then that gets converted to frequencies that should go through your brain, right?

5:07This is the same thing as a tokenizer, right? Although it's like obviously a very different medium of compute, right? Ones and zeros for computers versus binary and multiplication, etc. being more efficient. Whereas humans' brains are more like analog in nature and think more in waves and patterns in different ways. While they are very different, it is a tokenizer, right? Like language is not actually how our brain thinks. It's just a representation for which it to, you know, reason over. Yeah, so that's crazy. So the tokens are the sufficient representation of words. But more than that, the models are also learning the way that they are.

5:44All these words are connected. And that brings us to pre-training. From my understanding, pre-training is when you take the entire, basically the entire internet worth of text. and you use that to teach the model these representations between each token so therefore like we talked about if you gave if you gave a model the sky is and the next word is typically blue in the pre-training which is basically all of the english language all of all of language on the internet it should know that the next token is blue so what you do is you want to make sure that when the model is outputting information, it's closely tied to what that next value should be.

6:29Is that a proper description of what happens in pre-training? Yeah, I think that's the objective function, which is just to reduce loss, i.e. how often is the token predicted incorrectly versus correctly, right? Right, so if you said the sky is red, that's not the most probable outcome, so that would be wrong. But that text is on the internet, right? Like, cause the Martian sky is red and there's all these books about Mars and sci-fi. Right. So how does the model then learn how to figure this out? And in what context is it accurate to say blue and red? Right. So, so, I mean, first of all, the model doesn't just output one token, right?

7:05It outputs a distribution. It turns out the most, the way most people take it is they take the top, top K, i.e. the most high probability. So yes, blue is obviously the right answer if you give it to anyone on this planet. but there are situations and contexts where the sky is red is the appropriate sentence but that's not just in isolation right it's like if the prior passage is all about mars and all this and then all of a sudden it's like and that's like a quote from a martian settler and it's like the sky is and then the correct token is actually red right the correct word and so it has to know this through the attention mechanism right if it was just the sky is blue always you're going to output blue because blue is let's say 80 percent 90 percent 99 percent likely to be the right option.

7:47But as you start to add context about Mars or any other planet, right? Other planets have different colored atmospheres, I presume. You end up with this distribution starts to shift, right? If I add we're on Mars, the sky is, you know, then all of a sudden blue goes from 99%, you know, in the prior context window, right? The text that you sent to the model, the attention of it, all of a sudden it realizes the sky is blue, preceded by the stuff about Mars, now blue rockets down to, let's call it 20 % probability, and red rockets up to 80 % probability. Now, the model outputs that, and then most people just end up taking the top probability and outputting it to the user.

8:31And that's sort of like, how does the model learn that is the attention mechanism, right? And this is sort of the beauty. Yes, what is that? Yeah, the attention mechanism is the beauty of modern sort of large language models. It takes the relational value, you know, in this vector space between every single token, right? So the sky, you know, the sky is blue, right? Like when I think about it, yes, blue is the next token after the sky is, but in a lot of like older style models, you would have, you would just predict the exact next word. So after sky, obviously it's, you know, it could be many things.

9:06It could be blue, but it could also be like a scraper, right? You know, skyscrapers, yeah, that makes sense. But what attention does is it is taking all of these various values, the query, the key, the value, which represents what you're looking for, where you're looking, and what that value is across the attention. And you're calculating mathematically what the relationship is between all of these tokens. And so going back to the king-queen representation, the way these two words interact is now calculated. right and the way that every word in the entire passage you sent is calculated uh is tied together which is why models have like challenges with like how long can you uh how many documents can you send them right because if you're sending them you know just the question like what color is the sky okay it only has to calculate the attention between you know those those words right but if you're sending it like 30 books with like insurance claims and all these other things and you're like okay figure out what what's going on here um is this a claim or not right and in the insurance context, all of a sudden it's like, okay, I've got to calculate the attention of not just like the last five words to each other, but I have to calculate every, you know, 50 ,000 words to each other, right?

10:18Which then ends up being a ton of math. Back in the day, actually, the best language models were a different architecture entirely, right? But then at some point, you know, transformers, large language models, sort of large language models, which are basically based on transformers primarily, rocketed past and capabilities because they were able to scale and because the hardware got there. And then we were able to scale them so much that we were not to just put like some text in them and not just a lot of text or a lot of books, but the entire internet, which, you know, one could view the internet oftentimes as a microcosm of all human culture and learnings and knowledge to many extents, because most books are on the internet.

10:54Most papers are on the internet. Obviously there's a lot of things missing on the internet. But this is sort of, this is the sort of modern, you know, magic of like what, what it was sort of like three different things, like coming all together at once, right. An efficient way for models to relate every word to each other, the compute necessary to scale the data large enough, and then someone actually like pulling the trigger to do that, right, at the scale that was, you know, got to the point where it was useful, right, which was sort of like GPT 3.5 level or four level, right, where it became extremely useful for normal humans to use, you know, chat models.

11:29Okay, and so why is it called pre-training? So pre-training is sort of called that because it is what happens before the actual training of the model, right? The objective function in pre-training is to just predict the next token, but predicting the next token is not what humans want to use AIs for, right? I want it to ask a question and answer it. But in most cases, asking a question does not necessarily mean that the next most likely token is the answer, right? Oftentimes it is another question, right? For example, if I ingested the entire SAT, you know, and I asked a question, the next, like, five answers, then all the next tokens would be like, A is this, B is this, C is this, D is this.

12:12Like, no, I just want the answer, right? And so pre-training is, the reason it's called pre-training is because you're ingesting humongous volumes of text no matter the use case, right? And you're learning the general patterns across all of language, right? I don't actually know that king and queen relate to each other in this way. And I don't know that king and queen are opposites in these ways, right? And so this is why it's called pre-training is because you must get a broad general understanding of the entire sort of world of text before you're able to then do post-training or fine-tuning, which is let me train it on more specific data that is specifically useful for what I want it to do.

12:52whether it's, hey, in chat style applications, you know, go in, go in, you know, when I ask a question, give me the answer or in other applications, like teach me how to build a bomb. Well, obviously, no, I'm not going to help you teach, build a bomb because that's what I don't want the model to teach me how to build a bomb. So, you know, it's sort of got to do this. And it's not like you're teaching it, you know, when you're doing this pre-training, you're filtering out all this data. Because in fact, there's a lot of good, useful data on how to build bombs because there's a lot of useful information on like, Hey, like C4 chemistry and like, you know, people want to use it for chemistry.

13:26Right. So you don't want to just filter out everything so that the model doesn't know anything about it. But at the same time, you don't want it to output, you know, how to build a bomb. So there's like a fine balance here. And that's why pre-training is defined as pre because you're, you're, you're still letting it do things and teaching it things and inputting things into the model that are theoretically like quite bad. Right. For example, books about killing or war tactics or what have you. Things that plausibly you could see, oh, well, maybe that's not okay. Or wild descriptions of really grotesque things all over the internet, but you want the model to learn these things.

14:02Because first you build the general understanding before you say, okay, now that you've got a general framework of the world, let's align you so that you, with this general understanding of the world, can figure out what is useful for people, what is not useful for people, what should I respond on, what should I not respond on. on. So what happens then in the training process? So the, the, is the training process that the model is then attempting to make the next prediction and then just trying to minimize loss as it goes? Right. Right. I mean, like basically, uh, you, you have, you have loss is, is how often you're wrong versus right in the most simple terms, right?

14:37You will, you'll run through a passages, right. It, it, it, through the model. Um, and you'll see how often And then the model get it right. When I got it right. Great. Reinforce that. Uh, when I got it wrong, let's figure out which, which neurons, neurons in the model, you know, quote unquote neurons in the model, you can tweak to then fix the answer so that when you go through it again, it actually outputs the correct answer. Um, and then you move the, the move the model slightly in that direction. Um, now obviously the challenge with this is, um, if I, if I first, you know, I can, I can come up with a simplistic way where all the neurons will just output the sky's blue Every single time says the sky is.

15:14But then when it goes to, you know, hey, the color blue is commonly used on walls because it's soothing. Right. And it's like, oh, what's the next word is soothing. Right. Soothing. You know, and so like that, that is a completely different representation. And to understand that blue is soothing and that the sky is blue and those things aren't actually related, but they are related to blue is like very important. And so, you know, oftentimes you'll run through the training data set multiple times, right? Because the first time you see it, oh, great, maybe you memorized that the sky is blue. And you memorized the wall is blue.

15:50And when people describe art and oftentimes use the color blue, it can be representations of art or the wall, right? And so over time, as you go through all this text in pre-training, yes, you're minimizing loss initially by just memorizing. but over time, because you're constantly overwriting the model, it starts to learn the generalization, right? IE blue is a soothing color also represents the sky also used an art for either of those two motifs. Right. And so that's sort of the, the goal of pre-training is, is you don't want to memorize, right? Because that's, you know, in school you memorize all the time.

16:24Um, and that's not useful because you forget everything you memorize. Uh, but if you get tested on it then, and then you get tested on it six months later. Um, and then again, six months later after that or however you do it ends up being, oh, you don't actually like memorize that anymore. You just know it innately and you've generalized on it. And that's the real goal that you want out of the model. But that's not necessarily something you can just measure. Right. And therefore loss is something you can measure, i.e. for this group of this group of text. Right. Because you train the model in steps.

16:56Every step you're inputting a bunch of text. You're trying to you're trying to see what's predict the right token where you didn't predict the right token. Let's adjust the neurons, okay, onto the next batch of text. And you'll do this, these batches over and over and over again, um, across, you know, trillions of words of text. Right. Um, and, and as you step through and then you're like, oh, well I'm done. But I bet if I go back to the first, first group of texts, which was all about the sky being blue, it's going to get the answer wrong because maybe later on in the training, it discovered it saw some passages about sci-fi and how the, how Martian sky is red.

17:26So like it'll, it'll overwrite, but then over time, as you go through the data multiple times, as you see it on the internet multiple times, you see it in different books multiple times, whether it be scientific, sci-fi, whatever it is, you start to realize and it starts to learn that representation of like, oh, when it's on Mars, it's red because the sky and Mars is red because the atmospheric makeup is this way, whereas the atmospheric makeup on Earth is a different way. And so that's sort of like the whole point of pre-training is to minimize loss, but the nice side effect is that the model initially memorizes, but then it stops memorizing and it generalizes.

17:58And that's the useful pattern that we want. Okay. That's fascinating. We've touched on post-training for a bit, but just to recap, post-training is, so you have a model that's good at predicting the next word. And in post-training, you sort of give it a personality by inputting sample conversations to make the model want to emulate the certain values that you want it to take on. Yeah. So post-training can be a number of different things. The most simple way of doing it is, yeah, pay for humans to label a bunch of data, take a bunch of example conversations, et cetera, and input that data and train on that at the end, right?

18:38And so that example data is useful, but this is not scalable, right? Like using humans to train models is just so expensive, right? So then there's the magic of sort of reinforcement learning and other synthetic data technologies, right? Where the model is helping teach the model, right? So you'll have many models in a sort of in a post training where, yes, you have some example human data, but human data does not scale that fast, right? Because the internet is trillions and trillions of words out there. Whereas, you know, even if you had, you know, Alex and I write words all day long for our whole lives, we would have millions or, you know, hundreds of millions of words written, right?

19:18It's nothing. It's like orders of magnitude off in terms of the number of words required. So then you have the model, you know, take some of this example data and you have various models that are surrounding the main model that you're training, right? And these can be policy models, right? Teaching it, hey, is this what you want or that what you want? Reward models, right? Like, is that good? Is that a good response or is that a bad response? You have value models, like, hey, grade this output, right? And you have all these different models working in conjunction to say, you know, different companies have different objective functions, right?

19:52In the case of Anthropic, they want their model to be helpful, harmless, and safe, right? So be helpful, but also don't harm people or anyone or anything. And then, you know, safe, right? In other cases, like Grok, right? Elon's model from XAI, it actually just wants to be helpful. And maybe it has like a little bit of a right leaning to it, right? And for other folks, right? Like, you know, I mean, most AI models are made in the Bay area, so they tend to just be left-leaning, right? But also the internet in general is a little bit left-leaning because it skews younger than older. And so like all these things like sort of affect models.

20:28But like, it's not just around politics, right? Post-training is also just about teaching the model. If I say like the movie where the princess has a slipper and it doesn't fit, it's like, well, if I said that into a base model that was just pre-training, like the answer wouldn't be, oh, the movie you're looking for Cinderella, you know, it would only realize that once it goes, you know, once it goes through post-training, right? Because a lot of times people just throw garbage into the model and then the model still figures out what you want, right? And this is part of what post-training is. Like you can just do stream of consciousness into models and oftentimes it'll figure out what you want.

21:02Like, you know, if it's a movie that you're looking for, or if it's help answering a question, or if you throw a bunch of like unstructured data into it and then ask it to make it into a table, it does this, right? And that's because of all these different aspects of post-training, right? Example data, but also, you know, generating a bunch of data and grading it and seeing if it's good or not, and whether it matches the various policies you want. Is it help? You know, a lot of times grading can be based on multiple factors, right? There can be a model that says, hey, is this helpful? Hey, is this safe?

21:31And what is safe, right? So then that model for safety needs to be tuned on human data, right? So there's, it is a quite complex thing, but the end goal is to be able to get the model to output in a certain way. Models aren't always about just humans using them either, right? There can be models that are just focused on like, hey, like, you know, if it doesn't output code, you know, yes, it was trained on the whole internet because the person's going to talk to the model using text, but if it doesn't output code, you know, penalize it, right? Now, all of a sudden, the model will never output like text ever again.

21:58It'll only output code. And so like these sorts of like models exist too. So post-training is not just a uni variable thing, right? It's what variables do you want to target? And so that's why models have different personalities from different companies. It's why they target different use cases and why, you know, it's not just like one model that rules them all, but actually many. That's fascinating. So that's why we've seen so many different models with different personalities is because it all happens in the post-training moment. And this is when you talk about giving the models examples to follow this, that's what reinforcement learning with human feedback is is the humans give some examples and then the model learns to emulate what the human is interested in what the human trainer is interested in having them uh embody is that right yeah exactly okay great all right so first half we've covered what training is what tokens are what loss is what uh post training is post training is post training by the way also called fine tuning we've also covered reinforcement learning with human feedback we're going to take a quick break and then we're going to talk about reasoning.

23:03We'll be back right after this. Did you know your credit card points and miles can lose value to inflation? Credit card companies often reduce the redemption value of your points and miles. Now imagine a credit card with rewards that can grow in value. With the Gemini credit card, you can earn Bitcoin or one of over 50 other cryptos instantly with no annual fee. Every swipe at the store or gas pump earns you instant rewards deposited straight to your account. Plus, sign up now for a$200 Bitcoin bonus to kickstart your rewards. Visit Gemini.com slash card today. Check out the link in the description for more information on rates.

23:43Again, if you're looking to invest in Bitcoin, but don't know where to start, the Gemini credit card makes it easy. The Gemini credit card is issued by WebBank. In order to qualify for the$200 crypto intro bonus, you must spend$3 ,000 in your first 90 days. Some exclusions apply to instant rewards in which rewards are deposited when the transaction posts. This content is not investment advice and trading crypto involves risk. The Gemini credit card cannot be used to make gambling-related purchases.

24:13You're used to hearing my voice on the world bringing you interviews from around the globe. And you hear me reporting environment and climate news. I'm Carolyn Buehler. And I'm Marco Werman. we're now with you hosting the world together. More global journalism with a fresh new sound. Listen to the world on your local public radio station and wherever you find your podcasts.

Read the full transcript

24:41And we're back here on Big Technology Podcast with Dylan Patel. He's the founder and chief analyst at Semi Analysis. He actually has great analysis on NVIDIA's recent GTC conference, which we just covered recently on a recent episode. You can find Semi-Analysis at semi-analysis.com. It is both content and consulting. So definitely check in with Dylan for all those needs. And now we're going to talk a little bit about reasoning. Because a couple months ago, and Dylan, this is really where I sort of entered the picture watching your conversation with Flex, with Nathan Lambert. about what the difference is between reasoning and your traditional LLMs, large language models.

25:29If I gathered it right from your conversation, what reasoning is, is basically instead of the model going, basically predicting the next word based off of its training, it uses the tokens to spend more time basically figuring out what the right answer is, and then coming out with a new prediction. I think Carpathie does a very interesting job in the youtube video talking about how models think with tokens the more tokens there are the more computes they compute they use because they're running these predictions through the transformer model which we discussed and therefore they can come to better answers is that the right way to think about reasoning so so i think that um humans are also fantastic at fat pattern matching right um we're really good at like recognizing things um but a lot of tasks it's not like an immediate response, right?

26:18We are thinking, whether that's thinking through words out loud, thinking through words in an inner monologue in our head, or it's just like processing somehow, and then we know the answer, right? And this is the same for models, right? Models are horrendous at math, right? Historically have been, right? You could ask it, you know, what is 9.11 bigger than 9.9? And it would say, yes, it's bigger, even though like everyone knows that 9.11 is way smaller than 9.9, right? And that's just like a thing that happened in models because they didn't think or reason, right? And it's the same for you, Alex, right?

26:54Like, you know, or myself, right? Like if someone asked me, you know, 17 times 34, I'd be like, I don't know, like right off the top of my head, but, you know, give me, give me a little bit of time. I can do some long form multiplication and I can get the answer, right? And that's because I'm thinking about it. And this is the same thing with reasoning for models is, you know, when you look at a transformer, every word is this, every token output, it has the same amount of compute behind it, right? IE, you know, when I'm saying the versus sky is blue, the blue and the the have this, or the is in the blue have the same amount of compute to generate, right?

27:30And this is not exactly what you want to do, right? You want to actually spend more time on the hard things and not on the easy things. And so reasoning models are effectively teaching, you know, large pre-trained models to do this, right? Hey, think through the problem. Hey, output a lot of tokens, uh, think about it, generate all this text. And then when you're done, you know, start answering the question, but now you have all of this stuff you generated in your context. Right. Um, and that stuff you generated is, is helpful, right? Um, it could be like, you know, all sorts of, you know, just like any human's thought patterns are Right.

28:07And so this this is the sort of like new paradigm that we've entered maybe six months ago where models now will think for some time before they answer. And this enables much better performance on all sorts of tasks, whether it be coding or math or understanding science or understanding complex social dilemmas. Right. All sorts of different topics. They're much, much better at. And this is done through post-training, similar to the reinforcement learning by human feedback that we mentioned earlier. But also, there's other forms of post-training, and that's what makes these reasoning models. Before we head out, I want to hit on a couple things.

28:45First of all, the growing efficiency of these models. So I think one of the things that people focused on with DeepSeek was that it was just able to be much more efficient in the way that it generates answers. and there was this obviously this big reaction to nvidia stock where it fell 18 the day or at the monday after deep seek weekend because people thought we wouldn't need as much compute so can you talk a little bit about how models are becoming more efficient how they're doing it yeah so there's a variety of um the beauty of these uh of ai is not just that we continue to build new capabilities right um because those new capabilities are going to be able to benefit the world in many ways and there's a lot of focus on those, but there's also a lot of focus on, well, to get to that next level of capabilities is the scaling laws, i.e.

29:35the more compute and data I spend, the better the model gets. But then the other vector is, well, can I get to the same level with less compute and data, right? And those two things are hand in hand because if I can get to the same level with less compute and data, then I can spend that more compute and data and get to a new level, right? And so AI researchers are constantly looking for ways to make models more efficient, whether it be through algorithmic tweaks, data tweaks, tweaks in how you do reinforcement learning, so on and so forth. And so when we look at models across history, they've constantly gotten cheaper and cheaper and cheaper at a stupendous rate.

30:12And so one easy example is GPT-3, because there's GPT-3, 3.5 Turbo, Llama 2.7b, Llama 3, uh llama 3.1 llama 3.2 right as these models have gotten bigger we've gone from hey it costs 60 dollars for a million tokens to it costs less than it costs like five cents now for the same quality of model now and the model has shrank dramatically in size as well and that's because of better algorithms better data etc um and now what happened with deep seek was similar um you know open air had gpd4 then they had four turbo which was half the cost then they had 4.0 which which was again half the cost. And then Meta released Llama 405b open source, and so the open source community was able to run that, and that was again roughly half the cost, or 5x lower cost than 4.0, which was lower than 4Turbone4.

31:04But DeepSeek came out with another tier, right? So when we looked at GPT-3, the cost fell 1200x from GPT-3's initial cost to what you can get Llama 3.2, 3b today, right? And likewise, when we look at from GPT-4 to DeepSeek V3, it's fallen roughly 600x in cost, right? So we're not quite at that 1200x, but it has fallen 600x in cost from$60 to less than, you know, to about$1, right? Or to less than$1, sorry, 60x. And so you've got this massive cost decrease, but it's not necessarily out of bounds, right? We've already seen it. I think what was really surprising was that it was a Chinese company for the first time, right?

31:46Because Google and OpenAI and Anthropic and Meta have all traded blows, right? Whether it be OpenAI always being on the leading edge or Anthropic always being on the leading edge or Google and Meta being close followers, but oftentimes, sometimes with a new feature and sometimes just being much cheaper. We have not seen this from any Chinese company, right? And now we have a Chinese company releasing a model that's cheap. It's not unexpected, right? Like this is actually within the trend line of what happened with GPT-3. is happening to GPT-4 level quality with DeepSeek. It's more so surprising that it's a Chinese company.

32:22And that's, I think, why everyone freaked out. And then there was a lot of things that like, you know, from there became a thing, right? Like if Meta had done this, I don't think people would have freaked out, right? And Meta is gonna release their new Lama soon enough, right? And that one is gonna be, you know, a similar level of cost decrease, probably similar area as DeepSeek V3, right? It's just not people aren't gonna freak out because it's an American company. it was sort of expected. All right, Dylan, let me ask you the last question, which is that you mentioned, I think you mentioned the bitter lesson, which is basically that the, I mean, I'm going to just be kind of facetious in summing it up, but the answer to all questions in machine learning is just to make bigger, bigger models and scale solves almost all problems.

33:04So it's interesting that we have this moment where models are becoming way more efficient, but we also have massive, massive data center buildouts. I think you, it would be great to hear you kind of recap the size of these data center build outs? And then answer this question. If we are getting more efficient, why are these data centers getting so much bigger? And what might that added scale get in the world of generative AI for the companies building them? Yeah. So when we look across the ecosystem at data center build outs, we track all the build outs and server purchases and supply chains here.

33:38And the pace of construction is incredible, right? You can pick a state and you can see new data centers going up all across the US and around the world, right? And so you see things like capacity in, you know, for example, of the largest scale training supercomputers goes from, hey, it's a few hundred million dollars. It's not even a few hundred million dollars years ago, but like, you know, hey, for GPT-4, it was a few hundred million dollars um and it's it's one building full of gpus to uh gpt 4.5 um and uh the reasoning models like 0103 were done in a in three buildings on the same site and you know a billions of dollars to hey these next generation things that people are making are tens of billions of dollars um like open ai's data center in texas called stargate right uh with crusoe and oracle and et cetera.

34:33Right. Um, and likewise applies to Elon Musk, who's building these data centers in old fat in an old factory where he's got like a bunch of like gas generation, uh, you know, outside and he's doing all these crazy things to get the data center up as fast as possible. Right. Um, and, and you can go to just basically every company and they have like these humongous build outs. Um, and this sort of like, and, and, and, and because of the scaling laws, right. You know, 10 X more, uh, compute for linear, like improvement gains, right. Like it's sort of like, or it's blog, blog, sorry. Um, but you, uh, you end up with this like very confusing thing, which is like, Hey, models keep getting better as we spend more, but also the model that we had a year ago is now done for way, way cheaper, right?

35:16Oftentimes 10 X cheaper or more, right? Just a year later. Um, so then the question is like, why are we spending all this money to scale? Um, and, and, and there's a few things here, right? A, you can't actually make that cheaper model without making the better model, bigger model. So you can generate data to help you make the cheaper model, right? Like that's part of it. Um, but also another part of it is that, um, you know, if we were to freeze AI capabilities where we were, uh, basically in, uh, what was it? March, 2023, right. Like two years ago when GPT-4 released, um, and only made them cheaper, right?

35:51Like deep seek is like much cheaper. It's much more efficient. Um, but it's roughly the same capabilities as GPT-4. Um, that would not pay for all of these build outs, right? AI is useful today, but it's not capable of doing a lot of things, right? But if we make the model way more efficient, and then continue to scale, and we have this like stair step, right, where we like, increase capabilities massively, make them way more efficient, increase capabilities massively, make them way more efficient, we do the stair step, then you end up with creating all these new capabilities that could, in fact, pay for, you know, these massive AI build outs.

36:26So no one is trying to make with with these$10 billion data centers, they're not trying to make chat models, right? They're not trying to make models that people chat with, just to be clear, right? They're trying to solve things like software engineering and make it automated, which is like a trillion dollar plus industry, right? So these are very different, like sort of use cases and targets. And so it's the bitter lesson because yes, you can spend a lot of time and effort making clever specialized methods, based on intuition and you should, right? But these things should also just have a lot more compute thrown behind them because if you make it more efficient, as you follow the scaling laws up, it'll also just get better and you can then unlock new capabilities.

37:06And so today, a lot of AI models, the best ones from Anthropic are now useful for coding as an assistant with you. You're going back and forth. As time goes forward, as you make them more efficient and continue to scale them, the possibility is that, hey, it can code for like 10 minutes at a time and I can just review the work and it'll make me 5x more efficient. Right. You know, and so on and so forth. And this is sort of like where where reasoning models and sort of the scaling sort of argument comes in is like, yes, we can make it more efficient. But we also just, you know, that's not going to solve the problems that we have today.

37:42Right. The earth is still going to run out of resources. We're going to run out of nickel because we can't make enough batteries and we can't make enough batteries. So then we can't with current technology that we can't replace all of, you know, gas, you know, gas and coal with renewables. All of these things are going to happen unless you continue to improve AI and invent or just generally research new things. And AI helps us research new things. Okay, this is really the last one. Where is GPT-5? So OpenAI released GPT-4.5 recently with what they called training run Orion. There were hopes that Orion could be used for GPT-5.

38:22but its improvement was like not enough to be like really a GPT-5. Furthermore, it was trained on the classical method, which is like, which is a ton of pre-training and then some reinforcement learning with human feedback and some other reinforcement learning like PPO and DPO and stuff like that. But not, but then along the way, right, this model was trained last year. Along the way, another team at OpenAI made the big breakthrough of reasoning, right? Strawberry training. And they released 01 and then they released 03. And these models are rapidly getting better on with reinforcement learning with verifiable rewards.

38:54And so now GPT-5, as Sam calls it, is going to be a model that has huge pre-training scale, right? Like GPT-4.5, but also huge post-training scale like 01 and 03 and continuing to scale that up, right? And this would be the first time we see a model that was a step up in both at the same time. And so that's what OpenAI says is coming. They say it's coming, you know, this year, hopefully in the next three to six months, maybe sooner. I've heard sooner, but you know, we'll, we'll see. Um, but this, this path of scaling, both pre-training and post-training with reinforcement learning with verifiable rewards massively should yield much better models that are capable of much more things.

39:36And we'll see what those things are. Very cool. All right, Dylan, do you want to give a quick shout out to those who are interested in potentially working with semi-analysis who you work with and where they can learn more? Sure. So we, you know, at semi-analysis.com, we have, you know, the, we have the public stuff, which is like all these reports that are pseudo free, but then we, most of our work is done on directly for clients. There's these data sets that we sell around every data set in the world, servers, all the compute, where it's manufactured, how many, where, what's the cost and who's doing it.

40:07And then we also do a lot of consulting. We've got people who've worked all the way from ASML, which makes lithography tools all the way up to Microsoft and NVIDIA, which making models and doing infrastructure. And so we've got this whole gambit of folks. There's roughly 30 of us across the world in US, Taiwan, Singapore, Japan, France, Germany, Canada. So there's a lot of engagement points, but if you wanna reach out, just go to the website, go to one of those specialized pages of models or sales and reach out and that'd be the best way to sort of interact and engage with us. But for most people, just read the blog, right?

40:43Like, I think, like, unless you have specialized, like, needs, unless you're a company in the space or you're an investor in the space, like, you know, you just want to be informed. Just read the blog and it's free, right? I think that's the best option for most people. Yeah, well, I will attest the blog is magnificent. And Dylan is really thrilled to get a chance to meet you and talk through these topics with you. So thanks so much for coming on the show. Thank you so much, Alex. All right, everybody. Thanks for listening. We'll be back on Friday to break down the week's news. Until then, we'll see you next time on Big Technology Podcast.

From the publisher

Dylan Patel is the founder and CEO of SemiAnalysis. He joins Big Technology Podcast to explain how generative AI work, explaining the inner workings of tokens, pre-training, fine-tuning, open source, and reasoning. We also cover DeepSeek’s efficiency breakthrough, the race to build colossal AI data centers, and what GPT-5’s hybrid training approach could unlock. Hit play for a masterclass you’ll want to send to every friend puzzled (or excited) about the future of AI.

---
Enjoying Big Technology Podcast? Please rate us five stars ⭐⭐⭐⭐⭐ in your podcast app of choice.

Want a discount for Big Technology on Substack? Here’s 40% off for the first year: https://tinyurl.com/bigtechnology

Questions? Feedback? Write to: bigtechnologypodcast@gmail.com

More from Big Technology Podcast

All 399 episodes
Generative AI 101: Tokens, Pre-training, Fine-tuning, Reasoning — With Dylan PatelBig Technology Podcast · 42 min
Listen in VO