Update app.py
Browse files
app.py
CHANGED
|
@@ -16,11 +16,12 @@ from pathlib import Path
|
|
| 16 |
# MODEL_URL = "https://huggingface.co/datasets/psy7743/llama3-8b-instruct-Q8_0.gguf/resolve/main/llama3-8b-instruct-Q8_0.gguf"
|
| 17 |
# MODEL_PATH = "llama3-8b-instruct-Q8_0.gguf"
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
if not Path(MODEL_PATH).exists():
|
| 23 |
-
print("📥 Downloading
|
| 24 |
response = requests.get(MODEL_URL, stream=True)
|
| 25 |
with open(MODEL_PATH, "wb") as f:
|
| 26 |
for chunk in response.iter_content(chunk_size=8192):
|
|
|
|
| 16 |
# MODEL_URL = "https://huggingface.co/datasets/psy7743/llama3-8b-instruct-Q8_0.gguf/resolve/main/llama3-8b-instruct-Q8_0.gguf"
|
| 17 |
# MODEL_PATH = "llama3-8b-instruct-Q8_0.gguf"
|
| 18 |
|
| 19 |
+
# ---------------------- Download Model ----------------------
|
| 20 |
+
MODEL_URL = "https://huggingface.co/tensorblock/Meta-Llama-3.2-1B-GGUF/resolve/main/Meta-Llama-3.2-1B-Q8_0.gguf"
|
| 21 |
+
MODEL_PATH = "Meta-Llama-3.2-1B-Q8_0.gguf"
|
| 22 |
|
| 23 |
if not Path(MODEL_PATH).exists():
|
| 24 |
+
print("📥 Downloading Meta LLaMA 3.2 1B Q8_0 model from tensorblock...")
|
| 25 |
response = requests.get(MODEL_URL, stream=True)
|
| 26 |
with open(MODEL_PATH, "wb") as f:
|
| 27 |
for chunk in response.iter_content(chunk_size=8192):
|