From 74e28db50f2fe17e5543f86fd79f0e9d2b325b4d Mon Sep 17 00:00:00 2001 From: Cammy Date: Mon, 17 Apr 2023 09:11:14 -0700 Subject: [PATCH] add 4_0 to default outfile namestr dict This came up when trying to convert the gpt4all-lora-unfiltered-quantized.bin file --- convert.py | 1 + 1 file changed, 1 insertion(+) diff --git a/convert.py b/convert.py index 7b9f043b2..2450c8f6d 100644 --- a/convert.py +++ b/convert.py @@ -1085,6 +1085,7 @@ def default_outfile(model_paths: List[Path], params: Params) -> Path: namestr = { GGMLFileType.AllF32: "f32", GGMLFileType.MostlyF16: "f16", + GGMLFileType.MostlyQ4_0: "q4_0", GGMLFileType.MostlyQ4_1: "q4_1", GGMLFileType.PerLayerIsQ4_1: "q4_1", }[params.file_type]