internalsGet Pro

Module 14 · Lesson 13 of 15Pro

The cost of serving ML models

Level
Intermediate
Topic
Deploying ML models
Reading time
16 min

When you finish this page you can

  1. Turn a model server’s load, CPU time per request and fleet size into core-hours, a monthly cost and a cost per 1,000 predictions.
  2. Explain why capacity held for the peak, not the model’s maths, is usually most of a serving bill.
  3. Choose between a fixed fleet, autoscaling and scheduled scaling, and say when each one fails.
  4. Pick the lever that cuts a given model’s cost most, from fewer calls and less work per request to spot capacity and GPUs.

Builds on 3 lessons

Start with lesson 114 min
  1. Serving patterns: batch, online and streaming14 min
  2. Serving a model behind an API18 min
  3. Batch prediction pipelines16 min

Video lesson · coming soon

A ₹7.4 lakh bill for recommendations

is the online store this course uses as its example: 5 million customers a day, 20 million products and 500,000 orders a day. Its “Picked for you” row is filled by a ranking model. At a festival-sale peak it answers about 30,000 requests a second within 100 ms.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan