sugiv commited on
Commit
64d28ca
·
1 Parent(s): c6ebbc4

Trying different Llama settings

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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=2048, n_threads=4)
 
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):