Skip to content

Update Pytorch to ~2.1.0 in the installer script#5089

Merged
lstein merged 1 commit into
invoke-ai:mainfrom
Malrama:fix-install-deps
Nov 13, 2023
Merged

Update Pytorch to ~2.1.0 in the installer script#5089
lstein merged 1 commit into
invoke-ai:mainfrom
Malrama:fix-install-deps

Conversation

@Malrama

@Malrama Malrama commented Nov 13, 2023

Copy link
Copy Markdown
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Have you discussed this change with the InvokeAI team?

  • Yes
  • No, because it's required

Have you updated all relevant documentation?

  • Yes
  • No, not necessary

Description

We use Pytorch ~2.1.0 as a dependency for InvokeAI, but the installer still installs 2.0.1 first until Invoke AIs dependencies kick in which causes it to get deleted anyway and replaced with 2.1.0. This is unnecessary and probably not wanted.

Fixed the dependencies for the installation script to install Pytorch ~2.1.0 to begin with.

P.s. Is there any reason why "torchmetrics==0.11.4" is pinned? What is the reason for that? Does that change with Pytorch 2.1? It seems to work since we use it already. It would be nice to know the reason.

Greetings

Related Tickets & Documents

  • Related Issue #
  • Closes #

QA Instructions, Screenshots, Recordings

Added/updated tests?

  • Yes
  • No : please replace this line with details on why tests
    have not been included

[optional] Are there any post deployment tasks we need to perform?

@hipsterusername

Copy link
Copy Markdown
Member

Other torch dependencies should probably be bumped as well - Good catch 👀

@Malrama

Malrama commented Nov 13, 2023

Copy link
Copy Markdown
Contributor Author

Other torch dependencies should probably be bumped as well - Good catch 👀

It appears that the pinning happened here af239fa. The bug report attached to the PR says that some compiling was failing with newer versions of torchmetrics. I wonder if this is still the case and why that happened.

@lstein lstein left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for finding and fixing this.

@lstein lstein merged commit 73d6cc8 into invoke-ai:main Nov 13, 2023
@Malrama Malrama deleted the fix-install-deps branch November 15, 2023 18:32
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