{
  "id": "huggingface/peft-adapter-config-mismatch",
  "signature": "ValueError: The adapter configuration does not match the base model. Expected adapter type 'lora' but got 'ia3'",
  "signature_zh": "值错误：适配器配置与基础模型不匹配。期望适配器类型为'lora'，但得到'ia3'",
  "regex": "adapter configuration does not match the base model|Expected adapter type",
  "domain": "huggingface",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Loading a PEFT adapter saved with one method (e.g., LoRA) onto a model that expects a different method (e.g., IA3), causing a configuration mismatch.",
  "root_cause_type": "generic",
  "root_cause_zh": "将一个使用某种方法（例如LoRA）保存的PEFT适配器加载到期望不同方法（例如IA3）的模型上，导致配置不匹配。",
  "versions": [
    {
      "version": "peft>=0.5.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "transformers>=4.30.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This flag only handles size mismatches, not adapter type mismatches.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The issue is not library installation but adapter metadata stored in the adapter_config.json file.",
      "fail_rate": 0.98,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Load the adapter with the correct PEFT method class explicitly.",
      "success_rate": 0.9,
      "how": "Load the adapter with the correct PEFT method class explicitly.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Inspect adapter_config.json and set peft_type manually before loading.",
      "success_rate": 0.85,
      "how": "Inspect adapter_config.json and set peft_type manually before loading.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Re-create the adapter using the correct method from scratch.",
      "success_rate": 0.7,
      "how": "Re-create the adapter using the correct method from scratch.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Load the adapter with the correct PEFT method class explicitly.",
    "Inspect adapter_config.json and set peft_type manually before loading.",
    "Re-create the adapter using the correct method from scratch."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://huggingface.co/docs/peft/developer_guides/mixed_models",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.88,
  "resolvable": "true",
  "first_seen": "2023-08-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}