{
  "id": "llm/llamacpp-gguf-version-mismatch",
  "signature": "error: failed to load model: incompatible GGUF version: model version is 3, but llama.cpp supports version 2",
  "signature_zh": "error: 加载模型失败：GGUF版本不兼容：模型版本为3，但llama.cpp仅支持版本2",
  "regex": "incompatible GGUF version: model version is \\d+, but llama\\.cpp supports version \\d+",
  "domain": "llm",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "GGUF model file was created with a newer version of the GGUF format (e.g., v3) than what the installed llama.cpp build supports (e.g., v2), due to outdated llama.cpp binaries.",
  "root_cause_type": "generic",
  "root_cause_zh": "GGUF模型文件使用的GGUF格式版本（例如v3）比已安装的llama.cpp构建所支持的版本（例如v2）更新，原因是llama.cpp二进制文件过时。",
  "versions": [
    {
      "version": "llama.cpp 2023-10-01",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "llama.cpp 2023-12-15",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "llama.cpp 2024-01-10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "GGUF v2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "GGUF v3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Downgrading may lose metadata or quantization information; converters often produce corrupted files when going backward.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Breaks file integrity checks and causes undefined behavior or crashes during model loading.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Update llama.cpp to the latest version by rebuilding from source:\n\ngit clone https://github.com/ggerganov/llama.cpp\ncd llama.cpp\nmake clean && make -j\n./main -m model.gguf",
      "success_rate": 0.95,
      "how": "Update llama.cpp to the latest version by rebuilding from source:\n\ngit clone https://github.com/ggerganov/llama.cpp\ncd llama.cpp\nmake clean && make -j\n./main -m model.gguf",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a pre-built binary from the latest release on GitHub:\n\nwget https://github.com/ggerganov/llama.cpp/releases/latest/download/llama.cpp-main-ubuntu-x64.tar.gz\ntar -xzf llama.cpp-main-ubuntu-x64.tar.gz\n./main -m model.gguf",
      "success_rate": 0.9,
      "how": "Use a pre-built binary from the latest release on GitHub:\n\nwget https://github.com/ggerganov/llama.cpp/releases/latest/download/llama.cpp-main-ubuntu-x64.tar.gz\ntar -xzf llama.cpp-main-ubuntu-x64.tar.gz\n./main -m model.gguf",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "通过从源代码重新构建，将llama.cpp更新到最新版本：\n\ngit clone https://github.com/ggerganov/llama.cpp\ncd llama.cpp\nmake clean && make -j\n./main -m model.gguf",
    "使用GitHub最新版本发布的预构建二进制文件：\n\nwget https://github.com/ggerganov/llama.cpp/releases/latest/download/llama.cpp-main-ubuntu-x64.tar.gz\ntar -xzf llama.cpp-main-ubuntu-x64.tar.gz\n./main -m model.gguf"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://github.com/ggerganov/llama.cpp#build",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-11-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}