Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nvidia/free-threaded-python
No-GIL Python environment featuring NVIDIA Deep Learning libraries.
https://github.com/nvidia/free-threaded-python
free-threading gil python python3
Last synced: about 2 months ago
JSON representation
No-GIL Python environment featuring NVIDIA Deep Learning libraries.
- Host: GitHub
- URL: https://github.com/nvidia/free-threaded-python
- Owner: NVIDIA
- License: mit
- Created: 2024-08-12T17:20:57.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-16T07:59:12.000Z (2 months ago)
- Last Synced: 2024-10-18T00:20:25.413Z (2 months ago)
- Topics: free-threading, gil, python, python3
- Language: Dockerfile
- Homepage:
- Size: 113 KB
- Stars: 16
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Free-threaded Python
====================What is that?
-------------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!`_
How to try it?
--------------#. 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
This is an experimental software!
---------------------------------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.
"My library is missing"
-----------------------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.