Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,12 +8,12 @@ from sentence_transformers import SentenceTransformer
|
|
| 8 |
|
| 9 |
# Initialize the Llama model
|
| 10 |
llm = Llama(
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
# model_path = "./models/Phi-3-mini-4k-instruct-gguf",
|
| 16 |
-
model_path = "NicholasJohn/OpenBioLLM-Llama3-8B-Q5_K_M.gguf",
|
| 17 |
n_ctx=2048,
|
| 18 |
n_gpu_layers=50, # Adjust based on your VRAM
|
| 19 |
)
|
|
|
|
| 8 |
|
| 9 |
# Initialize the Llama model
|
| 10 |
llm = Llama(
|
| 11 |
+
model_path=hf_hub_download(
|
| 12 |
+
repo_id="microsoft/Phi-3-mini-4k-instruct-gguf",
|
| 13 |
+
filename="Phi-3-mini-4k-instruct-q4.gguf",
|
| 14 |
+
),
|
| 15 |
# model_path = "./models/Phi-3-mini-4k-instruct-gguf",
|
| 16 |
+
# model_path = "NicholasJohn/OpenBioLLM-Llama3-8B-Q5_K_M.gguf",
|
| 17 |
n_ctx=2048,
|
| 18 |
n_gpu_layers=50, # Adjust based on your VRAM
|
| 19 |
)
|