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

ImportError: cannot import name 'EncoderDecoderCache' from 'transformers' #123

Open
zhejia01 opened this issue Dec 11, 2024 · 1 comment

Comments

@zhejia01
Copy link

File "/home/zhejia/miniconda3/envs/xxx/lib/python3.10/site-packages/peft/peft_model.py", line 37, in <module> from transformers import Cache, DynamicCache, EncoderDecoderCache, PreTrainedModel
My environment version:
......
tokenizers 0.15.2
tomli 2.2.1
tomlkit 0.12.0
torch 2.1.2+cu121
torch_scatter 2.1.2+pt22cu121
torchvision 0.16.2+cu121
tqdm 4.67.1
traitlets 5.14.3
transformers 4.39.3
......

@RubyNg
Copy link

RubyNg commented Dec 12, 2024

It seems sth wrong with previous releases.
pip install --upgrade transformers works for me.

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

2 participants