Fawaz0ibra commited on
Commit
cb76316
·
verified ·
1 Parent(s): 55b32c2

Update chain_setup.py

Browse files
Files changed (1) hide show
  1. chain_setup.py +7 -6
chain_setup.py CHANGED
@@ -15,12 +15,13 @@ def load_llm():
15
  )
16
 
17
  llm = LlamaCpp(
18
- model_path=model_file,
19
- flash_attn=False,
20
- n_ctx=2048,
21
- n_batch=512,
22
- chat_format="chatml"
23
- )
 
24
  return llm
25
 
26
  def build_conversational_chain(vectorstore):
 
15
  )
16
 
17
  llm = LlamaCpp(
18
+ model_path=model_file,
19
+ flash_attn=False,
20
+ n_ctx=2048, # or 4096
21
+ n_batch=512, # or even 256
22
+ chat_format='chatml'
23
+ )
24
+
25
  return llm
26
 
27
  def build_conversational_chain(vectorstore):