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

Linux Conda Xformers Install Issue #38

Open
Pathos14489 opened this issue Nov 25, 2022 · 4 comments
Open

Linux Conda Xformers Install Issue #38

Pathos14489 opened this issue Nov 25, 2022 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@Pathos14489
Copy link

Everything goes fine installing, except xformers. When I run pip install -e ., this error occurs:

The detected CUDA version (11.4) mismatches the version that was used to compile
    PyTorch (10.2). Please make sure to use the same CUDA versions.
@0xdevalias
Copy link

0xdevalias commented Nov 25, 2022

@0xdevalias
Copy link

@Pathos14489 are you following the xformers installation instructions here?


This is probably more an issue you should raise on the xformers repo, as it seems to be unrelated to SDv2 itself?

@xiankgx
Copy link

xiankgx commented Nov 25, 2022

If you are using Linux, modify the environment to you python 3.9 instead and use prebuilt binaries.

name: ldm
channels:
  - pytorch
  - defaults
dependencies:
  # Changed to Python 3.9 to make use of precompiled binaries for xformers
  - python=3.9
  - pip
  - cudatoolkit=11.3
  - pytorch=1.12.1
  - torchvision=0.13.1
  - numpy=1.23.1
  - pip:
    - albumentations==1.3.0
    - opencv-python==4.6.0.66
    - imageio==2.9.0
    - imageio-ffmpeg==0.4.2
    - pytorch-lightning==1.4.2
    - omegaconf==2.1.1
    - test-tube>=0.7.5
    - streamlit==1.12.1
    - einops==0.3.0
    - transformers==4.19.2
    - webdataset==0.2.5
    - kornia==0.6
    - open_clip_torch==2.0.2
    - invisible-watermark>=0.1.5
    - streamlit-drawable-canvas==0.8.0
    - torchmetrics==0.6.0
    - -e .

Then, install xformers using as recommended in the official repo.
conda install xformers -c xformers/label/dev

@dmarx dmarx added the documentation Improvements or additions to documentation label Nov 28, 2022
@hangxiaotian
Copy link

you can use pip to install. For example,
pip install xformers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

5 participants