testdatasets / app.py
pragyarama's picture
create app.py
0ede608 verified
raw
history blame contribute delete
324 Bytes
# !pip install llama-cpp-python
import gradio as gr
from huggingface_hub import InferenceClient
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="gultar/OpenHermes-Llama-3b-GGUF",
filename="openhermes-llama-3b-q5_0.gguf",
)
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)