-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Issues with image loading and accelerate #45
Comments
Same for the first issue. I have checked my cuda and pytorch installation. Looks fine. See outputs below.
nvidia-smi Need help with the error. |
The same issue for me. It seems that
Then I tried to specify torch version in pip package list in environment.yml as follows:
But I got the following error.
I have no idea how can I solve this because there is no torch compatible with cu113. |
My service ran into this issue as well. I solved it by: cd MiniGPT-4
conda env update You can check effective lib versions by conda deactivate
source ~/.bashrc
conda activate minigpt4 |
just solved the following error: To solve, you can just rewrite name: minigpt4
channels:
- pytorch
- defaults
- anaconda
- nvidia
dependencies:
- python=3.9
- cudatoolkit=11.8.0
- pip
- pytorch
- pytorch-cuda=11.8
- torchaudio
- torchvision
- pip:
- accelerate==0.16.0
- aiohttp==3.8.4
- aiosignal==1.3.1
- async-timeout==4.0.2
- attrs==22.2.0
- bitsandbytes==0.38.0
- cchardet==2.1.7
- chardet==5.1.0
- contourpy==1.0.7
- cycler==0.11.0
- filelock==3.9.0
- fonttools==4.38.0
- frozenlist==1.3.3
- huggingface-hub==0.13.4
- importlib-resources==5.12.0
- kiwisolver==1.4.4
- matplotlib==3.7.0
- multidict==6.0.4
- openai==0.27.0
- packaging==23.0
- psutil==5.9.4
- pycocotools==2.0.6
- pyparsing==3.0.9
- python-dateutil==2.8.2
- pyyaml==6.0
- regex==2022.10.31
- tokenizers==0.13.2
- tqdm==4.64.1
- transformers==4.28.0
- timm==0.6.13
- spacy==3.5.1
- webdataset==0.2.48
- scikit-learn==1.2.2
- scipy==1.10.1
- yarl==1.8.2
- zipp==3.14.0
- omegaconf==2.3.0
- opencv-python==4.7.0.72
- iopath==0.1.10
- decord==0.6.0
- tenacity==8.2.2
- peft
- pycocoevalcap
- sentence-transformers
- umap-learn
- notebook
- gradio==3.24.1
- gradio-client==0.0.8
- wandb But unfortunately, I'm still unable to interact with miniGPT4 due to following error when I upload an image.
Does anyone have idea? |
I think you should not modify the requirement.txt file. Because the libs have dependencies to each other. The problem is caused by |
Did anyone solve the issue? |
I ran into the same issue. Did you solve ? |
I solvee this issue.
|
FYI , when starting the demo file I get the following message
torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: libtorch_cuda_cu.so: cannot open shared object file:
the other one is to do the hugging-face accelerate
This model has some weights that should be kept in higher precision, you need to upgrade
accelerate
to properly deal with them (pip install --upgrade accelerate
)The text was updated successfully, but these errors were encountered: