~/talk

Modern, typed Python for (multimodal) ML

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

Argues that Python type hints are now practical in ML and shows concrete tooling: mypy and beartype for checks, Pydantic+FastAPI for APIs, jaxtyping for tensor shapes, and DocArray to represent, send and store multimodal data. Builds a podcast demo that loads audio/text URLs, produces 512‑dim embeddings, indexes them with HNSWlib and exposes endpoints via FastAPI (also supports gRPC/protobuf through Jina). Claims broad compatibility across PyTorch/NumPy/JAX and shows a working demo with a few hiccups. DocArray integrates with FastAPI and HNSWlib and jaxtyping covers tensor shapes across frameworks.

AI-written summary · about

  1. 0:00Introduction to the topic
  2. 1:22Duck typing in Python
  3. 5:10Understanding type hints
  4. 7:15History of Python typing
  5. 11:10Modern typing ecosystem
  6. 17:14ML specific typing challenges
  7. 26:24Representing data with DocArray
  8. 40:49Sending data with DocArray
  9. 44:20Storing data in vector DBs
  10. 51:02Conclusion and Q&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.