{
  "id": "huggingface/pipeline-task-not-supported",
  "signature": "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']",
  "signature_zh": "ValueError：任务 `summarization_v2` 不被 pipeline 支持。支持的任务有：['text-classification', 'token-classification', 'question-answering', 'summarization', 'translation', 'text-generation', 'zero-shot-classification', 'fill-mask']",
  "regex": "ValueError: The task `.*` is not supported by the pipeline\\.",
  "domain": "huggingface",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "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.",
  "root_cause_type": "generic",
  "root_cause_zh": "pipeline 任务名称拼写错误或不在支持的任务列表中，通常是由于拼写错误或使用了过时的任务标识符。",
  "versions": [
    {
      "version": "transformers>=4.20.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "python>=3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Pipeline tasks are predefined; custom tasks require subclassing and registering.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Task names must exactly match the supported list; 'text2text-generation' is not a valid pipeline task.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use the correct task name from the supported list. Example: pipe = pipeline('summarization', model='facebook/bart-large-cnn')",
      "success_rate": 0.95,
      "how": "Use the correct task name from the supported list. Example: pipe = pipeline('summarization', model='facebook/bart-large-cnn')",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check the model's config for the correct task: model.config.task_specific_params or use AutoModelForSeq2SeqLM for summarization.",
      "success_rate": 0.85,
      "how": "Check the model's config for the correct task: model.config.task_specific_params or use AutoModelForSeq2SeqLM for summarization.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "从支持列表中使用正确的任务名称。示例：pipe = pipeline('summarization', model='facebook/bart-large-cnn')",
    "检查模型配置以获取正确任务：model.config.task_specific_params 或使用 AutoModelForSeq2SeqLM 进行摘要。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://huggingface.co/docs/transformers/main/en/main_classes/pipelines",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-08-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}