~/talk

Serving machine learning models as an inference API in production

Talkat code.talks 2019 · 2019-10-24..10-25· [machine-learning, devops-and-delivery]
links:none on file
slides:none on file

Deploys a PyTorch cell‑detection model as a JSON inference API using model weights on S3 and TorchScript tracing; an AWS Lambda + layer + temp‑extraction hack works but hits 250MB limits, no GPU, cold starts ~4s and API Gateway timeouts, so it proves too slow for 1000×1000 images. Switching to Docker + GPUs (nginx → gunicorn → Flask → traced model) yields first‑call calibration delays (~9s) then <1s responses and scales with Docker Swarm across GPU servers; metrics go to Postgres and Grafana; cloud GPUs off‑AWS cut costs ~7×.

AI-written summary · about

  1. 0:00Start
  2. 2:29Cancer diagnostics today
  3. 3:59Cancer diagnostics tomorrow
  4. 4:46Let's do it!
  5. 6:17Example: cancer cell detection
  6. 7:49Goal: API Integration of the model
  7. 8:08First option: serverless lambda function
  8. 10:03Disadvantages Lambda Function
  9. 11:41Cool possibility: lambda layers
  10. 12:51Trick: lambda layer /tmp extraction
  11. 13:34Live Demo Serverless Tumor Cell Detection
  12. 18:22Second option: GPU servers with Docker
  13. 19:44Disadvantages Docker
  14. 34:50We're hiring devs and data scientists!
~/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.