From c7058afb402bd381d1983837b779c106217120b3 Mon Sep 17 00:00:00 2001 From: tianchen zhong Date: Sun, 9 Jul 2023 13:22:56 -0700 Subject: [PATCH] Add new possible bin file name regex (#3070) --- download-model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download-model.py b/download-model.py index 2642c40..dedd5f6 100644 --- a/download-model.py +++ b/download-model.py @@ -73,7 +73,7 @@ class ModelDownloader: if not is_lora and fname.endswith(('adapter_config.json', 'adapter_model.bin')): is_lora = True - is_pytorch = re.match("(pytorch|adapter)_model.*\.bin", fname) + is_pytorch = re.match("(pytorch|adapter|gptq)_model.*\.bin", fname) is_safetensors = re.match(".*\.safetensors", fname) is_pt = re.match(".*\.pt", fname) is_ggml = re.match(".*ggml.*\.bin", fname)