awinml varun500 commited on
Commit
375019e
1 Parent(s): dd4f3cf

Update app.py (#3)

Browse files

- Update app.py (08d0e5903048560b1bfe7707d55d3c1962f6a6a9)


Co-authored-by: Varun Mathur <varun500@users.noreply.huggingface.co>

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)