internalsGet Pro

Module 14 · Lesson 14 of 15Pro

Case: Pinterest’s user embeddings served on GPUs

Level
Advanced
Topic
Deploying ML models
Reading time
18 min

When you finish this page you can

  1. Explain why Pinterest computes its PinnerFormer user embeddings once a day, and how the training objective makes a day-old embedding cost less.
  2. Trace how a user’s last 100 actions join the daily embedding inside the ranking model on every request.
  3. Explain why the whole ranking model ran slower on a GPU than on a CPU, and how splitting work between the two cut the latency increase to 10%.
  4. Read Pinterest’s published A/B lifts for what they measure and what the papers leave out.
  1. Learned embeddings: vectors for words, items and users18 min
  2. Serving patterns: batch, online and streaming14 min
  3. Real-time features at prediction time18 min

Video lesson · coming soon

A better user model that ranking could not afford

Pinterest is an app where people save and browse images, called Pins, for ideas. Over 400 million people use it each month. Its Homefeed is a personal page of Pins, ordered for each user by a ranking model.

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