mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
google flan T5 download fix (#3080)
This commit is contained in:
parent
fdd596f98f
commit
61102899cd
@ -77,7 +77,7 @@ class ModelDownloader:
|
|||||||
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)
|
||||||
is_tokenizer = re.match("(tokenizer|ice).*\.model", fname)
|
is_tokenizer = re.match("(tokenizer|ice|spiece).*\.model", fname)
|
||||||
is_text = re.match(".*\.(txt|json|py|md)", fname) or is_tokenizer
|
is_text = re.match(".*\.(txt|json|py|md)", fname) or is_tokenizer
|
||||||
if any((is_pytorch, is_safetensors, is_pt, is_ggml, is_tokenizer, is_text)):
|
if any((is_pytorch, is_safetensors, is_pt, is_ggml, is_tokenizer, is_text)):
|
||||||
if 'lfs' in dict[i]:
|
if 'lfs' in dict[i]:
|
||||||
|
Loading…
Reference in New Issue
Block a user