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

Cannot import "Conversation" #1955

Open
Phyks opened this issue Nov 13, 2024 · 1 comment
Open

Cannot import "Conversation" #1955

Phyks opened this issue Nov 13, 2024 · 1 comment

Comments

@Phyks
Copy link

Phyks commented Nov 13, 2024

Hi,

The example HuggingFace pipeline does no longer work and fails with an error "Cannot import Conversation from transformers.pipelines": https://github.com/SeldonIO/MLServer/blob/master/docs/examples/huggingface/README.md.

As per https://discuss.huggingface.co/t/cannot-import-conversation-from-transformers-utils-py/91556/1, downgrading transformers library to version 4.41.2 (pip install transformers==4.41.2) does the trick and fixes the pipeline.

transformers dependency should probably be pinned to a stricter version, or the import should be fixed in huggingface runtime.

Best,

@sakoush
Copy link
Member

sakoush commented Nov 15, 2024

@Phyks Thanks for your reporting this issue. I think it is better to fix the underlying issue with the import. We welcome contributions if you are happy to provide a fix for it. Thanks!

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