Skip to content

Huggingface transformers.ConversationalPipeline is removed from the pinned version of transformers (now 4.43.1) #1648

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

Open
bryanmcguire opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bryanmcguire
Copy link

Huggingface transformers.ConversationalPipeline is removed from the pinned version of transformers (now 4.43.1), breaking the conversational transform task. Huggingface transformers spits out the following:

pyo3_runtime.PanicException: Error calling next on GeneralJsonIterator: error returned from database: Traceback (most recent call last):
  File "transformers.py", line 489, in transform
  File "transformers.py", line 463, in create_pipeline
  File "transformers.py", line 343, in __init__
  File "/opt/pgml-env/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 849, in pipeline
    normalized_task, targeted_task, task_options = check_task(task)
  File "/opt/pgml-env/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 533, in check_task
    return PIPELINE_REGISTRY.check_task(task)
  File "/opt/pgml-env/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1350, in check_task
    raise KeyError(
 KeyError: "Unknown task conversational, available tasks are ['audio-classification', 'automatic-speech-recognition', 'depth-estimation', 'document-question-answering', 'feature-extraction', 'fill-mask', 'image-classification', 'image-feature-extraction', 'image-segmentation', 'image-to-image', 'image-to-text', 'mask-generation', 'ner', 'object-detection', 'question-answering', 'sentiment-analysis', 'summarization', 'table-question-answering', 'text-classification', 'text-generation', 'text-to-audio', 'text-to-speech', 'text2text-generation', 'token-classification', 'translation', 'video-classification', 'visual-question-answering', 'vqa', 'zero-shot-audio-classification', 'zero-shot-classification', 'zero-shot-image-classification', 'zero-shot-object-detection', 'translation_XX_to_YY']"
@SilasMarvin SilasMarvin added the bug Something isn't working label Jan 14, 2025
@SilasMarvin SilasMarvin self-assigned this Jan 14, 2025
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy