haotian-liu/LLaVA

[Usage] peft 1.40.0 requires transformers at least 0.47

Opened this issue · 0 comments

Describe the issue

Issue:

As title. Better set peft==0.13.2

Command:

import peft

Log:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home_data/home/geyx2023/.conda/envs/llava/lib/python3.10/site-packages/peft/__init__.py", line 22, in <module>
    from .auto import (
  File "/home_data/home/geyx2023/.conda/envs/llava/lib/python3.10/site-packages/peft/auto.py", line 32, in <module>
    from .mapping import MODEL_TYPE_TO_PEFT_MODEL_MAPPING
  File "/home_data/home/geyx2023/.conda/envs/llava/lib/python3.10/site-packages/peft/mapping.py", line 25, in <module>
    from .mixed_model import PeftMixedModel
  File "/home_data/home/geyx2023/.conda/envs/llava/lib/python3.10/site-packages/peft/mixed_model.py", line 29, in <module>
    from .peft_model import PeftModel
  File "/home_data/home/geyx2023/.conda/envs/llava/lib/python3.10/site-packages/peft/peft_model.py", line 37, in <module>
    from transformers import Cache, DynamicCache, EncoderDecoderCache, PreTrainedModel
ImportError: cannot import name 'EncoderDecoderCache' from 'transformers' (/home_data/home/geyx2023/.conda/envs/llava/lib/python3.10/site-packages/transformers/__init__.py)

Screenshots:
You may attach screenshots if it better explains the issue.