Skip to content

xformers Version: 0.0.26.post1 is clashing with torch 2.3.1 #1052

@MoezGholami

Description

@MoezGholami

🐛 Bug

installing xformers pip install xformers (which at the moment points to 0.0.26.post1 uninstalls torch and triton 2.3.1 and replaces it with 2.3.0. This is causing conflict with the packages that do require 2.3.1 such as "torchvision 0.18.1+cu121" and "torchaudio 2.3.1+cu121".

Command

To Reproduce

$ pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
[skipped output]
$ pip install xformers==0.0.26.post1 # (currently equivalent to pip install xformers)
[...]
Collecting xformers
  Using cached xformers-0.0.26.post1-cp310-cp310-manylinux2014_x86_64.whl (222.7 MB)
Collecting torch==2.3.0
  Using cached torch-2.3.0-cp310-cp310-manylinux1_x86_64.whl (779.1 MB)
[...]
  Attempting uninstall: triton
    Found existing installation: triton 2.3.1
    Uninstalling triton-2.3.1:
      Successfully uninstalled triton-2.3.1
      [...]
  Attempting uninstall: torch
    Found existing installation: torch 2.3.1+cu121
    Uninstalling torch-2.3.1+cu121:
[...]
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchvision 0.18.1+cu121 requires torch==2.3.1, but you have torch 2.3.0 which is incompatible.
torchaudio 2.3.1+cu121 requires torch==2.3.1, but you have torch 2.3.0 which is incompatible.

Expected behavior

xformers working with latest version of torch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions