Trying different Llama settings
Browse files
app.py
CHANGED
@@ -52,7 +52,8 @@ if not os.path.exists(model_path):
|
|
52 |
print("Model downloaded successfully.")
|
53 |
|
54 |
# Initialize the Llama model
|
55 |
-
llm = Llama(model_path=model_path, n_ctx=
|
|
|
56 |
|
57 |
|
58 |
def search_problems(query, top_k=5):
|
|
|
52 |
print("Model downloaded successfully.")
|
53 |
|
54 |
# Initialize the Llama model
|
55 |
+
llm = Llama(model_path=model_path, n_ctx=1024, n_threads=8, n_batch=512,
|
56 |
+
mlock=True, n_gpu_layers=-1)
|
57 |
|
58 |
|
59 |
def search_problems(query, top_k=5):
|