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 'SampleOutput' from 'transformers.generation.utils' #82

Closed
erew123 opened this issue Jan 22, 2024 · 0 comments

Comments

@erew123
Copy link
Owner

erew123 commented Jan 22, 2024

EDIT This has now been resolved with an update to Transformers 24th Jan 2024 to version 4.37.1.

A new version of Transformers has been released 4.37 https://github.com/huggingface/transformers/releases which causes a load/import problem ImportError: cannot import name 'SampleOutput' from 'transformers.generation.utils' at this time, I'm unsure if this is a bug in their code as I cannot find any breaking changes currently. I have forced pip install transformers==4.36.2 in the requirements files.

If you experience this, you can load your python environment that AllTalk runs within and run pip install transformers==4.36.2 to force a downgrade.

I have raised an issue with the Transformers developers to ask them for help/guidance or to look into this issue.

@erew123 erew123 changed the title ImportError: cannot import name 'SampleOutput' from 'transformers.generation.utils' 🔄 ImportError: cannot import name 'SampleOutput' from 'transformers.generation.utils' Jan 22, 2024
@erew123 erew123 closed this as completed Jan 22, 2024
@erew123 erew123 pinned this issue Jan 22, 2024
@erew123 erew123 unpinned this issue Jan 25, 2024
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