231 points · by zdw · 4y ago · 159 comments
Having tons of small CPUs with fast local SRAM is of course not a new idea. Back in 1998, I talked to a startup that believed it could replace standard cell ASIC design with tiny CPUs that had custom instruction sets. (I didn't believe it could: it's extremely area inefficient and way to power hungry for that kind of application. The startup went nowhere.) And the IBM Cell is indeed an obvious inspiration.
But AFAIK, the IBM Cell was hard to program. I've seen PS3 presentations where it was primarily used as a software defined GPU, because it was just too difficult to use as a general purpose processor.
Now NOT being a general purpose process is the whole point of Dojo, so maybe they can make it work. But from my limited experience with CUDA, virtual memory and direct access to DRAM is a major plus, even if the high performance compute routines make intensive use of shared memory. The fact that an interface processor is involved (how?) in managing your local SRAM must make synchronization much more complex than with CUDA, where everything is handled by the same SM that manages the calculations: your warp issues a load, it waits on a barrier, the calculations happens, sometimes in a side unit in which case you again wait on a barrier, you offload the data and wait on a barrier. And while one warp waits on a barrier, another warp can take over. It's pretty straightforward.
The Dojo model suggests that "wait on a barrier" becomes "wait on the interface processor".
Another oddball architecture that went nowhere.
It feels like "within the time limits" has always been the problem of difficult to program for software-dependant architectures: time vs competitors.
E.g. in the time it takes to write an intelligent compiler (IA-64), your better-resourced (because they're getting revenue from the current market) competitor has surpassed your performance via brute evolution force.
There are use cases out there (early supercomputing, NVIDIA) where radical, development-heavy architectures have been successful, but they generally lack of competitor (the former) or iterate ruthlessly themselves (the latter).
Connection machine = only had one customer afaik (NSA)
Transmeta - interesting technology but nobody in that market wanted to run anything besides Windows+x86.
Even if that increases the stock price by 1%, this investment pays for itself a hundred times over.
The $100-million chip might very well be the easy part of this project...
Tesla is big enough that they can afford to experiment a little. This sounds like an experiment that actually worked. Once they had it working, doing more of it and iterating on it is just business as usual for them.
Are you sure? We haven’t even seen the chip in any physical form yet. We haven’t seen it running any code.
Which is brilliant: they might end up making money on this.
AI is clearly here to stay. The demand for AI training will clearly explode in the future.
Running training in-house is not easy or cheap. You don't just plug in 1000 NVIDIA GPUs. You need massive up-front payment for GPUs and you're basically running your own extremely energy hungry datacenter .
Tesla might built and operate massive datacenters. They'll use as much as they need for internal needs and sell the remaining capacity to others.
This might take 5 years but the path to do it is clear.
For one, they’ve built a chip that operates in a fundamentally different way to other chips. So any other company that wanted to use it would have to invest a considerable amount of resources in building up the institutional knowledge to use it effectively.
Additionally, the lack of virtual memory and multi-tasking support renders it pretty much impossible to divide up compute between multiple customers. So, commercialising this would require customers renting out the whole unit, which is contrary to how cloud computing usually works.
Are there companies out there that have the capital and use cases necessary to fit into Dojo Cloud? Maybe, though not one I’ve worked for. Would they trust the stable genius currently heading up Tesla enough to make such an investment? Perhaps, but I wouldn’t, but what do I know?
Internal research product is super far from any actual production usage. Especially if you go against some established paradigms, that require enormous amount of effort (more than developing silicon) to build tolling around, so people can design, program, debug, monitor it.
But that’s internal usage. Cloud is a totally different ballgame. You have to deal with thousands more requirements (and you cannot generally tell customer to do something else instead, as you can with internal teams). And customers that have operating procedures totally different from yours, 0 access to your internal knowledge and infinite less tolerance for BS answers (as you are paying customer, not a someone on the same boat).
Building cloud is extremely hard, and there’s a reason why Google is still losing money on it.
Plus, let’s even say that your 5 year estimate is correct, Dojo is amazing and the future of tech and they may have viable product by then. Do you think that Nvidia wont advance their AI offering by then? Google TPU will stop being developed? Or will Tesla continue investing to churn new generation of Dojo every year?
"If we manage to put together a working processor, supporting hardware, OS, and possibly ad-hoc programming language, our next step is to also develop a bunch of web services to provide cloud hosting services."
Not very credible. As if the key to offer competing cloud hosting services is developing the whole hardware and software stack.
Then talk about the upfront in house costs of setting up for GPU ops. But ignore that if an AWS style model works for you, well, AWS is already capable of giving it to you in GPUs.
AMD chips like MI250x are 5nm with tensor matrix multiplication units. NVidia Hopper will be like 4nm IIRC?
They've already been working on this for almost 7 years. This is not some side projects but a serious operation. They have to ship something sometime and they decided to ship this now.
I'm confident that they know about 5nm process and chose 7nm for good reasons.
There will be next version and next process.
Implementing a process shrink is not just scaling the masks by the appropriate percentage. It often is a completely different optical train, at a different wavelength, different pellicle, changing the refractive index of the immersion fluid, different multiple patterning. It takes months (years?) of work.
For many applications it's worth it, but it's not at all a slam dunk. The vast majority of ASICs are designed for a particular node and never upgraded. It's the kind of crazy long-term speculative capital investment TSLA might have indulged in when the stock was at $414 a share, but it's nowhere remotely near that today.
They're already engaging in layoffs, today. Why spend the money?
You both have limited availability of the node and limited availability of the particular chip.
Plus you are paying the margin of that company.
So power efficiency becomes king, and process node is the best way to minimize power consumption.
But your comment is neither here not there.
What do you think is a timeline for designing a chip like Dojo from scratch?
Tesla has been working on this for almost 7 years (https://www.linkedin.com/in/ganesh-venkataramanan-99272a3/).
They might not work fast enough for your satisfaction but can you point any other car company designing chips like Dojo?
Hell, can you point to any company at all that can come out of the gate with a chip design competitive with the best design of NVIDIA, a company that makes nothing but chips?
After 7 years of work they are clearly confident that this will work or else they would scarp the project instead of giving talks at conferences.
They are clearly confident that FSD will work, to the point of promising it "this year"...
coincidentally, they've been promising "this year" for the last 7 years. And FSD still fails in spectacular/hilarious/horrifying ways, and isn't _remotely_ close.
Google.
Being real for a second, Tesla don’t have an amazing track record of delivery on their ai software side of things.
Part of Tesla vertical integration mantra is that you are building internal capacity.
Doesn't the same apply to FSD? How many years is it now ready the next year?
You don't seem to understand the timelines of designing chips like that from scratch.
Dojo has been in works for almost 7 years. Tesla will continue to work on this for the next 20 years. There will be Dojo v2, Dojo v3 etc. just like at SpaceX there was Falcon 1, Falcon 9, Falcon Heavy.
This still might end up a failure but they clearly feel confident enough to talk about Dojo publicly, which wasn't the case for the first 5 years of its development.
But is that really the intention? Wouldn't it be enough if there is one program written for it, one that takes a bunch of inputs and a bunch of outputs and then creates a set of NN weights that perform well?
So the AWS style offer would not be "rent our hardware and program on it" but "rent our hardware/software stack, throw your input/output pairs at it and get back a set (billions) of NN weights that perform well".
Or because the program behaves differently in different places, and it is too big to optimize.
I honestly can't see how they make (or save) enough money with just the data center chip here.
Maybe if the inference chip is on a cheaper 12nm process or something... Maybe?
It's about accelerating nn training and winning robotaxi market, which could make them the most profitable company ever.
The question is if they are saving money compared to buying an off the shelf DGX system. I really doubt it.
AMD pays for this flexibility by spending about 44% of “Zeppelin” die area on logic other than cores and cache. Dojo only spends 28.9% of die area on things other than SRAM and cores.
Doesn't sound worth it? You're basically spending a ton of money to fab a chip for what amounts to like a 30% training performance boost? Just buy more chips.For comparison, the fastest single-chip GPU today is the AMD MI250X which has 220 "cores" (compute units) totaling 383 BF16 TFLOPS at 1.7 GHz, and that's a monster 560 watt chip.
The Dojo chip is likely under this 560 was TDP, so more efficient. And Tesla provides roughly the same compute performance, but the chip is arrayed in 61% more cores, meaning it is far more suitable to handle branchy code. Also Tesla claims the die measures only 645 mm², compared to 1540 mm² for AMD. So the wafer fabrication cost is roughly half(!) of AMD's!
If Tesla has truly managed to build that, I'm impressed.
Edit: I missed that Tesla claims "less than 600 watt" per chip. So we know its comparable or less than AMD (560 watt).
Edit 2: 25 dies are packed on a single system-on-wafer. That's 15 kW on a disc of 30 cm (12 in) of diameter. Sheesh! That must require an ungodly liquid cooling system!
Edit 3: there is more info, including rendering of the host interface card at:
https://www.servethehome.com/tesla-dojo-custom-ai-supercompu... and
https://www.servethehome.com/tesla-dojo-ai-system-microarchi...
Edit 4: found a pic of the liquid cooling system - as expected ;) https://media.datacenterdynamics.com/media/images/training_t... source: https://www.datacenterdynamics.com/en/news/tesla-details-doj... And they say the first tile was "tested last week" as of August 20th... This confirms my suspicion that the system is barely (?) functional. Also see "Venkataramanan appeared to even surprised Andrej Karpathy, Tesla’s head of AI, on stage by revealing for the first time that Dojo training tile ran one of his neural networks" from https://electrek.co/2021/08/20/tesla-dojo-supercomputer-worl...
Nvidia RTX 3090: 285 Tensor-TOPs @ 350 W [1]
Specialised accelerator: 100 TOPS at less than four watts [2]
That's a 30x improvement over a GPU in power consumption. Sure, it's inference only, but training and inference are not that different.[1]: https://wccftech.com/nvidia-geforce-rtx-3090-geforce-rtx-308...
I know it must be horrendously difficult to program for general purpose use, but that's the point - figuring out what CAN be done and what an OS for it would look like.
In any case the problem is moving data, then the compute side. If Tesla is really going to do it they have someone working on that already. SAAS is not rocket science, and the issues are well-known.
This is a chip designed to accelerate nn training in their datacenter.
The effort and expense makes perfect sense if you consider:
- the costs are spread over millions of car (3 millions, today, tens of millions in the future)
- it helps them win robotaxi market that is potentially so lucrative that the cost of developing custom chips will be peanuts
That would be typical of Elon Musk to get some federal funding $$$$$
but Elon can make it work on par if not better than nVidia, just because Tesla can hardcode and overoptimize for one single task (FSD AI), while nVidia will always be limited in keeping their chips generic enough for all purpose NN training/inference and even gaming + backwards compatibility for all historical stuff.
Tesla can work with blank slate and can reap performance benefits over there
That's an extremely complicated thing that requires armies of PhDs (chem, EE, physics, etc.) and billions of dollars.
You can think of what this is as 'maps' that manufacturers instantiate as chips.
IDK what tools Tesla is actually using, but for context, the work that Tesla employees would do looks like this: https://www.cadence.com/en_US/home/tools/custom-ic-analog-rf...
So no, your conspiracy theory does not align with reality.
Certainly you can build custom chips for deep learning. It's mostly a simple inner loop, replicated many times, after all. Ideal case for ASICs. But will this actually benefit Tesla as a car company?
This is a hype project simply created to pump up the stock price.
> two incredibly resource-intense and error-prone processes in the same company (Automotive, Semiconductor).
If you think making these chips is excessive, you don't know Tesla. Tesla is the most vertically integrated car company in the world (maybe BYD compares).
Compared to literally designing not only their own batteries cells, but their own battery chemistries plus their own battery materials process AND their own fully up battery manufacturing factories. They started doing this a decade ago and only this year the first cars rolled of the line and being sold to costumers. That is years and years of investment, planning and internal capacity building.
In 2017 people were laughing at them for attempting to do all their own manufactriong. Now they have industry dominating automotive margin. They literally have their own materials team that makes their own aluminum for casting and have co-developed production machines that are the size of a whole house. This is now slowly being copied by other manufactures.
They also make their own glass, seats and a whole host of other things that most car companies don't make. Doing these things in-house cost billions and billions in capx.
Also, Dojo is not the only chip they make, they have other chips that are already being sold in their cars by the millions every year. Dojo is a pittance of investment compared to that and a fraction of the total investment into the overall self-driving stack. Just because you don't agree with the overall strategy (assuming from your comment) doesn't mean that they many, many billions Tesla spends isn't real, or its all some sort of stock price play.
So, if you think Dojo is about stock price, I don't know what to tell you, its just wrong.
Weird. I though competition, even when the Leader is far ahead is a good thing and up to the Investors.
No idea whether they can make it work, it is really hard, especially adjusting their tools, but they have written most tools themselves, so adjusting should be possible. Making those tools available to outsiders one day ? can happen, doesn't have to.
A non-issue if you understand the design space of TPU-like AI accelerators. The understanding shouldn't even be necessary because the major players (Google, now Amazon) already build their TPUs and have been for years.
Nvidia tax is too much.
However I do agree that Dojo isn’t about the stock price though I’m sure it’s about reducing their bottom line costs long term.
After first AI day Tesla stock dropped significantly. Wall Street doesn't understand Tesla as anything else but a car company and won't understand AI until it start producing billions in revenues.
It's exceedingly poor stock pump.
They've been working on Dojo for almost 7 years. They kept it secret for the first 5.
Kind of contradicts the "stock pump" memes.
They start talking about it now because those efforts are very advanced and they want to hire more people.
With Musk, everything is a step towards the end goal(s), like colonizing Mars (which might even be the only goal since it ties everything together; it’s much easier to send humanoids to prepare for colonization and it’s not like HCI seems at all a priority unlike many other AI efforts).
My guess is that with Tesla, Musk aims to create AGI in a way he can control (as you may recall, he has previously talked about fears of the tech and control is a natural strategy to handle this). The cars are just the step that enables the next, so he basically just invests in the future over short term gains, which is a very reasonable business decision.
Custom silicon is likely unavoidable if you want to lead the AGI field, so he would just be investing in the next step of the plan. Tesla Bot is a good indicator of this direction.
Tesla Bot was the human in a bot costume dancing on stage [0], right? If so, then yes, this is quite a good indicator of the seriousness of this direction.