pabloce commited on
Commit
6c0aa6e
·
verified ·
1 Parent(s): 2bf2736

fix context

Browse files
Files changed (1) hide show
  1. app.py +24 -21
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=8192,
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="Meta-Llama-3-70B-Instruct-Q3_K_M.gguf",
223
  label="Model"
224
  ),
225
  ],
226
- theme=gr.themes.Soft(primary_hue="violet", secondary_hue="violet", neutral_hue="gray",
227
- font=[gr.themes.GoogleFont("Exo"), "ui-sans-serif", "system-ui", "sans-serif"]).set(
228
- body_background_fill_dark="#111111",
229
- block_background_fill_dark="#111111",
230
- block_border_width="1px",
231
- block_title_background_fill_dark="#1e1c26",
232
- input_background_fill_dark="#292733",
233
- button_secondary_background_fill_dark="#24212b",
234
- border_color_primary_dark="#343140",
235
- background_fill_secondary_dark="#111111",
236
- color_accent_soft_dark="transparent"
237
- ),
238
- css=css,
239
- retry_btn="Retry",
240
- undo_btn="Undo",
241
- clear_btn="Clear",
242
- submit_btn="Send",
243
- description="Llama-cpp-agent: Chat multi llm selection"
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()