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' #1606

Open
Harsha0056 opened this issue Feb 11, 2025 · 1 comment
Labels
DirectML DirectML

Comments

@Harsha0056
Copy link

I have an AMD laptop with the following specifications:

AMD Ryzen 7 PRO 8840U w/ Radeon 780M Graphics 3.30

I am trying to run Stable Diffusion on the integrated GPU.

After following the steps mentioned in the Ryzen AI software and Olive for DirectML, I encountered an issue.

ImportError: cannot import name 'EncoderDecoderCache' from 'transformers' (C:\Users\SHI-Lab\anaconda3\envs\testamd\lib\site-packages\transformers_init_.py)

I am using transformers version 4.42.4.

References:

Olive logs
Add logs here.

Image

Other information

  • OS: Windows
  • Olive-ai: 0.8.0.dev0
  • ONNXRuntime-directml: 1.20.1
  • Transformers package version: 4.44.2
@Harsha0056
Copy link
Author

I tried creating new env , and running all over again just by following instruction from
https://github.com/microsoft/Olive/blob/main/examples/directml/stable_diffusion/README.md#test-inference

Image

@devang-ml devang-ml added the DirectML DirectML label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DirectML DirectML
Projects
None yet
Development

No branches or pull requests

2 participants