Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from huggingface_hub import snapshot_download
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
HF_TKN ='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'
|
| 4 |
+
mistral_models_path = Path.home().joinpath('mistral_models', '7B-Instruct-v0.3')
|
| 5 |
+
mistral_models_path.mkdir(parents=True, exist_ok=True)
|
| 6 |
+
|
| 7 |
+
snapshot_download(repo_id="mistralai/Mistral-7B-Instruct-v0.3", token = HF_TKN,allow_patterns=["params.json", "consolidated.safetensors", "tokenizer.model.v3"], local_dir=mistral_models_path)
|