Spaces:
Build error
Build error
Add n_gpu_layers
Browse files
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,
|
|
|
|
|
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(
|