Spaces:
Running
on
Zero
Running
on
Zero
fix context
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ def respond(
|
|
133 |
n_threads=40,
|
134 |
n_gpu_layers=81,
|
135 |
n_batch=1024,
|
136 |
-
n_ctx=
|
137 |
)
|
138 |
provider = LlamaCppPythonProvider(llm)
|
139 |
|
@@ -219,29 +219,32 @@ demo = gr.ChatInterface(
|
|
219 |
'Llama-3-8B-Synthia-v3.5-f16.gguf',
|
220 |
'Mistral-7B-Instruct-v0.3-f32.gguf'
|
221 |
],
|
222 |
-
value="
|
223 |
label="Model"
|
224 |
),
|
225 |
],
|
226 |
-
theme=gr.themes.Soft(
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
|
|
|
|
|
|
245 |
|
246 |
if __name__ == "__main__":
|
247 |
demo.launch()
|
|
|
133 |
n_threads=40,
|
134 |
n_gpu_layers=81,
|
135 |
n_batch=1024,
|
136 |
+
n_ctx=32768,
|
137 |
)
|
138 |
provider = LlamaCppPythonProvider(llm)
|
139 |
|
|
|
219 |
'Llama-3-8B-Synthia-v3.5-f16.gguf',
|
220 |
'Mistral-7B-Instruct-v0.3-f32.gguf'
|
221 |
],
|
222 |
+
value="Mistral-7B-Instruct-v0.3-f32.gguf",
|
223 |
label="Model"
|
224 |
),
|
225 |
],
|
226 |
+
theme=gr.themes.Soft(
|
227 |
+
primary_hue="violet",
|
228 |
+
secondary_hue="violet",
|
229 |
+
neutral_hue="gray",
|
230 |
+
font=[gr.themes.GoogleFont("Exo"), "ui-sans-serif", "system-ui", "sans-serif"]).set(
|
231 |
+
body_background_fill_dark="#111111",
|
232 |
+
block_background_fill_dark="#111111",
|
233 |
+
block_border_width="1px",
|
234 |
+
block_title_background_fill_dark="#1e1c26",
|
235 |
+
input_background_fill_dark="#292733",
|
236 |
+
button_secondary_background_fill_dark="#24212b",
|
237 |
+
border_color_primary_dark="#343140",
|
238 |
+
background_fill_secondary_dark="#111111",
|
239 |
+
color_accent_soft_dark="transparent"
|
240 |
+
),
|
241 |
+
css=css,
|
242 |
+
retry_btn="Retry",
|
243 |
+
undo_btn="Undo",
|
244 |
+
clear_btn="Clear",
|
245 |
+
submit_btn="Send",
|
246 |
+
description="Llama-cpp-agent: Chat multi llm selection"
|
247 |
+
)
|
248 |
|
249 |
if __name__ == "__main__":
|
250 |
demo.launch()
|