varun500 commited on
Commit
08d0e59
1 Parent(s): dd4f3cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from llama_cpp import Llama
3
 
4
- llm = Llama(model_path="ggml-alpaca-7b-q4.bin")
5
 
6
  def generate_text(input_text):
7
  output = llm(f"{input_text}", max_tokens=128, stop=["Q:", "\n", "#"], echo=False)
 
1
  import gradio as gr
2
  from llama_cpp import Llama
3
 
4
+ llm = Llama(model_path="ggml-alpaca-7b-q4.bin", n_ctx=256, n_batch=128)
5
 
6
  def generate_text(input_text):
7
  output = llm(f"{input_text}", max_tokens=128, stop=["Q:", "\n", "#"], echo=False)