Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ adapter_path = hf_hub_download(repo_id=adapter_repo, filename=adapter_file)
|
|
16 |
llm = Llama(
|
17 |
model_path=base_model_path,
|
18 |
lora_path=adapter_path,
|
19 |
-
n_ctx=
|
20 |
-
n_threads=
|
21 |
n_gpu_layers=0 # Set to >0 if GPU acceleration is desired and supported
|
22 |
)
|
23 |
|
|
|
16 |
llm = Llama(
|
17 |
model_path=base_model_path,
|
18 |
lora_path=adapter_path,
|
19 |
+
n_ctx=512, # Context length, set manually since adapter lacks it
|
20 |
+
n_threads=2, # Adjust based on your system
|
21 |
n_gpu_layers=0 # Set to >0 if GPU acceleration is desired and supported
|
22 |
)
|
23 |
|