X-PLUG / mPLUG-Owl

mPLUG-Owl: The Powerful Multi-modal Large Language Model Family
https://www.modelscope.cn/studios/damo/mPLUG-Owl
MIT License
2.25k stars 171 forks source link

The environment installation is so confusing. #21

Closed hongfangyu closed 1 year ago

hongfangyu commented 1 year ago

env.yaml depends on apex, and apex depends on the torch in env.yaml, it is not easy to install dependencies

hongfangyu commented 1 year ago

what is "python-opencv==1.0.0.14" in env.yaml?

MAGAer13 commented 1 year ago

Hi, sorry for your confusion. We will update the install instruction later. Some packages or requirements in env.yaml is redundant since we directly export it from our local environment for reference.

For the minimum requirement, you only need to follow the package list here.

Thank you for having interest in our work. If you have further questions about the installation, feel free to leave the comment below.

MAGAer13 commented 1 year ago

what is "python-opencv==1.0.0.14" in env.yaml?

This one is not required anymore.

MAGAer13 commented 1 year ago

env.yaml depends on apex, and apex depends on the torch in env.yaml, it is not easy to install dependencies

You can install the torch, torchvision with following command.

conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia

Then, install the apex package with the instruction https://github.com/X-PLUG/mPLUG-Owl#install-requirements

hongfangyu commented 1 year ago

env.yaml depends on apex, and apex depends on the torch in env.yaml, it is not easy to install dependencies

You can install the torch, torchvision with following command.

conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia

Then, install the apex package with the instruction https://github.com/X-PLUG/mPLUG-Owl#install-requirements

First I install the dependencies using env.yaml. And then there's an error of missing apex. After that, install apex manually. Finally install the dependencies using env.yaml again.

MAGAer13 commented 1 year ago

Got it, let's just ignore the env.yaml file. Try to install the pytorch using the command first, then install apex with the instruction. Sorry for the confusion.