openai / consistency_models

Official repo for consistency models.
MIT License
6.02k stars 409 forks source link

torch version #9

Open XipengY opened 1 year ago

XipengY commented 1 year ago

Hi, Thanks for your interesting work first! I am confused about the environment when running the code, and want to know the versions of python and torch used in your project.

Thanks very much!

nfrumkin commented 1 year ago

I was able to run this using Python 3.8.16, Torch 2.0.0. Additionally, I'm using Cuda version 11.0 and needed to use Cuda version 11.3 to do evaluation (see evaluations/ for separate compilation).

XipengY commented 1 year ago

Thanks for your replay!

I found torch==2.0.0 need CUDA>=11.7, we build torch by source? I use 'pip install -e .' the default version of flash-attn is 1.0.1, but I also found flash-attn==1.0.1 need CUDA>=11.4. So I'm also wondering how to resolve this conflict about the environment. Would it be convenient for you to share your project environment by docker or Anaconda?

Thanks very much.

XipengY commented 1 year ago

I use 'conda install pytorch torchvision cudatoolkit=11.7 -c pytorch', and pip install flash-attn==0.2.8, solved the environment.

treefreq commented 1 year ago

I use 'conda install pytorch torchvision cudatoolkit=11.7 -c pytorch', and pip install flash-attn==0.2.8, solved the environment.

i cant install 0.2.8 using pip install flash-attn==0.2.8, do you have this problem? image image

XipengY commented 1 year ago

try torch version 2.0.0?