/content/SUPIR no module 'xformers'. Processing without... no module 'xformers'.…
- User
/content/SUPIR no module 'xformers'. Processing without... no module 'xformers'. Processing without... 2024-02-16 08:31:55.777881: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-02-16 08:31:55.777931: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-02-16 08:31:55.779198: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-02-16 08:31:57.071666: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT Traceback (most recent call last): File "/content/SUPIR/gradio_demo.py", line 9, in from llava.llava_agent import LLavaAgent File "/content/SUPIR/llava/init.py", line 1, in from .model import LlavaLlamaForCausalLM File "/content/SUPIR/llava/model/init.py", line 2, in from .language_model.llava_mpt import LlavaMPTForCausalLM, LlavaMPTConfig File "/content/SUPIR/llava/model/language_model/llava_mpt.py", line 26, in from .mpt.modeling_mpt import MPTConfig, MPTForCausalLM, MPTModel File "/content/SUPIR/llava/model/language_model/mpt/modeling_mpt.py", line 19, in from .hf_prefixlm_converter import add_bidirectional_mask_if_missing, convert_hf_causal_lm_to_prefix_lm File "/content/SUPIR/llava/model/language_model/mpt/hf_prefixlm_converter.py", line 15, in from transformers.models.bloom.modeling_bloom import _expand_mask as _expand_mask_bloom ImportError: cannot import name '_expand_mask' from 'transformers.models.bloom.modeling_bloom' (/usr/local/lib/python3.10/dist-packages/transformers/models/bloom/modeling_bloom.py)
- Assistant
- User
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. torchaudio 2.1.0+cu121 requires torch==2.1.0, but you have torch 2.2.0 which is incompatible. torchdata 0.7.0 requires torch==2.1.0, but you have torch 2.2.0 which is incompatible. torchtext 0.16.0 requires torch==2.1.0, but you have torch 2.2.0 which is incompatible. torchvision 0.16.0+cu121 requires torch==2.1.0, but you have torch 2.2.0 which is incompatible.
- Assistant
The message you posted indicates that there are dependency conflicts in your Python environment. You have installed
torchversion 2.2.0, but several other packages (torchaudio,torchdata,torchtext,torchvision) require an older version, specificallytorchversion 2.1.0.The dependency resolver in pip warns you about these incompatibilities because having mismatched versions of these packages could lead to runtime errors or unexpected behavior when you try to use them together.
To resolve these conflicts, you have a few options: