{"record":{"id":"02431a27444e08aa","repo":"oobabooga/textgen","slug":"you-are-using-an-outdated-gguf-please-download-a","errorCode":null,"errorMessage":"You are using an outdated GGUF, please download a new one.","messagePattern":"You are using an outdated GGUF, please download a new one\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"modules/metadata_gguf.py","lineNumber":75,"sourceCode":"            pass\n    else:\n        type_str = _simple_value_packing.get(value_type)\n        bytes_length = value_type_info.get(value_type)\n        value = struct.unpack(type_str, file.read(bytes_length))[0]\n\n    return value\n\n\ndef load_metadata(fname):\n    metadata = {}\n    with open(fname, 'rb') as file:\n        GGUF_MAGIC = struct.unpack(\"<I\", file.read(4))[0]\n        GGUF_VERSION = struct.unpack(\"<I\", file.read(4))[0]\n        ti_data_count = struct.unpack(\"<Q\", file.read(8))[0]\n        kv_data_count = struct.unpack(\"<Q\", file.read(8))[0]\n\n        if GGUF_VERSION == 1:\n            raise Exception('You are using an outdated GGUF, please download a new one.')\n\n        for i in range(kv_data_count):\n            key_length = struct.unpack(\"<Q\", file.read(8))[0]\n            key = file.read(key_length)\n\n            value_type = GGUFValueType(struct.unpack(\"<I\", file.read(4))[0])\n            if value_type == GGUFValueType.ARRAY:\n                ltype = GGUFValueType(struct.unpack(\"<I\", file.read(4))[0])\n                length = struct.unpack(\"<Q\", file.read(8))[0]\n\n                arr = [get_single(ltype, file) for _ in range(length)]\n                metadata[key.decode()] = arr\n            else:\n                value = get_single(value_type, file)\n                metadata[key.decode()] = value\n\n    return metadata\n","sourceCodeStart":57,"sourceCodeEnd":93,"githubUrl":"https://github.com/oobabooga/textgen/blob/ed888c71f221df552750e1834b3654abab8ae345/modules/metadata_gguf.py#L57-L93","documentation":"Error \"You are using an outdated GGUF, please download a new one.\" thrown in oobabooga/textgen.","triggerScenarios":"Raised when reading GGUF metadata from a model file whose GGUF format version is older than the supported minimum. Triggers when loading very old GGUF files; download a newer conversion of the model.","commonSituations":"See trigger scenarios.","solutions":["Download a newer copy of the model; the GGUF file uses an outdated format version.","Re-quantize or convert the model to a current GGUF version."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ed888c71f221df552750e1834b3654abab8ae345","analyzedAt":"2026-08-15T05:24:21.000Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}