-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Python 3.13t (free threads) Compat #7548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Update: However, there are also many cases where aiohttp will never be used. Text datasets that are not huge, relative to machine spec, and non-multi-modal datasets. Getting I have created a fork/branch that temp disables aiohttp import so non-streaming usage of datasets can be tested under python 3.13.t: https://github.com/Qubitium/datasets/tree/disable-aiohttp-depend |
We are mostly relying on |
I am testing transformers + dataset (simple text dataset usage) + GPTQModel for quantization and there were no issues encountered with python 3.13t but my test-case is the base-bare minimal test-case since dataset is not sharded, fully in-memory, text-only, small, not used for training. On the technical side, dataset is almost always 100% read-only so there should be zero locking issues but I have not checked the dataset internals so there may be cases where streaming, sharding, and/or cases where datset memory/states are updated needs a per dataset So yes, making |
Ok I see ! Anyway feel free to edit the setup.py to move aiohttp to optional (tests) dependencies and open a PR, we can run the CI to see if it's ok as a change |
actually there is #7294 already, let's see if we can merge it |
wouldn't it be the good reason to switch to |
Describe the bug
Cannot install
datasets
underpython 3.13t
due to dependency onaiohttp
and aiohttp cannot be built for free-threading python.The
free threading
support issue inaiothttp
is active since August 2024! Ouch.aio-libs/aiohttp#8796 (comment)
pip install dataset
Steps to reproduce the bug
See above
Expected behavior
Install
Environment info
Ubuntu 24.04
The text was updated successfully, but these errors were encountered: