Original post: https://www.interconnects.ai/p/deepseek-v3-and-the-actual-cost-of Chapters 00:00 Opening 03:15 DeepSeek’s learning efficiency 06:49 DeepSeek’s compute transparency and reality Figures Fig 1: Benchmark Results Fig 2: ChatBotArena Results Fig 3: Compute Usage Table This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit www.interconnects.ai/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
DeepSeq v3 and the actual cost of training Frontier AI models was published on Thursday,
SPEAKER_00January 9th, 2025. On December 26, 2024, while most of the Western AI world was off on their Christmas holiday, China's DeepSeq AI released their DeepSeq v3 general use model and base model with a detailed technical report and a demo at chat.deepseq.com. It's the latest mixture of experts model, MOE, trained on 14.8 trillion tokens with 671 billion total and 37 billion active parameters.
Most of the people are aware of the extremely impressive results relative to the
SPEAKER_00other frontier language models, most notable of which are the substantial improvements over Llama 405b Instruct, with way fewer active parameters than the previous best open weights model. See Figure 1, showing the benchmark results of DeepSeq V3. The most impressive part of these results are all on evaluations considered extremely hard. Math 500, which is a random 500 problem subset from the full math set. AIME AIM 2024, the math competition.
SPEAKER_00Code Forces, which is a code competition as featured in O3's results. Sweebench Verified. etc. Feeding the pair of GPT-40 and Claude 3.5 together, and by some margin, is extremely rare. Since release, we've also gotten confirmation of the Chatbot Arena ranking that places them in the top 10 and over the likes of recent Gemini Pro models, Grok 2, O1 Mini, etc. With only 37 billion active parameters,
SPEAKER_00this is extremely appealing for many enterprise applications. See Figure 2, which is the LMSYS chatbot arena results for DeepSeq V3. For the last week, I've been using DeepSeq V3 as my daily driver for normal chat tasks. This is everything from checking basic facts to asking for feedback on a piece of work. In all of these, DeepSeq V3 feels very capable, but how it presents its information doesn't feel exactly in line with my expectations for something like Claude or ChatGPT.
It almost feels like the character or post training on the model being shallow
SPEAKER_00makes it feel like the model has more to offer than it delivers. It's a very capable model, but not one that sparks as much joy when using it like Claude or with super polished apps like ChatGPT, so I don't know if I will keep using it long term. Thank you so much.
SPEAKER_00This post revisits the technical details of DeepSeq B3, but focuses on how best to view the cost of training models at the frontier of AI and how these costs may be changing. DeepSeq's Learning Efficiency We'll get into the specific numbers below, but the question is, which of the many technical innovations listed in the DeepSeq v3 report contributed most to its learning efficiency, i.e. model performance relative to compute used? Among the universal and loud praise,
there has been some skepticism on how much of the report is all novel breakthroughs,
SPEAKER_00a la did DeepSeq actually need pipeline parallelism, or high-performance computing has been doing this type of compute optimization forever, or also in TPU land, etc. The way to interpret both discussions should be grounded in the fact that the DeepSeq V3 model is extremely good on a per-flop comparison to pure models. All bells and whistles aside, the deliverable that matters is how good the models are relative to flops spent, that is comparing efficiency. Some of the noteworthy improvements in DeepSeq's training stack
include the following. It is debatable which of these is the largest factor in the model's learning efficiency.
SPEAKER_001. Multi-head latent attention, MLA, to minimize the memory usage of attention operators while maintaining modeling performance. 2. Multi-token prediction, similar to as studied in this meta-paper earlier in the year. to improve modeling performance by predicting multiple tokens in the loss of the forward pass. Click through to the link to the paper. Efficient mixture of expert architectures, which are continuing to perform better on benchmarks per flop of training compute. Partial 8-bit native training,
which can effectively double your compute by letting you fit twice as big a model
SPEAKER_00in the same memory. In practice, you only quantize part of the model weights or optimizer state, so the gain is less than double than one might think from the default of 16-bit training of today. And five, custom multi-GPU communication protocols to make up for slower communication speed of the H800 and optimize pre-training throughput. Each of these advancements in DeepSeq v3 could be covered in short blog posts of their own. The post-training side is less innovative, but gives more credence to those optimizing for online RL
training as DeepSeq did this,
SPEAKER_00with a form of constitutional AI as pioneered by Anthropic. The fact that the model of this quality is distilled from DeepSeq's reasoning model series, R1, makes me more optimistic about the reasoning model being the real deal. There's some controversy of them being DeepSeq, training on outputs from OpenAI models, but this is now harder to prove with how many outputs from ChachiPT are generally available on the web. It's hard to filter out at pre-training,
SPEAKER_00especially if it makes a bottle better, so you may want to turn a blind eye to it. Many of the techniques DeepSeq describes in their paper are things that our ULMO team at AI2 would benefit from having access to and is taking direct inspiration from. DeepSeq implemented many tricks to optimize their stack that only have been done well at three to five other AI laboratories in the world. Reproducing this is not impossible and bodes well for the future of AI where ability is distributed across more players.
The costs will come down over time, but the cited numbers are not yet true.
SPEAKER_00DeepSeq even mentions this in their report, where when I get into the compute numbers, remember that DeepSeq said, quote, note that the aforementioned costs include only the official training of DeepSeq v3, excluding the costs associated with prior research and ablation experiments on architectures, algorithm, or data. DeepSeq's Compute Transparency and Reality Flexing on how much compute you have access to is common practice among AI companies. It's also a powerful recruiting tool.
It is strongly correlated with how much progress you or the organization you're
SPEAKER_00joining can make. For Chinese companies that are feeling the pressure of substantial chip export controls, it cannot be seen as particularly surprising to have the angle of, wow, we can do way more than you did with less. I'd probably do the same in their shoes. It is far more motivating than, my cluster is bigger than yours. This goes to say that we need to understand how important the narrative of compute numbers is to their reporting. DeepSeq AI took Meta directly in their sites to convincingly claim the title of Lead Open Weight Frontier Model Laboratory.
They shared the following table in their paper about the amount of compute used to
SPEAKER_00train their models. See Figure 3, which is a table of compute H800 hours used per stage of training, DeepSeq V3. with an additional explanation in the text. Quote,
SPEAKER_00First, we need to contextualize the GPU hours themselves. This is the raw measure of infrastructure efficiency. Mama3 405B used 30.8 million GPU hours for training relative to DeepSeq's 2.6 million GPU hours. DeepSeq's engineering team is incredible at making use of constrained resources. For reference, the NVIDIA H800 is a nerfed version of the H100 chip. Semi-analysis has good explanation for what is different.
SPEAKER_00Quote, NVIDIA quickly made new versions of their AA100 and H100 GPUs that are effectively just as capable named the A800 and H800. These GPUs do not cut down the total compute or memory bandwidth. While NV leak speed are cut to 400 gigabytes per second, that is not restricted for most parallelism strategies that are employed such as 8x tensor parallel, fully sharded data parallel, and pipeline parallelism. These cut downs are not able to be end-use checked either and
could potentially be reversed like NVIDIA's former crypto mining limiters if the hardware isn't fused off.
SPEAKER_00End quote. To translate, the H800s are still very strong GPUs, but restrict the effective configurations you can use them in. A second point to consider is why DeepSeq is training on only 2,048 GPUs, while Meta highlights training their model on greater than 16,000 GPU clusters. This is likely DeepSeq's most effective pre-training cluster, and they have many other GPUs that are either not geographically co-located or lack
SPEAKER_00chip-band-restricted communication equipment, making the throughput of other GPUs lower. Multiple estimates put DeepSeq in the 20K to 50K A100 equivalent of GPUs. This is far less than meta, but it is still one of the organizations in the world with the most access to compute. If DeepSea could, they'd happily train on more GPUs concurrently. Training one model for multiple months is extremely risky in allocating an organization's most valuable asset,
SPEAKER_00the GPUs. According to Semi-Analysis, one of the failures of OpenAI's Orion was that it needed so much compute that it took over three months to train. This is a situation OpenAI explicitly wants to avoid. It's better for them to iterate quickly on new models like O3. For example, for 2LU3, we trained about 1,000 models to converge on the post-training recipe we were happy with. Only one of those hundreds of runs would appear in the post-training compute category above.
Lower bounds for compute are essential to understand the progress of technology and
SPEAKER_00peak efficiency. But without substantial compute had room to experiment on large-scale models, DeepSeq v3 would never have existed. The cumulative question of how much total compute is used in experimentation for a model like this is much trickier. Common practices in language modeling laboratories is to use scaling laws to de-risk ideas for pre-training, so that you spend very little time training at the largest sizes that do not result in working models. This looks like thousands of runs at a very small size, likely 1B to 7B parameters.
to intermediate data amounts, anywhere from Ginchilla optimal to 1 trillion tokens.
SPEAKER_00Surely DeepSeq did this. The total compute used for DeepSeq v3 model for pre-training experiments would likely be two to four times the reported number in the paper. This does not account for other projects they used as ingredients for DeepSeq V3, such as DeepSeq R1 Lite, which was used for synthetic data. Like any laboratory, DeepSeq surely has other experimental items going in the background too. Tracking the compute used for a project just going off the final pre-training run is a very unhelpful way to estimate actual cost.
It's a very useful measure for understanding the actual utilization of compute and
SPEAKER_00the efficiency of the underlying learning, but assigning a cost to the model based on the market price for the GPUs used in the final run is deceptive. A true cost of ownership of the GPUs, to be clear, we don't know if DeepSeek owns or rents the GPUs, would follow an analysis similar to the semi-analysis total cost of ownership model, which is a paid feature on top of their newsletter, that incorporates costs in addition to the actual GPUs. For large GPU clusters of 10,000 plus A or H100s, line items such as electricity end up costing over $10 million per year.
SPEAKER_00The capex on the GPUs themselves, at least for H100s, is probably over a billion dollars, based on a market price of $30,000 for a single GPU. These costs are not all necessarily borne directly by DeepSeq, i.e. they could be working with a cloud provider, but their cost on compute alone is at least likely $100 million per year. For one example, consider comparing how Deepseek V3 has 139 technical authors. This is a very large technical team. With headcount costs,
that could also easily be over $10 million per year. Estimating the cost of operations for Deepseek AI would be closer to $500 million or even a billion dollars plus than any of the $5 million numbers tossed around for
SPEAKER_00this model. The success here is that they're relevant among American technology companies spending what is approaching or surpassing $10 billion per year on AI models. The price of progress in AI is far closer to this, at least until substantial improvements are made to the open versions of infrastructure, code and data. This brings us back to the same debate. What is actually open source AI? The cost to train models will continue to fall with open weight models,
SPEAKER_00especially when accompanied by detailed technical reports. But the pace of diffusion is bottlenecked by the need for challenging reverse engineering slash reproduction efforts. We're seeing this with the O1-style models. Now that we know they exist, many teams will build what OpenAI did with one-tenth the cost. Knowing what DeepSeek did, more people are going to be willing to spend on building large AI models. The risk of these projects going wrong decreases as more people gain the knowledge to do so. If DeepSeq v3 or a similar model was released with full
training data and code as a
SPEAKER_00true open source language model, then the cost numbers would be true on their face value. Open source makes continued progress in dispersion of the technology accelerate. For now, the most valuable part of DeepSeq is likely the technical report. Given the vast size of the model, most users won't be leveraging the fact that the model weights are available and will be using it directly on chat.deepseek.com or via the API, pointing to pressing questions on the why of open source AI.
SPEAKER_00Regardless, at this rate, it will be true that you can train a model at the performance of DeepSeq v3 for about $5 million in a few years. For now, the costs are far higher as they involve a combination of extending open source tools like Olmocode and poaching extensive employees that can resolve problems at the frontier of AI. The paths are clear. DeepSeek shows a lot of the modern AI pipeline is not magic. It's consistent gains accumulated on careful engineering and decision-making.
SPEAKER_00In face of the dramatic capital expenditures from big tech, billion-dollar fundraisers from Anthropic and OpenAI, and continued export controls on AI chips, DeepSeek has made it far further than many experts predicted. The ability to make cutting-edge AI is not restricted to a select cohort of the San Francisco in-group. The costs are currently high, but organizations like DeepSeek are cutting them down day by day. Earlier last year, many would have thought that scaling in GPT-5 class models would operate in a cost that DeepSeek cannot afford.
SPEAKER_00As Meta utilizes their LLAMA models more deeply in their products, from recommendation systems to Meta AI, they'd also be expected to be the winner in open-weight models. Today, these trends are refuted. Meta has to use their financial advantages to close the gap. This is a possibility, but not a given. I certainly expect a Llama 4 mixture of experts model within the next few months and am even more excited to watch the story of open models unfold. I'll be sharing more soon on how to interpret the balance of power in open-weight
SPEAKER_00language models between the US and China, i.e. how much is intentional policy versus happenstance of companies. Thanks for listening, and have a great day.
The resignation of Nvidia CEO Jensen Huang is a major setback for the US development of an open model ecosystem. Nvidia still has the financial interests in supporting open models, which are to avoid concentration in...
Last week coined the term “Black October“ after an onslaught of critical vulnerability disclosures, including PHP2Shell and a long-standing GitLab bug, signified the moment when the cyber risks of AI models started to...
Hill-climbing is easy, knowing what to hill-climb is hard. Making scores go up is expensive, but we have a much clearer playbook for it than we do for creating meaningful benchmarks at the true frontier of AI today....
We - Nathan and Florian - wanted to discuss all the messy trade-offs of a busy week in AI and ask all the pressing questions like: * Why did Kimi K3.1 Pro have a mixed reaction with such incredible benchmarks? Will it...
This has been a week where the balance of American open-weight models took a step change back toward the frontier. Meta took the lead of this charge with Muse Spark Open, which is now the strongest American-made open...