-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
Conversation pipeline example doesn't work #31158
Comments
Hi @qgallouedec , I guess that the models on the hub needs to define their task then we don't need to provide the value for the kwarg |
Hi @qgallouedec, the For a more up-to-date guide on chatting with Transformer models, try this guide: https://huggingface.co/docs/transformers/main/en/conversations. You can swap the |
Thank @Rocketknight1 for your quick answer! However , my point was more about documentation than about how to use a model for conversation. The example provided in the documentation is not functional, and I think this is problematic for users who rely on these examples to understand how to use the library. Regarding the deprecation of
Thanks for the ref, I think it would be relevant to put this link in place of all that, wdyt?: transformers/src/transformers/pipelines/conversational.py Lines 205 to 227 in 9837a25
|
@qgallouedec there is already a deprecation warning at runtime in Regardless, it's actually due for removal in the next version, so rather than updating the documentation, I'll take this as a sign that it's time to finally remove it entirely! |
@qgallouedec PR is open at #31165! |
System Info
transformers
version: 4.40.2Who can help?
@stevhliu
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
transformers/src/transformers/pipelines/conversational.py
Lines 208 to 214 in f3f640d
Expected behavior
The example to work.
It's probably linked to the fact that the pipeline has the wrong type. When you do
it works.
The text was updated successfully, but these errors were encountered: