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

MNT Remove Python 3.8 since it's end of life #2135

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

BenjaminBossan
Copy link
Member

The end of life of Python 3.8 has arrived:

https://devguide.python.org/versions/

Therefore, Python 3.8 is removed from CI. Many tests are already failing as a transformers import raises an error that looks like it's caused by missing Python 3.8 support:

E RuntimeError: Failed to import transformers.models.auto because of the following error (look up to see its traceback):
E 'type' object is not subscriptable

(example 1, example 2)

By default, Python 3.11 is now used.

Python 3.12 should be added to the CI matrix now, but that's for a separate PR.

The end of life of Python 3.8 has arrived:

https://devguide.python.org/versions/

Therefore, Python 3.8 is removed from CI. Many tests are already failing
as a transformers import raises an error that looks like it's caused by
missing Python 3.8 support:

E   RuntimeError: Failed to import transformers.models.auto because of the following error (look up to see its traceback):
E   'type' object is not subscriptable

By default, Python 3.11 is now used.

Python 3.12 should be added to the CI matrix now, but that's for a
separate PR.
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

The workflow tried to build on top of docker/README.md because globbing
was too broadly defined.
Reduce unnecessary steps to hopefully get disk space usage down, as
GitHub action currently fails with not enough disk space.
Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Just a single comment.

@@ -2722,10 +2722,8 @@ def test_hqq_lora_model_outputs(self):
assert cc_matrix.min() > 0.97


# TODO: unskip the tests once https://github.com/casper-hansen/AutoAWQ/issues/466 is fixed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not totally unrelated, I had to update the AutoAWQ wheels and the new wheels should contain the fix mentioned here.

@BenjaminBossan
Copy link
Member Author

BenjaminBossan commented Oct 7, 2024

Update: The transformers issue might be unintended and not caused by intentionally dropping support for Python 3.8, which is only planned for the end of the month (see internal discussion #transformers-tests).

Edit: This should now be fixed on transformers, let's wait what CI says tomorrow. Regardless of that, since Python 3.8 will drop at the end of the month (Oct 2024), let's keep this PR open and merge then.

@sayakpaul
Copy link
Member

Will propagate this into diffusers once this PR is merged. Cc: @yiyixuxu

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

Successfully merging this pull request may close these issues.

3 participants