Spaces:
Runtime error
Runtime error
Update app.py
#3
by
varun500
- opened
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)
|