Scikit-learn on GPUs with Array API
summary
Scikit-learn 1.3 runs a subset of estimators on accelerators by dispatching array operations to CuPy and PyTorch via the Array API standard, yielding substantial speedups on GPUs and even faster CPU kernels when using PyTorch backends. Support is incremental (only some estimators), compiled SciPy C code currently falls back by converting to NumPy, and a compatibility shim array_api_compat plus experimental plugin dispatch enable wider device support but require extra work to handle API and semantic differences.
AI-written summary · about
chapters (6)
- 0:00GPU support in scikit-learn
- 4:00Array API user-facing API
- 9:29Array API standard
- 18:24Migrating to Array API
- 31:43Compiled code with Array API
- 35:40Adopt Array API now
related talks
28mA Hitchhiker's Guide to the Array API Standard Ecosystem
05mKeynote: The Promise of PyTorch as a General-Purpose Array-Oriented Computational..
30mCuPy: A NumPy-compatible Library for GPU
25mScale Smarter, Not Harder, with cuPyNumeric.
02h 28mGPU Accelerated Python
24mZero Code Change Acceleration: familiar interfaces and high performance
47mBig ideas shaping scientific Python: the quest for performance and usability
02h 55mGPU Accelerated Python w: CUDA
