google flan T5 download fix (#3080)
This commit is contained in:
parent
fdd596f98f
commit
61102899cd
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue