mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-09-20 10:35:10 +02:00
Add new possible bin file name regex (#3070)
This commit is contained in:
parent
161d984e80
commit
c7058afb40
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class ModelDownloader:
|
||||||
if not is_lora and fname.endswith(('adapter_config.json', 'adapter_model.bin')):
|
if not is_lora and fname.endswith(('adapter_config.json', 'adapter_model.bin')):
|
||||||
is_lora = True
|
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_safetensors = re.match(".*\.safetensors", fname)
|
||||||
is_pt = re.match(".*\.pt", fname)
|
is_pt = re.match(".*\.pt", fname)
|
||||||
is_ggml = re.match(".*ggml.*\.bin", fname)
|
is_ggml = re.match(".*ggml.*\.bin", fname)
|
||||||
|
|
Loading…
Reference in a new issue