~/talk

Designing tests for ML libraries

Talkat PyData Amsterdam 2025 · 2025-09-24..09-26· [testing, python]
links:none on file
links:none on file
slides:none on file

Shows concrete testing practices from HuggingFace: how diffusers and PFT run a stratified test schedule (fast per-PR, slow on main, nightly GPU runs), benchmark latency including torch.compile, and validate features like quantization, gradient checkpointing and parameter offloading. Describes using regression artifacts on the Hub, source-install tests against transformers, pytest fixtures plus pytest with caching to avoid rate limits, and measurable outcomes (10M monthly PPI downloads, 50k GitHub stars) proving these pipelines work at scale.

AI-written summary · about

  1. 0:00ML library testing intro
  2. 2:59Why ML libraries need special testing
  3. 6:26Testing requirements
  4. 12:54Key challenges in ML testing
  5. 18:15Benchmarking model performance
  6. 21:28Code coverage for ML tests
  7. 24:17Regression testing outputs
  8. 26:27Handling known test failures
  9. 28:14Non-determinism and flakiness
  10. 31:44Caching strategies
  11. 35:20Floating-point comparison
  12. 37:31Code quality and workflow
  13. 39:20Choosing a testing framework
  14. 41:06Conclusion and key takeaways
~/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.