Spaces:
Sleeping
Sleeping
File size: 274 Bytes
ccac5b1 1cc747b ccac5b1 6066e39 ccac5b1 6066e39 ed7da4e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="microsoft/Phi-3-mini-4k-instruct-gguf",
filename="Phi-3-mini-4k-instruct-fp16.gguf",
)
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)
if __name__ == '__app__':
app()
|