Commit ·
18d5877
1
Parent(s): a217b34
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,9 +14,15 @@ subprocess.run('pip install llama-cpp-agent==0.2.10', shell=True)
|
|
| 14 |
|
| 15 |
from llama_cpp import Llama
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
hf_hub_download(
|
| 18 |
-
repo_id="
|
| 19 |
-
filename="Meta-Llama-3-
|
| 20 |
local_dir = "./models"
|
| 21 |
)
|
| 22 |
|
|
@@ -130,7 +136,7 @@ def pdf_to_text(files, output_folder, maxtokens=2048, temperature=0, top_probabi
|
|
| 130 |
|
| 131 |
|
| 132 |
# model_id = "Meta-Llama-3-8B-Instruct.Q8_0.gguf"
|
| 133 |
-
model_id = "models/Meta-Llama-3-
|
| 134 |
model = Llama(model_path=model_id, n_ctx=2048, n_threads=8, n_gpu_layers=-1, n_batch=128)
|
| 135 |
|
| 136 |
css = ".gradio-container {background: 'logo.png'}"
|
|
|
|
| 14 |
|
| 15 |
from llama_cpp import Llama
|
| 16 |
|
| 17 |
+
# hf_hub_download(
|
| 18 |
+
# repo_id="QuantFactory/Meta-Llama-3-8B-Instruct-GGUF",
|
| 19 |
+
# filename="Meta-Llama-3-8B-Instruct.Q8_0.gguf",
|
| 20 |
+
# local_dir = "./models"
|
| 21 |
+
# )
|
| 22 |
+
|
| 23 |
hf_hub_download(
|
| 24 |
+
repo_id="bartowski/Meta-Llama-3-70B-Instruct-GGUF",
|
| 25 |
+
filename="Meta-Llama-3-70B-Instruct-IQ2_S.gguf",
|
| 26 |
local_dir = "./models"
|
| 27 |
)
|
| 28 |
|
|
|
|
| 136 |
|
| 137 |
|
| 138 |
# model_id = "Meta-Llama-3-8B-Instruct.Q8_0.gguf"
|
| 139 |
+
model_id = "models/Meta-Llama-3-70B-Instruct-IQ2_S.gguf"
|
| 140 |
model = Llama(model_path=model_id, n_ctx=2048, n_threads=8, n_gpu_layers=-1, n_batch=128)
|
| 141 |
|
| 142 |
css = ".gradio-container {background: 'logo.png'}"
|