Why Google Built Its Own TPUs When It Could Buy Nvidia’s GPUs
Three minutes of talking hardly sounds like a threat to Google’s budget. Then its engineers tried multiplying those three minutes by all the people who might use voice search in a day.
They wanted phones to get better at understanding speech. The new software could do the job, but the arithmetic was ugly. On the processors Google was using, that much talking could force the company to double its number of data centers. It was a forecast. The engineers still had time to change what went inside those buildings. Chip designer Norm Jouppi recalled the calculation.
What did the phone hear?
Try saying “set a timer” while the kitchen fan is running. To pick the words out of that sound, a speech system measures little slices of audio. A model trained on examples of speech gives different patterns of sound more or less weight. In a fraction of a second, it has to decide which words fit.
Much of that work comes down to multiplying a set of numbers by another set and adding up the results. Line the numbers up in rows and columns and you have a matrix. The same math crops up in other jobs, from labeling pictures to translating a sentence. A chip designed to do it well could earn its keep long after somebody turned off the kitchen fan.
Nvidia already sold graphics processing units, or GPUs. They’re good at doing many calculations at once. A team could buy them, write software for them and move on to a different problem tomorrow. Google had an unusual advantage in deciding whether to build its own. It could see the jobs arriving at its servers, count them and work out which sums it would be paying to do for years.
A chip built for the repeat customer
Google named its chip the tensor processing unit, or TPU. A tensor is a way of organizing numbers. A row is one example, a grid another. The first TPU had a grid of its own, 256 little math units wide and 256 tall. A number could travel from one unit to its neighbor while the next calculation got under way. Google’s engineers drew the route through the chip.
Think of the work it takes to set a table for a crowd. You can walk back to the cupboard for every plate. Or a few people can stand along the table and pass plates down the line. Each trip is short, and several plates can move together. Inside the TPU, keeping the numbers close to the units doing the math saved both time and electricity.
Google put its first TPUs to work in 2015. They specialized in inference, the part where a trained model hears a new recording and makes a guess. Engineers later tested the chip on six applications that were already running at Google. They cared about the slow requests as well as the quick ones. A lovely average is small comfort when it’s your timer that takes forever to set. The team published its tests and the hardware it compared.
When does it pay to build your own?
Designing a chip brings its own bills. Engineers have to design and test it. Software teams have to make their models run on it. If the models change direction, a useful feature can sit idle while a different part of the chip struggles to keep up. Buying GPUs leaves more of those chip-design costs with Nvidia.
Google could spread the cost across products and years. It also got to choose what the next version should do. By the time it trained the first Gemini family of AI models, it was using its fourth- and fifth-generation TPUs for the teaching itself. Google identified the chips it used for Gemini.
That first voice-search estimate gave Google something most chip buyers will never have. It could put a price on millions of people taking just a few minutes to ask for the weather or set a kitchen timer. At that scale, it was worth designing the thing that listened.
QUOTE:
"Amateurs hack systems, professionals hack people."