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

Update torch and other dependencies to make it work on 24.04 #15716

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

janbernloehr
Copy link

Description

Ubuntu 24.04 comes with python 3.12 and a newer rustc. This requires to update torch to 2.2+ which is available for py3.12 and also transformers to 4.34+ since only then tokenizers is new enough to build with the provided rustc.

Screenshots/videos:

Checklist:

@HinaHyugaHime
Copy link
Contributor

you forgot AMD changes

@cryptoquick
Copy link

I tried this out on amdgpu on arch linux and it worked fine actually 👍
I just had to set pytorch_lightning back to 1.9.4 in requirements_versions.txt

@janbernloehr
Copy link
Author

@HinaHyugaHime what do you mean by amd changes? I would be glad to provide them.

@HinaHyugaHime
Copy link
Contributor

@HinaHyugaHime what do you mean by amd changes? I would be glad to provide them.

Torch version

@AUTOMATIC1111
Copy link
Owner

CLIPTextModel_from_pretrained change should not be there. This code is to prevent loading CLIP model from the web as its weights are already included into the checkpoint, and removing None disables that.

As for the rest, I'm generally against updating versions without an explicit need for it... Does this all work on Windows with recommended python 3.10.6?

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.

None yet

4 participants