~/talk

Client Side Deep Learning Optimization with PyTorch

Talkat Strange Loop 2021 · 2021-09-30..10-02· [machine-learning]
links:none on file
links:none on file
slides:none on file

Shows how PyTorch models get off the server and run on phones: serialize with torch.jit.script into .pt (libtorch C++), call model.eval, warm up and cache, and strip unused ops via an exported YAML plus static linking. Covers quantization methods—dynamic quantization, static quantization and quantize‑aware training—with numbers: MobileNet drops from 22 MB and 0.13 s to 5.6 MB and 0.03 s with ~74%→73% accuracy; an LSTM goes 169→134 MB and 5.0→1.6 s. Also module fusion and channel last format.

AI-written summary · about

  1. 0:00Intro
  2. 0:26Who are we?
  3. 2:57Why PyTorch?
  4. 5:18Advantages of Eager Execution
  5. 5:48Optimization necessitates looking under the hood
  6. 6:31Axes of Optimization
  7. 10:16Production Considerations
  8. 12:55Scripting Handes control flow and other arbitrary
  9. 13:33Scripting + Tracing
  10. 14:31Intermediate Representations in Pytorch
  11. 16:20Running in C++
  12. 16:57Speed tips
  13. 18:43Running Arbitrary Models
  14. 20:18Lite Interpreter
  15. 20:48What is Quantization?
  16. 21:18Quantization in PyTorch
  17. 22:03Eager Mode Quantization
  18. 22:50Dynamk Quantization
  19. 27:19Quantized Aware Training
  20. 28:48Experimental Results
  21. 31:16Channel Last Format
  22. 32:09Addendum
~/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.