MGZON commited on
Commit
23be6d3
ยท
verified ยท
1 Parent(s): 587df20

for Mistral-7B-Instruct

Browse files
Files changed (1) hide show
  1. setup.sh +27 -0
setup.sh ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ # 1๏ธโƒฃ ู…ุฌู„ุฏ ู„ุชุฎุฒูŠู† ุงู„ู†ู…ูˆุฐุฌ
5
+ mkdir -p models
6
+
7
+ # 2๏ธโƒฃ ุชุญู…ูŠู„ ู…ู„ู .gguf ุฅุฐุง ู„ู… ูŠูƒู† ู…ูˆุฌูˆุฏู‹ุง
8
+ python - <<PY
9
+ from huggingface_hub import hf_hub_download
10
+ import os
11
+
12
+ repo_id = "TheBloke/Mistral-7B-Instruct-v0.1-GGUF"
13
+ filename = "mistral-7b-instruct-v0.1.Q4_K_M.gguf"
14
+ local_dir = "models"
15
+
16
+ if not os.path.exists(os.path.join(local_dir, filename)):
17
+ hf_hub_download(
18
+ repo_id=repo_id,
19
+ filename=filename,
20
+ local_dir=local_dir,
21
+ local_dir_use_symlinks=False,
22
+ force_download=False
23
+ )
24
+ print("โœ… ุชู… ุชุญู…ูŠู„ Mistral .gguf")
25
+ else:
26
+ print("โœ… ุงู„ู…ู„ู ู…ูˆุฌูˆุฏ ู…ุณุจู‚ู‹ุง")
27
+ PY