May we use cookies so Meta, Google, LinkedIn and ChatGPT see your visit and we learn which ads work? PrivacyMay we use cookies to see which pages help, and let Meta, Google, LinkedIn and ChatGPT see your visit, so we know which of our ads work? That way we spend less on ads that do not work. We do not sell your data, and the site works the same if you decline. You can change your answer at any time under Cookie settings at the foot of the page. Privacy policy
Loading...
This idea carries a full system design question on its own. Each walks through the full answer.
AI Engineering · Core
Free preview: the first part of this 12-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
Generative AI and Agentic AI Engineering
Unlock this lesson and the 208 other paid lessons
$35 once, by card or PayPal
See the Generative AI and Agentic AI courseread the rest of this lesson in
Generative AI and Agentic AI Engineering
Unlock this lesson and the 208 other paid lessons
$35 once, by card or PayPal
See the Generative AI and Agentic AI coursein Core
This lesson is part of the AI Engineering course. Unlock the full course, a separate one-time payment, for lifetime access.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime AccessFoundation lessons of this course are free, no payment needed. Try them now
A team ships a language model behind a chat feature. It works. is fine. Everyone moves on. A month later finance forwards the cloud bill with a note that just says "what is this." The line item is a fleet of GPU instances running twenty-four hours a day, seven days a week, at a few dollars per GPU per hour. Do that math on eight cards and you clear forty thousand dollars in a month, most of it spent at 3 AM when the product had almost no traffic and every one of those GPUs sat nearly idle.
This is the story that makes ML platform engineers care about scaling. A CPU web service that is over-provisioned wastes cents. A GPU service that is over-provisioned wastes a fortune, because the hardware is an order of magnitude more expensive and it does not get cheaper when it is idle. An H100 costs the same per hour whether it is running at 95 percent or 5 percent. That single asymmetry, a flat hourly cost paired with spiky demand, is the entire reason this lesson exists.

So the goal of this lesson is money, framed as engineering. You want to serve every real request fast enough, and pay for as little idle GPU as you can get away with. Everything that follows is one of two moves: push more requests through each expensive card, or run fewer cards when nobody is knocking. Keep those two levers in mind, because every technique in this lesson pulls on one of them.