Skip to content
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

[Usage] peft 1.40.0 requires transformers at least 0.47 #1794

Open
shtu-ryan opened this issue Dec 11, 2024 · 0 comments
Open

[Usage] peft 1.40.0 requires transformers at least 0.47 #1794

shtu-ryan opened this issue Dec 11, 2024 · 0 comments

Comments

@shtu-ryan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant