huggingface
config_error
ai_generated
true
ValueError:任务 `summarization_v2` 不被 pipeline 支持。支持的任务有:['text-classification', 'token-classification', 'question-answering', 'summarization', 'translation', 'text-generation', 'zero-shot-classification', 'fill-mask']
ValueError: The task `summarization_v2` is not supported by the pipeline. Supported tasks are: ['text-classification', 'token-classification', 'question-answering', 'summarization', 'translation', 'text-generation', 'zero-shot-classification', 'fill-mask']
ID: huggingface/pipeline-task-not-supported
95%修复率
82%置信度
1证据数
2023-08-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| transformers>=4.20.0 | active | — | — | — |
| python>=3.7 | active | — | — | — |
根因分析
pipeline 任务名称拼写错误或不在支持的任务列表中,通常是由于拼写错误或使用了过时的任务标识符。
English
The pipeline task name is misspelled or does not exist in the supported task list, often due to a typo or using an outdated task identifier.
官方文档
https://huggingface.co/docs/transformers/main/en/main_classes/pipelines解决方案
-
从支持列表中使用正确的任务名称。示例:pipe = pipeline('summarization', model='facebook/bart-large-cnn') -
检查模型配置以获取正确任务:model.config.task_specific_params 或使用 AutoModelForSeq2SeqLM 进行摘要。
无效尝试
常见但无效的做法:
-
80% 失败
Pipeline tasks are predefined; custom tasks require subclassing and registering.
-
70% 失败
Task names must exactly match the supported list; 'text2text-generation' is not a valid pipeline task.