Using this repository, you can build and test a free-threaded Python environment containing NVIDIA Python libraries.
Python Steering Commitee approved PEP 703, which removes the Global Interpreter Lock from Python. First Python release that allows for a parallel execution is 3.13 (scheduled October 2024). However, for yet some time you won't be able to pip install
your favourite extensions and libraries.
Provided Docker allows you to try the free-threaded environment yourself. We've included build routines to some popular NVIDIA extensions ("My library is missing"). Should you encounter any bugs or problems, please let us know in the Issues.
Please note: This is an experimental software!
Clone the repository:
$ git clone https://github.com/NVIDIA/free-threaded-python.git $ cd free-threaded-python
Build free-threaded Python environement:
$ docker build -t free-threaded-python .
Try it:
$ docker run -it --gpus all -v test:/test free-threaded-python python3 /test/simple.py
Removing GIL is a breaking change for many Python extensions and it will take years to adjust the ecosystem fully to the parallel execution. Moreover, this will not be possible without the community. Please keep in mind, that by no means this is a production-ready software. However, should you run into any bugs, please let us know in the Issues. Contributions and Pull Requests are also welcome.
It's not our intention to recreate whole Python ecosystem. However, if you are using a Python library which is missing here, please let us know in the Issues. Although we focus mostly on NVIDIA Python ecosystem, we'll do our best to include the most popular extensions in this environment configuration.