~/talk

Pinterest's ML Evolution: Distributed Training with Ray

Talkat Ray Summit 2024 · 2024-09-30..10-02· [machine-learning, data-engineering]
links:none on file
links:none on file
slides:none on file

Pinterest uses Ray and Ray Data to build a distributed data loader that moves CPU-heavy file IO and preprocessing off GPU trainers, implements batching as Ray actors, and serializes each batch into a single binary buffer. A custom Zstd compression patch to the Ray object store and a serialized batch buffer eliminate per-feature unpickling and cut network bytes; adding pin-memory + CUDA stream preloading restores GPU overlap. Result: end-to-end throughput reaches ~400k examples/sec (≈3.6× the initial Ray run, 50% faster than the original PyTorch dataloader) and scales to ~32 CPU nodes.

AI-written summary · about

  1. 0:00Introduction to Pinterest ML
  2. 2:20Training pipeline architecture
  3. 5:14Identifying the bottleneck
  4. 7:52Initial data optimizations
  5. 12:21Adopting Ray for scale
  6. 15:14Addressing Ray performance
  7. 22:47Final pipeline improvements
  8. 25:28Key takeaways and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.