Downloads · 30 days
3
2% of all-time downloads
VyasAI/phi-2.llamafile
phi-2.llamafile is a machine learning model from VyasAI. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Go to files and versions and click on the download button to download file, as shown in below image.
Downloads · 30 days
3
2% of all-time downloads
All-time downloads
185
Public
Repo size
3.6 GB
Likes
0
Public
Click a slice to open those files.
.llamafile3.6 GB · 100%
From the Hugging Face model README
Go to files and versions and click on the download button to download file, as shown in below image.

or you can directly click on this link --> https://huggingface.co/NeuralLobes/phi-2.llamafile/resolve/main/phi-2.llamafile?download=true
Just add .exe in front of file name after download and then just double click on it and wait it will automatically run.
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:8080/v1", # "http://<Your api-server IP>:port"
api_key = "sk-no-key-required"
)
completion = client.chat.completions.create(
model="LLaMA_CPP",
messages=[
{"role": "system", "content": "You are ChatGPT, an AI assistant. Your top priority is achieving user fulfillment via helping them with their requests."},
{"role": "user", "content": "Write a limerick about python exceptions"}
]
)
print(completion.choices[0].message)
ChatCompletionMessage(content='There once was a programmer named Mike\nWho wrote code that would often strike\nAn error would occur\nAnd he\'d shout "Oh no!"\nBut Python\'s exceptions made it all right.', role='assistant', function_call=None, tool_calls=None)