~/talk

Serving Pytorch Models in Production

Talkat PyData NYC 2022 · 2022-11-09..11-11· [machine-learning, devops-and-delivery]
links:none on file
slides:none on file

A BERT-based product-type classifier is already trained and then distilled and quantized to cut latency and size: F1 jumps from 0.75 to 0.91 versus the old model, distilled latency drops from ~112 ms CPU / ~25 ms GPU to ~83 ms with dynamic quantization, model file shrinks 267 MB → 138 MB, and end-to-end serving lands under single-digit ms with distillation+quantization+optimized runtime. Packaging uses the torch model archive with a custom handler, TorchServe exposes management APIs, server-side batching, and metrics so multiple model versions and A/B tests run in production.

AI-written summary · about

  1. 0:00Introduction
  2. 1:33Walmart search ML
  3. 3:37Production infra needs
  4. 5:45Dataset training overview
  5. 7:58Traditional to transformer
  6. 11:48BiLSTM vs BERT performance
  7. 12:31Hugging Face inference
  8. 16:05Latency CPU vs GPU
  9. 22:12Reducing inference latency
  10. 29:24Model distillation
  11. 31:11TorchScript conversion
  12. 34:06Quantization optimization
  13. 42:41Serving PyTorch models
  14. 46:10TorchServe packaging
  15. 50:05Deploying model server
  16. 54:41Production metrics
  17. 59:43Q&A
~/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.