jax-ml / jax

Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more
http://jax.readthedocs.io/
Apache License 2.0
30.4k stars 2.79k forks source link

Add support nogil mode in JAX for Python 3.13 #23073

Open vfdev-5 opened 2 months ago

vfdev-5 commented 2 months ago

The idea is to add a support of nogil mode in JAX for Python 3.13. According to Jake and Peter, this would likely involve updates to both jaxlib and to nanobind.

Context:

cc @jakevdp, @hawkinsp

wjakob commented 1 month ago

Nanobind's master branch now supports free-threading. Here is more information about the feature: https://nanobind.readthedocs.io/en/latest/free_threaded.html

hawkinsp commented 1 month ago

Thanks @wjakob . We're loving nanobind, by the way!