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

[BUG REPORT] An exception occurred: 'cache_position' for AudioLDM2 #245

Open
rookiemann opened this issue Aug 29, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@rookiemann
Copy link

AudioLDM2 seems to be not working correctly, all the models for it do this.

There is no warning or exception on the cmd console, I just get that exception on the webui which doesn't give me much clues. I'm currently actively troubleshooting this.

image

@rookiemann rookiemann added the bug Something isn't working label Aug 29, 2024
@rookiemann
Copy link
Author

Ok after some investigation the run.bat file isn't using the correct diffusors or transformers needed for the
"audio-webui\webui\modules\implementations\audioldm2.py" file.

Claude says, "The problem lies in a version mismatch between the diffusers and transformers libraries. The error 'cache_position' occurs because the AudioLDM2 pipeline is trying to access a feature that's not present in the version of transformers being used when the application runs through run.bat.
Specifically, the error happens in the language model generation process, where it's expecting a 'cache_position' key in the model's keyword arguments. This key is likely present in newer versions of the libraries but missing in the version that's actually being used when the application runs.
In essence, the run.bat file is likely using an older or incompatible version of these libraries, causing the AudioLDM2 module to fail when generating audio."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants