rf5860 commited on
Commit
cab48de
1 Parent(s): 02125ae

Add n_gpu_layers

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -71,7 +71,9 @@ def generate_text_from_prompt(user_prompt,
71
  top_p=0.8,
72
  echo=True,
73
  stop=["<s>", "[/INST]", "Q"]):
74
- mistral_model = Llama(model_path=model_file_path, n_ctx=4096)
 
 
75
 
76
  # Define the parameters
77
  model_output = mistral_model(
 
71
  top_p=0.8,
72
  echo=True,
73
  stop=["<s>", "[/INST]", "Q"]):
74
+ mistral_model = Llama(model_path=model_file_path,
75
+ n_ctx=4096,
76
+ n_gpu_layers=24)
77
 
78
  # Define the parameters
79
  model_output = mistral_model(