Deepseek Dylan Patel Nathan Lambert

Nathan Lambert · 58,507 词 · 查看原文 ↗
AI 与机器学习技术与编程政治与社会体育与武术商业与创业
📋 章节目录
3:33 DeepSeek-R1 and DeepSeek-V3 · DeepSeek-R1 和 DeepSeek-V3
25:07 Low cost of training · 培训成本低
51:25 DeepSeek compute cluster · DeepSeek 计算集群
58:57 Export controls on GPUs to China · 对中国 GPU 的出口管制
1:09:16 AGI timeline · 通用人工智能时间表
1:18:41 China’s manufacturing capacity · 中国的制造能力
1:26:36 Cold war with China · 与中国冷战
1:31:05 TSMC and Taiwan · 台积电和台湾
1:54:44 Best GPUs for AI · 最适合人工智能的 GPU
2:09:36 Why DeepSeek is so cheap · 为什么 DeepSeek 这么便宜
2:22:55 Espionage · 间谍
2:31:57 Censorship · 审查制度
2:44:52 Andrej Karpathy and magic of RL · Andrej Karpathy 和 RL 的魔力
2:55:23 OpenAI o3-mini vs DeepSeek r1 · OpenAI o3-mini 与 DeepSeek r1
3:14:31 NVIDIA · 英伟达
3:18:58 GPU smuggling · GPU走私
3:25:36 DeepSeek training on OpenAI data · 基于 OpenAI 数据的 DeepSeek 训练
3:36:04 AI megaclusters · 人工智能巨型集群
4:11:26 Who wins the race to AGI? · 谁赢得了 AGI 竞赛?
4:21:39 AI agents · 人工智能代理
🔑 关键词
modeldylanpatelnathanlambertgoingtrainingmodelsdatadeepseekdongpusopenaichinacompaniesreasoningmoneychipsstuffdoing
💬 精彩语录
"And I think that’s the thing that’s probably more worrisome is human-machine amalgamations. This enables an individual human to have more impact on the world and that impact can be both positive and negative. Generally, humans have positive impacts on the world, at least societally, but it’s possible for individual humans to have such negative impacts. And AGI, at least as I think the labs define it, which is not a runaway sentient thing, but rather just something that can do a lot of tasks really efficiently amplifies the capabilities of someone causing extreme damage. But for the most part, I think it’ll be used for profit-seeking motives, which will increase the abundance and supply of things and therefore reduce suffering, right? That’s the goal."
我认为更令人担忧的是人机融合。这使得个人能够对世界产生更大的影响,这种影响可以是积极的,也可以是消极的。一般来说,人类对世界(至少对社会)有积极影响,但个人也有可能产生这种负面影响。而 AGI,至少正如我认为实验室所定义的那样,这不是一个失控的有知觉的东西,而只是一种可以完成很多任务的东西,真正有效地增强了造成极端伤害的人的能力。但在大多数情况下,我认为它将被用于追求利润的动机,这将增加事物的丰富性和供应,从而减少痛苦,对吗?这就是目标。
— Dylan Patel (05:04:27)
"I think it’s good to recap AlphaGo and AlphaZero because it plays nicely with these analogies between imitation learning and learning from scratch. So AlphaGo, the beginning of the process was learning from humans, where they started the first… This is the first expert-level Go player or chess player in DeepMind series of models, where they had some human data. And then, why it is called AlphaZero, is that there was zero human data in the loop, and that changed to AlphaZero made a model that was dramatically more powerful for DeepMind. So this remove of the human prior, the human inductive bias, makes the final system far more powerful. This we mentioned bitter lesson hours ago, and this is all aligned with this."
我认为回顾一下 AlphaGo 和 AlphaZero 是件好事,因为它很好地诠释了模仿学习和从头开始学习之间的类比。所以AlphaGo,这个过程的开始是向人类学习,他们开始了第一个……这是DeepMind系列模型中第一个专家级的围棋棋手或国际象棋棋手,他们有一些人类数据。然后,为什么它被称为 AlphaZero,是因为循环中的人类数据为零,而更改为 AlphaZero 则创建了一个对于 DeepMind 来说更加强大的模型。因此,消除人类先验、人类归纳偏差,使得最终系统更加强大。这是我们几个小时前提到的惨痛教训,而这一切都与此一致。
— Nathan Lambert (02:46:54)
"I think humans will definitely be around in a 1000 years, I think. There’s ways that very bad things could happen. There’ll be way fewer humans, but humans are very good at surviving. There’s been a lot of things that that is true. I don’t think necessarily we’re good at long-term credit assignment of risk, but when the risk becomes immediate, we tend to figure things out."
我认为人类肯定会在 1000 年后出现。有一些方法可能会发生非常糟糕的事情。人类将会少得多,但人类非常擅长生存。有很多事情都是真的。我认为我们不一定擅长长期信用风险分配,但当风险迫在眉睫时,我们倾向于解决问题。
— Nathan Lambert (05:02:28)
"Now recently we, at our research, we cut Nvidia’s production for H20 for this year down drastically. They were going to make another two million of those this year, but they just canceled all the orders a couple of weeks ago. In our view that’s because we think that they think they’re going to get restricted, because why would they cancel all these orders for H20? Because they shipped a million of them last year, they had orders in for a couple million this year, and just gone right. For H20, B20, a successor to H20, and now they’re all gone."
最近,我们在研究中大幅削减了 Nvidia 今年 H20 的产量。今年他们原本打算再生产 200 万个,但几周前他们取消了所有订单。在我们看来,这是因为我们认为他们认为自己会受到限制,因为他们为什么要取消所有这些 H20 订单呢?因为他们去年出货了 100 万台,所以今年他们的订单量达到了几百万台,而且进展顺利。对于H20,B20,H20的后继者,现在都消失了。
— Dylan Patel (01:57:10)
"So there’s two things. It’s, one, to be able to serve this on the memory level. Google has magic with their TPU stack where they can serve really long contexts. And then there’s also many decisions along the way to actually make long context performance work that supplies the data. There’s subtle changes to these computations in attention and it changes the architecture. But serving long context is extremely memory constrained, especially when you’re making a lot of predictions. I actually don’t know why input and output tokens are more expensive, but I think essentially output tokens, you have to do more computation because you have to sample from the model."
所以有两件事。第一,能够在内存级别上提供服务。谷歌的 TPU 堆栈具有魔力,可以为很长的上下文提供服务。然后,在此过程中还需要做出许多决策,以真正使提供数据的长上下文性能发挥作用。这些注意力计算发生了微妙的变化,它改变了架构。但是,提供长上下文会极大地限制内存,尤其是当您做出大量预测时。我实际上不知道为什么输入和输出令牌更昂贵,但我认为本质上输出令牌,你必须做更多的计算,因为你必须从模型中采样。
— Nathan Lambert (02:03:12)
🎙️ 完整对话(1016 条)
Lex Fridman (00:00:00)
The following is a conversation with Dylan Patel and Nathan Lambert. Dylan runs SemiAnalysis, a well-respected research and analysis company that specializes in semiconductors, GPUs, CPUs, and AI hardware in general. Nathan is a research scientist at the Allen Institute for AI and is the author of the amazing blog on AI called Interconnects. They are both highly respected, read and listened to by the experts, researchers and engineers in the field of AI. And personally, I’m just a fan of the two of them, so I used the DeepSeek moment that shook the AI world a bit as an opportunity to sit down with them and lay it all out from DeepSeek, OpenAI, Google XAI, Meta, Anthropic to NVIDIA and DSMC, and to US-China-Taiwan relations and everything else that is happening at the cutting edge of AI. This conversation is a deep dive into many critical aspects of the AI industry.
以下是与迪伦·帕特尔和内森·兰伯特的对话。 Dylan 经营 SemiAnalysis,这是一家备受尊敬的研究和分析公司,专门从事半导体、GPU、CPU 和人工智能硬件的研究。 Nathan 是艾伦人工智能研究所的研究科学家,也是令人惊叹的人工智能博客 Interconnects 的作者。它们都受到人们的高度尊重、阅读和聆听
Lex Fridman (00:01:08)
While it does get super technical, we try to make sure that it’s still accessible to folks outside of the AI field by defining terms, stating important concepts explicitly, spelling out acronyms, and in general, always moving across the several layers of abstraction and levels of detail. There is a lot of hype in the media about what AI is and isn’t. The purpose of this podcast in part is to cut through the hype, through the bullshit and the low resolution analysis and to discuss in detail how stuff works and what the implications are. Let me also, if I may comment on the new OpenAI o3-mini reasoning model, the release of which we were anticipating during the conversation and it did indeed come out right after. Its capabilities and costs are on par with our expectations as we stated. OpenAI o3-mini is indeed a great model, but it should be stated that DeepSeek-R1 has similar performance on benchmarks, is still cheaper and it reveals its chain of thought reasoning, which o3-mini does not. It only shows a summary of the reasoning, plus R1 is open weight and o3-mini is not.
虽然它确实变得非常技术性,但我们试图通过定义术语、明确说明重要概念、拼出首字母缩略词以及通常始终跨越多个抽象层和细节层次来确保人工智能领域之外的人们仍然可以理解它。媒体对人工智能是什么和不是什么进行了很多炒作。这个播客的部分目的是为了减少
Lex Fridman (00:02:29)
By the way, I got a chance to play with o3-mini and anecdotal vibe check wise, I felt that o3-mini, specifically o3-mini high is better than R1. Still for me personally, I find that Claude Sonnet 3.5 is the best model for programming except for tricky cases where I will use o1 Pro to brainstorm. Either way, many more better AI models will come including reasoning models both from American and Chinese companies. They’ll continue to shift the cost curve, but the quote “DeepSeek moment” is indeed real. I think it will still be remembered five years from now as a pivotal event in tech history due in part to the geopolitical implications, but for other reasons to, as we discuss in detail from many perspectives in this conversation. This is the Lex Fridman podcast, to support it please check out our sponsors in the description. And now, dear friends, here’s Dylan Patel and Nathan Lambert. DeepSeek-R1 and DeepSeek-V3
顺便说一句,我有机会玩o3-mini,从轶事氛围检查来看,我觉得o3-mini,特别是o3-mini high比R1更好。仍然对我个人来说,我发现 Claude Sonnet 3.5 是最好的编程模型,除了棘手的情况,我会使用 o1 Pro 进行头脑风暴。不管怎样,更多更好的人工智能模型将会出现,包括来自美国和中国的推理模型
Lex Fridman (00:03:33)
A lot of people are curious to understand China’s DeepSeek AI models, so let’s lay it out. Nathan, can you describe what DeepSeek-V3 and DeepSeek-R1 are, how they work, how they’re trained? Let’s look at the big picture and then we’ll zoom in on the details.
很多人很好奇了解中国的DeepSeek AI模型,我们来介绍一下。 Nathan,您能描述一下 DeepSeek-V3 和 DeepSeek-R1 是什么、它们如何工作、如何训练吗?让我们先看一下大局,然后再放大细节。
Lex Fridman (00:03:50)
DeepSeek-V3 is a new mixture of experts, transformer language model from DeepSeek who is based in China. They have some new specifics in the model that we’ll get into. Largely this is a open weight model and it’s a instruction model like what you would use in ChatGPT. They also released what is called the base model, which is before these techniques of post-training. Most people use instruction models today, and those are what’s served in all sorts of applications. This was released on, I believe, December 26th or that week. And then weeks later on January 20th, DeepSeek released DeepSeek-R1, which is a reasoning model, which really accelerated a lot of this discussion.
DeepSeek-V3是来自中国DeepSeek的专家、Transformer语言模型的新混合体。他们在我们将要讨论的模型中提供了一些新的细节。很大程度上,这是一个开放权重模型,它是一个指令模型,就像您在 ChatGPT 中使用的模型一样。他们还发布了所谓的基础模型,这是在这些后训练技术之前的。大多数人使用指令模式
Nathan Lambert (00:04:38)
This reasoning model has a lot of overlapping training steps to DeepSeek-V3, and it’s confusing that you have a base model called V3 that you do something to to get a chat model and then you do some different things to get a reasoning model. I think a lot of the AI industry is going through this challenge of communications right now where OpenAI makes fun of their own naming schemes. They have GPT-4o, they have OpenIA o1, and there’s a lot of types of models, so we’re going to break down what each of them are. There’s a lot of technical specifics on training and go through them high level to specific and go through each of them.
这个推理模型与 DeepSeek-V3 有很多重叠的训练步骤,令人困惑的是,你有一个名为 V3 的基本模型,你对其进行一些操作以获得聊天模型,然后你做一些不同的操作来获得推理模型。我认为许多人工智能行业现在正在经历这种通信挑战,OpenAI 取笑他们自己的命名方案。他们有GPT
Lex Fridman (00:05:14)
There’s so many places we can go here, but maybe let’s go to open weights first. What does it mean for a model to be open weights and what are the different flavors of open source in general?
我们可以去的地方有很多,但也许我们先去自由重量吧。对于一个模型来说,开放权重意味着什么?一般来说,开源有哪些不同的风格?
Nathan Lambert (00:05:24)
This discussion has been going on for a long time in AI. It became more important since ChatGPT or more focal since ChatGPT at the end of 2022. Open weights is the accepted term for when model weights of a language model are available on the internet for people to download. Those weights can have different licenses, which is effectively the terms by which you can use the model. There are licenses that come from history and open source software. There are licenses that are designed by companies specifically all of Llama, DeepSeek, Qwen, Mistral, these popular names in open weight models have some of their own licenses. It’s complicated because not all the same models have the same terms. The big debate is on what makes a model open weight. It’s like, why are we saying this term? It’s a mouthful. It sounds close to open source, but it’s not the same.
这种讨论在人工智能领域已经持续了很长时间。自 ChatGPT 以来,它变得更加重要,或者自 2022 年底 ChatGPT 以来,它变得更加焦点。开放权重是公认的术语,表示语言模型的模型权重可以在互联网上供人们下载。这些权重可以有不同的许可证,这实际上是您可以使用该模型的条款。有许可证
Nathan Lambert (00:06:17)
There’s still a lot of debate on the definition and soul of open source AI. Open source software has a rich history on freedom to modify, freedom to take on your own, freedom for many restrictions on how you would use the software and what that means for AI is still being defined. For what I do, I work at the Allen Institute for AI, we’re a nonprofit, we want to make AI open for everybody and we try to lead on what we think is truly open source. There’s not full agreement in the community, but for us that means releasing the training data, releasing the training code, and then also having open weights like this. And we’ll get into the details of the models and again and again as we try to get deeper into how the models were trained, we will say things like the data processing, data filtering data quality is the number one determinant of the model quality.
关于开源人工智能的定义和灵魂仍然存在很多争论。开源软件在自由修改、自行承担的自由、对如何使用软件的许多限制的自由方面有着丰富的历史,而这对人工智能意味着什么仍在定义中。对于我所做的工作,我在艾伦人工智能研究所工作,我们是一家非营利组织,我们希望让人工智能向所有人开放,我们
Lex Fridman (00:07:09)
And then a lot of the training code is the determinant on how long it takes to train and how fast your experimentation is. Without fully open source models where you have access to this data, it is hard to know… Or it’s harder to replicate. We’ll get into cost numbers for DeepSeek-V3 on mostly GPU hours and how much you could pay to rent those yourselves. But without the data, the replication cost is going to be far, far higher. And same goes for the code.
然后,很多训练代码决定了训练需要多长时间以及实验的速度。如果没有完全开源的模型来访问这些数据,就很难知道……或者更难复制。我们将了解 DeepSeek-V3 主要在 GPU 时间上的成本数据,以及您可以自己租用这些设备的费用。但如果没有数据,复制成本
Lex Fridman (00:07:37)
We should also say that this is probably one of the more open models out of the frontier models.
我们还应该说,这可能是前沿模型中较为开放的模型之一。
Nathan Lambert (00:07:43)
Yes.
是的。
Lex Fridman (00:07:45)
In this full spectrum where probably the fullest open source, like you said, open code, open data, open weights, this is not open code, this is probably not open data and this is open weights and the licensing is MIT license or it’s… There’s some nuance in the different models, but it’s towards the free… In terms of the open source movement, these are the good guys.
在这个全方位的领域中,可能是最全面的开源,就像你说的,开放代码,开放数据,开放权重,这不是开放代码,这可能不是开放数据,这是开放权重,许可是麻省理工学院的许可证,或者是……不同的模型存在一些细微差别,但它是朝着免费的……就开源运动而言,这些都是好人。
Nathan Lambert (00:08:13)
Yeah. DeepSeek is doing fantastic work for disseminating understanding of AI. Their papers are extremely detailed in what they do and for other teams around the world, they’re very actionable in terms of improving your own training techniques. And we’ll talk about licenses more, the DeepSeek-R1 model has a very permissive license. It’s called the MIT license. That effectively means there’s no downstream restrictions on commercial use, there’s no use case restrictions. You can use the outputs from the models to create synthetic data.
是的。 DeepSeek 在传播对人工智能的理解方面做了出色的工作。他们的论文非常详细地介绍了他们所做的事情,对于世界各地的其他团队来说,他们在提高自己的训练技术方面非常具有可操作性。我们将更多地讨论许可证,DeepSeek-R1 模型具有非常宽松的许可证。这就是所谓的麻省理工学院许可证。这实际上意味着没有下降
Lex Fridman (00:08:47)
And this is all fantastic. I think the closest peer is something like Llama where you have the weights and you have a technical report. And the technical report is very good for Llama. One of the most read PDFs of the year last year is the Llama 3 paper, but in some ways it’s slightly less actionable. It has less details on the training specifics. I think less plots and so on. And the Llama 3 license is more restrictive than MIT. And then between the DeepSeek custom license and the Llama license, we could get into this whole rabbit hole, I think. We’ll make sure we want to go down the license rabbit hole before we do specifics.
这一切都太棒了。我认为最接近的同行是像 Llama 这样的东西,你有重量并且有技术报告。 Llama 的技术报告非常好。去年阅读量最大的 PDF 之一是 Llama 3 论文,但在某些方面它的可操作性稍差。它对培训细节的细节较少。我觉得情节少点等等。还有美洲驼 3 虱子
Lex Fridman (00:09:22)
It should be stated that one of the implications that DeepSeek, it puts pressure on Llama and everybody else on OpenAI to push towards open source. And that’s the other side of open source is that you mentioned is how much is published in detail about it, so how open are you with the insights behind the code? How good is the technical reports? Are there hand wavy or is there actual details in there? And that’s one of the things that DeepSeek did well is they published a lot of the details.
应该指出的是,DeepSeek 的影响之一是,它向 Llama 和 OpenAI 上的其他所有人施加压力,要求他们推动开源。这就是开源的另一面,你提到的是有多少关于它的详细信息发布了,那么你对代码背后的见解有多开放?技术报告有多好?是否有手部波浪形或其中是否有实际细节
Nathan Lambert (00:09:52)
Especially in the DeepSeek-V3, which is their pre-training paper. They were very clear that they are doing interventions on the technical stack that go at many different levels. For example, on their to get highly efficient training, they’re making modifications at or below the CUDA layer for NVIDIA chips. I have never worked there myself and there are a few people in the world that do that very well, and some of them are at DeepSeek. These types of people are at DeepSeek and leading American frontier labs, but there are not many places.
特别是在 DeepSeek-V3 中,这是他们的预训练论文。他们非常清楚,他们正在对许多不同层面的技术堆栈进行干预。例如,为了获得高效的训练,他们正在 NVIDIA 芯片的 CUDA 层或以下进行修改。我自己从未在那里工作过,世界上有几个人做得非常好
Lex Fridman (00:10:25)
To help people understand the other implication of open weights, just there’s a topic we’ll return to often here. There’s a fear that China, the nation might have interest in stealing American data, violating privacy of American citizens. What can we say about open weights to help us understand what the weights are able to do in terms of stealing people’s data?
为了帮助人们理解开放权重的其他含义,我们将在这里经常讨论一个主题。人们担心中国可能有兴趣窃取美国数据,侵犯美国公民的隐私。关于开放权重,我们能说些什么来帮助我们了解权重在窃取人们的数据方面能够做什么?
Nathan Lambert (00:10:55)
These weights that you can download from Hugging Face or other platforms are very big matrices of numbers. You can download them to a computer in your own house that has no internet and you can run this model and you’re totally in control of your data. That is something that is different than how a lot of language model usage is actually done today, which is mostly through APIs where you send your prompt to GPUs run by certain companies. And these companies will have different distributions and policies on how your data is stored, if it is used to train future models, where it is stored, if it is encrypted, and so on. The open weights are you have your fate of data in your own hands, and that is something that is deeply connected to the soul of open source.
您可以从 Hugging Face 或其他平台下载的这些权重是非常大的数字矩阵。您可以将它们下载到您自己家里没有互联网的计算机上,然后您可以运行该模型,并且完全控制您的数据。这与当今许多语言模型的实际使用方式有所不同,后者主要是通过 API 发送您的信息
Lex Fridman (00:11:37)
It’s not the model that steals your data, it’s whoever is hosting the model, which could be China if you’re using the DeepSeek app or it could be Perplexity. You’re trusting them with your data or OpenAI, you’re trusting them with your data. And some of these are American companies, some these are Chinese companies, but the model itself is not doing the stealing, it’s the host. All right, so back to the basics. What’s the difference between DeepSeek-V3 and DeepSeek-R1? Can we try to lay out the confusion potential?
窃取您数据的不是模型,而是托管模型的人,如果您使用 DeepSeek 应用程序,则可能是中国,也可能是 Perplexity。您信任他们的数据或 OpenAI,您信任他们的数据。其中一些是美国公司,一些是中国公司,但模型本身并不是在偷窃,而是主机。好吧,那么回来吧
Nathan Lambert (00:12:11)
Yes. For one, I have very understanding of many people being confused by these two model names, so I would say the best way to think about this is that when training a language model, you have what is called pre-training, which is when you’re predicting the large amounts of mostly internet text you’re trying to predict the next token. And what to know about these new DeepSeek models is that they do this internet large scale pre-training once to get what is called DeepSeek-V3 base. This is a base model, it’s just going to finish your sentences for you. It’s going to be harder to work with than ChatGPT. And then what DeepSeek did is they’ve done two different post-training regimes to make the models have specific desirable behaviors. What is the more normal model in terms of the last few years of AI, an instruct model, a chat model, a quote unquote “aligned model”, a helpful model. There are many ways to describe this is more standard post-training. This is things like instruction tuning, reinforcement learning from human feedback.
Nathan Lambert (00:13:12)
We’ll get into some of these words and this is what they did to create the DeepSeek-V3 model. This was the first model to be released and it is very high performant, it’s competitive with GPT-4, Llama 405B and so on. And then when this release was happening, we don’t know their exact timeline or soon after they were finishing the training of a different training process from the same next token prediction based model that I talked about, which is when this new reasoning training that people have heard about comes in in order to create the model that is called DeepSeek-R1. The R through this conversation is good for grounding for reasoning. And the name is also similar to OpenAI’s o1, which is the other reasoning model that people have heard about. And we’ll have to break down the training for R1 in more detail because for one we have a paper detailing it, but also it is a far newer set of techniques for the AI community, so it is a much more rapidly evolving area of research.
Lex Fridman (00:14:11)
Maybe we should also say the big two categories of training of pre-training and post-training. These are umbrella terms that people use, so what is pre-training and what is post-training and what are the different flavors of things underneath the post-training umbrella?
Nathan Lambert (00:14:28)
Pre-training, I’m using some of the same words to really get the message across is you’re doing what is called autoregressive prediction to predict the next token in a series of documents. This is done over standard practice is trillions of tokens, so this is a ton of data that is mostly scraped from the web. And some of DeepSeek’s earlier papers, they talk about their training data being distilled for math. I shouldn’t use this word yet, but taken from Common Crawl and that’s a public access that anyone listening to this could go download data from the Common Crawl website. This is a crawler that is maintained publicly. Yes, other tech companies eventually shift to their own crawler and DeepSeek likely has done this as well as most frontier labs do. But this sort of data is something that people can get started with and you’re just predicting text in a series of documents.
Nathan Lambert (00:15:18)
This can be scaled to be very efficient and there’s a lot of numbers that are thrown around in AI training like how many floating-point operations or flops are used. And then you can also look at how many hours of these GPUs that are used. And it’s largely one loss function taken to a very large amount of compute usage. You set up really efficient systems and then at the end of that you have the base model and pre-training is where there is a lot more of complexity in terms of how the process is emerging or evolving and the different types of training losses that you’ll use. I think this is a lot of techniques grounded in the natural language processing literature. The oldest technique which is still used today is something called instruction tuning or also known as supervised fine-tuning. These acronyms will be IFT or SFT.
Nathan Lambert (00:16:16)
People really go back and forth throughout them, and I’ll probably do the same, which is where you add this formatting to the model where it knows to take a question that is, explain the history of the Roman Empire to me or a sort of question you’ll see on Reddit or Stack Overflow. And then the model will respond in a information-dense but presentable manner. The core of that formatting is in this instruction tuning phase. And then there’s two other categories of loss functions that are being used today. One I’ll classify as preference fine-tuning. Preference fine-tuning is a generalized term for what came out of reinforcement learning from human feedback, which is RLHF. This reinforcement learning from human feedback is credited as the technique that helped ChatGPT break through. It is a technique to make the responses that are nicely formatted like these Reddit answers more in tune with what a human would like to read.
Nathan Lambert (00:17:14)
This is done by collecting pairwise preferences from actual humans out in the world to start and now AIs are also labeling this data and we’ll get into those trade-offs. And you have this contrastive loss function between a good answer and a bad answer. And the model learns to pick up these trends. There’s different implementation ways. You have things called reward models. You could have direct alignment algorithms. There’s a lot of really specific things you can do, but all of this is about fine-tuning to human preferences. And the final stage is much newer and will link to what is done in R1 and these reasoning models is I think OpenAI’s name for this, they had this new API in the fall, which they called the reinforcement fine-tuning API. This is the idea that you use the techniques of reinforcement learning, which is a whole framework of AI.
Nathan Lambert (00:18:02)
There’s a deep literature here to summarize, it’s often known as trial and error learning or the subfield of AI where you’re trying to make sequential decisions in a certain potentially noisy environment. There’s a lot of ways we could go down that, but fine-tuning language models where they can generate an answer and then you check to see if the answer matches the true solution. For math or code you have an exactly correct answer for math, you can have unit tests for code. And what we’re doing is we are checking the language model’s work and we’re giving it multiple opportunities on the same questions to see if it is right. And if you keep doing this, the models can learn to improve in verifiable domains to a great extent. It works really well. It’s a newer technique in the academic literature. It’s been used at frontier labs in the US that don’t share every detail for multiple years. This is the idea of using reinforcement learning with language models and it has been taking off especially in this DeepSeek moment.
Lex Fridman (00:19:00)
And we should say that there’s a lot of exciting stuff going on again across the stack, but the post-training probably this year, there’s going to be a lot of interesting developments in the post-training. We’ll talk about it. I almost forgot to talk about the difference between DeepSeek-V3 and R1 on the user experience side. Forget the technical stuff, forget all of that, just people that don’t know anything about AI, they show up. What’s the actual experience, what’s the use case for each one when they actually type and talk to it? What is each good at and that kind of thing?
Nathan Lambert (00:19:32)
Let’s start with DeepSeek-V3, again it’s more people would tried something like it. You ask it a question, it’ll start generating tokens very fast and those tokens will look like a very human legible answer. It’ll be some sort of markdown list. It might have formatting to help you draw to the core details in the answer and it’ll generate tens to hundreds of tokens. A token is normally a word for common words or a sub word part in a longer word, and it’ll look like a very high quality Reddit or Stack Overflow answer. These models are really getting good at doing these across a wide variety of domains, I think. Even things that if you’re an expert, things that are close to the fringe of knowledge, they will still be fairly good at, I think.
查看原始文字稿 ↗
🔗 相关节目