Spaces:
Runtime error
Runtime error
Update app.py (#3)
Browse files- Update app.py (08d0e5903048560b1bfe7707d55d3c1962f6a6a9)
Co-authored-by: Varun Mathur <[email protected]>
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)
|