~/talk

Power up your work with compiling and profiling

Talkat PyCon US 2023 · 2023-04-19..04-27· [python, machine-learning]
slides:none on file

Workshop demonstrates using Numba to speed numeric Python: profiling with cProfile identifies backprop and element‑wise loops as hotspots, then applying Numba JIT (njit) and no-python mode compiles heavy loops into native code and yields multi‑core and fastmath gains (often multiple× faster after compilation). Key gotcha: first call compiles and is slower, so repeat calls matter. The hands‑on builds a small neural net on MNIST, profiles it, compiles looped functions, and shows the compilation overhead and subsequent speedups.

AI-written summary · about

  1. 0:00Introduction
  2. 18:23Profiling and compiling basics
  3. 33:56Loops slow Python
  4. 53:32Debugging Numba issues
  5. 1:11:44Profiling neural network training
  6. 1:24:26Numba and profiling exercise
  7. 1:30:50Q&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.