Update app.py
Browse files
app.py
CHANGED
|
@@ -8,12 +8,16 @@ model_path = hf_hub_download(
|
|
| 8 |
filename="llama-3.2-3b-instruct.Q2_K.gguf"
|
| 9 |
)
|
| 10 |
|
| 11 |
-
# Load
|
| 12 |
llm = Llama(
|
| 13 |
model_path=model_path,
|
| 14 |
-
n_ctx=4096,
|
| 15 |
-
n_threads=
|
| 16 |
-
n_batch=
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
verbose=False
|
| 18 |
)
|
| 19 |
|
|
|
|
| 8 |
filename="llama-3.2-3b-instruct.Q2_K.gguf"
|
| 9 |
)
|
| 10 |
|
| 11 |
+
# Load GGUF with safe HF settings
|
| 12 |
llm = Llama(
|
| 13 |
model_path=model_path,
|
| 14 |
+
n_ctx=4096,
|
| 15 |
+
n_threads=4,
|
| 16 |
+
n_batch=64,
|
| 17 |
+
n_gpu_layers=0, # IMPORTANT
|
| 18 |
+
use_mmap=False, # IMPORTANT
|
| 19 |
+
use_mlock=False, # IMPORTANT
|
| 20 |
+
low_vram=True, # IMPORTANT
|
| 21 |
verbose=False
|
| 22 |
)
|
| 23 |
|