Danielrahmai1991 commited on
Commit
a75a1ba
·
verified ·
1 Parent(s): 1ecd7ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -9,11 +9,12 @@ from langchain_core.callbacks import StreamingStdOutCallbackHandler
9
  callbacks = [StreamingStdOutCallbackHandler()]
10
 
11
  llm = LlamaCpp(
12
- model_path="/content/drive/MyDrive/models/demo1/unsloth.Q5_K_M.gguf",
13
- n_gpu_layers=40,
14
- n_batch=512,
15
- callbacks=callbacks,
16
- verbose=True,
 
17
  )
18
 
19
  template = """You are the Finiantial expert:
 
9
  callbacks = [StreamingStdOutCallbackHandler()]
10
 
11
  llm = LlamaCpp(
12
+ model_path="unsloth.Q5_K_M.gguf",
13
+ temperature=0.75,
14
+ max_tokens=30,
15
+ top_p=4,
16
+ callback_manager=callbacks,
17
+ verbose=True, # Verbose is required to pass to the callback manager
18
  )
19
 
20
  template = """You are the Finiantial expert: