alamin655 commited on
Commit
a6d8426
·
1 Parent(s): d130b8c

Delete download_model.py

Browse files
Files changed (1) hide show
  1. download_model.py +0 -21
download_model.py DELETED
@@ -1,21 +0,0 @@
1
- import os
2
- from huggingface_hub import hf_hub_download
3
-
4
-
5
- def download_replit_quant(destination_folder: str, repo_id: str, model_filename: str):
6
- local_path = os.path.abspath(destination_folder)
7
- return hf_hub_download(
8
- repo_id=repo_id,
9
- filename=model_filename,
10
- local_dir=local_path,
11
- local_dir_use_symlinks=True,
12
- )
13
-
14
-
15
- if __name__ == "__main__":
16
- """full url: https://huggingface.co/abacaj/Replit-v2-CodeInstruct-3B-ggml/blob/main/replit-v2-codeinstruct-3b.q4_1.bin"""
17
-
18
- repo_id = "abacaj/Replit-v2-CodeInstruct-3B-ggml"
19
- model_filename = "replit-v2-codeinstruct-3b.q4_1.bin"
20
- destination_folder = "models"
21
- download_replit_quant(destination_folder, repo_id, model_filename)