Skip to content
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

Python 3.13 is unsupported #8

Closed
renich opened this issue Jan 14, 2025 · 2 comments
Closed

Python 3.13 is unsupported #8

renich opened this issue Jan 14, 2025 · 2 comments

Comments

@renich
Copy link

renich commented Jan 14, 2025

I knew this but wanted to create this issue so that you can update documentation. You state that one requires => Python 3.10. This is not true.

Fedora 41 ships with Python 3.13 out of the box.

$ pip3 install dgenerate==4.4.2 --extra-index-url https://download.pytorch.org/whl/rocm6.2/
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/rocm6.2/
Collecting dgenerate==4.4.2
  Downloading dgenerate-4.4.2-py3-none-any.whl.metadata (328 kB)
Collecting diffusers==0.32.1 (from dgenerate==4.4.2)
  Using cached diffusers-0.32.1-py3-none-any.whl.metadata (18 kB)
Collecting peft==0.14.0 (from dgenerate==4.4.2)
  Using cached peft-0.14.0-py3-none-any.whl.metadata (13 kB)
Collecting transformers==4.47.1 (from dgenerate==4.4.2)
  Using cached transformers-4.47.1-py3-none-any.whl.metadata (44 kB)
Collecting accelerate==1.2.1 (from dgenerate==4.4.2)
  Using cached accelerate-1.2.1-py3-none-any.whl.metadata (19 kB)
Collecting optimum-quanto==0.2.6 (from dgenerate==4.4.2)
  Using cached optimum_quanto-0.2.6-py3-none-any.whl.metadata (13 kB)
Collecting bitsandbytes==0.45.0 (from dgenerate==4.4.2)
  Downloading bitsandbytes-0.45.0-py3-none-manylinux_2_24_x86_64.whl.metadata (2.9 kB)
Collecting pytorch-lightning<3.0.0,>=2.5.0 (from dgenerate==4.4.2)
  Downloading pytorch_lightning-2.5.0.post0-py3-none-any.whl.metadata (21 kB)
Collecting lightning-utilities<0.12.0,>=0.11.9 (from dgenerate==4.4.2)
  Using cached lightning_utilities-0.11.9-py3-none-any.whl.metadata (5.2 kB)
Collecting lightning-fabric<3.0.0,>=2.5.0 (from dgenerate==4.4.2)
  Downloading lightning_fabric-2.5.0.post0-py3-none-any.whl.metadata (17 kB)
Collecting omegaconf<3.0.0,>=2.3.0 (from dgenerate==4.4.2)
  Using cached omegaconf-2.3.0-py3-none-any.whl.metadata (3.9 kB)
Collecting requests<3.0.0,>=2.32.3 (from dgenerate==4.4.2)
  Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting av<15.0.0,>=14.0.1 (from dgenerate==4.4.2)
  Downloading av-14.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.5 kB)
Collecting pillow<12.0.0,>=11.0.0 (from dgenerate==4.4.2)
  Downloading pillow-11.1.0-cp313-cp313-manylinux_2_28_x86_64.whl.metadata (9.1 kB)
Collecting jinja2<4.0.0,>=3.1.5 (from dgenerate==4.4.2)
  Using cached jinja2-3.1.5-py3-none-any.whl.metadata (2.6 kB)
Collecting torch==2.5.1 (from dgenerate==4.4.2)
  Using cached torch-2.5.1-cp313-cp313-manylinux1_x86_64.whl.metadata (28 kB)
INFO: pip is looking at multiple versions of dgenerate to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following yanked versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3
ERROR: Ignored the following versions that require a different python version: 2.0.0 Requires-Python >=3.10,<3.13; 2.1.0 Requires-Python >=3.10,<3.13; 2.1.1 Requires-Python >=3.10,<3.13; 3.0.0 Requires-Python >=3.10,<=3.11.6; 3.0.1 Requires-Python >=3.10,<=3.11.6; 3.0.2 Requires-Python >=3.10,<=3.11.6; 3.1.0 Requires-Python >=3.10,<=3.11.6; 3.1.1 Requires-Python <=3.11.6,>=3.10; 3.2.0 Requires-Python <=3.11.6,>=3.10; 3.3.0 Requires-Python <=3.11.6,>=3.10; 3.3.1 Requires-Python <=3.11.6,>=3.10; 3.4.0 Requires-Python <=3.11.6,>=3.10; 3.4.1 Requires-Python <=3.11.6,>=3.10; 3.4.2 Requires-Python <=3.11.6,>=3.10; 3.4.3 Requires-Python <=3.11.6,>=3.10; 3.4.4 Requires-Python <=3.11.6,>=3.10; 3.4.5 Requires-Python <=3.11.6,>=3.10
ERROR: Could not find a version that satisfies the requirement torchvision==0.20.1 (from dgenerate) (from versions: 0.1.6, 0.2.0)

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
ERROR: No matching distribution found for torchvision==0.20.1
@Teriks
Copy link
Owner

Teriks commented Jan 14, 2025

torchvision currently has the spec >=3.9, <=3.12 so the version spec in packaging needs to be adjusted down to <=3.12, it’s currently at <4

Could be a bit before they get around to bumping the compatibility for torchvision

I’ll check which other deps have this issue tomorrow

Teriks added a commit that referenced this issue Jan 15, 2025
Address issue #9, update install doc for bitsandbytes compatibility on
ROCm

Issue #8, python compatibility should be >=3.10,<3.13 due to some
dependencys not being compatible with 3.13 yet.

Issue #7, recommend 6.2 build of rocm pytorch in doc
@Teriks
Copy link
Owner

Teriks commented Jan 17, 2025

New release v4.5.0 on PyPi now has a Python <3.13, >=3.10 version spec, should be listed on https://pypi.org/project/dgenerate/, by Requires

Python greater than or equal to 3.10, and less than 3.13 should be compatible.

This one is fairly straight forward so going to go ahead and close this issue.

@Teriks Teriks closed this as completed Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants