for Mistral-7B-Instruct
Browse files
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
|