{
  "id": "huggingface/pipeline-task-chunked-inference-error",
  "signature": "ValueError: The pipeline does not support chunked inference for this task. Set `chunked_inference=False` or use a compatible task like 'text-generation'.",
  "signature_zh": "ValueError：此任务不支持分块推理。设置 `chunked_inference=False` 或使用兼容的任务，如 'text-generation'。",
  "regex": "pipeline does not support chunked inference for this task",
  "domain": "huggingface",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "User attempted to enable `chunked_inference=True` on a pipeline task (e.g., 'text-classification') that does not support chunked processing, because the task expects non-overlapping outputs per chunk.",
  "root_cause_type": "generic",
  "root_cause_zh": "用户尝试在不受支持的分块推理任务（如 'text-classification'）上启用 `chunked_inference=True`，因为该任务期望每个分块输出不重叠。",
  "versions": [
    {
      "version": "transformers 4.45.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The error is raised before any inference; try-except cannot bypass the validation check.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This is actually a valid workaround but not a direct fix for the parameter; the user might think setting `chunked_inference=True` is equivalent, but it's not.",
      "fail_rate": 0.2,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set `chunked_inference=False` explicitly: `pipe = pipeline('text-classification', model='model-name', chunked_inference=False)`.",
      "success_rate": 0.95,
      "how": "Set `chunked_inference=False` explicitly: `pipe = pipeline('text-classification', model='model-name', chunked_inference=False)`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Manually implement chunking by splitting input text into batches and calling the pipeline in a loop without the `chunked_inference` parameter.",
      "success_rate": 0.85,
      "how": "Manually implement chunking by splitting input text into batches and calling the pipeline in a loop without the `chunked_inference` parameter.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Set `chunked_inference=False` explicitly: `pipe = pipeline('text-classification', model='model-name', chunked_inference=False)`.",
    "Manually implement chunking by splitting input text into batches and calling the pipeline in a loop without the `chunked_inference` parameter."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://huggingface.co/docs/transformers/en/main_classes/pipelines#chunked-inference",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-06-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}