소스 검색

Fix ggml downloading in download-model.py (#915)

Blake Wyatt 2 년 전
부모
커밋
df561fd896
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      download-model.py

+ 1 - 1
download-model.py

@@ -142,7 +142,7 @@ def get_download_links_from_huggingface(model, branch):
             is_tokenizer = re.match("tokenizer.*\.model", fname)
             is_text = re.match(".*\.(txt|json|py|md)", fname) or is_tokenizer
 
-            if any((is_pytorch, is_safetensors, is_pt, is_tokenizer, is_text)):
+            if any((is_pytorch, is_safetensors, is_pt, is_ggml, is_tokenizer, is_text)):
                 if 'lfs' in dict[i]:
                     sha256.append([fname, dict[i]['lfs']['oid']])
                 if is_text: