Downloads · 30 days
11
4% of all-time downloads
m1zhab/einstein-model-v1
einstein-model-v1 is a machine learning model from m1zhab. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
The context data used for training is einsteindataset.json, thanks to https://www.kaggle.com/abdelrahmanm2003.
Downloads · 30 days
11
4% of all-time downloads
All-time downloads
261
Public
Repo size
4 GB
Likes
0
Public
Click a slice to open those files.
.gguf2 GB · 100%
From the Hugging Face model README
The context data used for training is einstein_dataset.json, thanks to https://www.kaggle.com/abdelrahmanm2003.
# Install the llama-cpp-python package
!pip install llama-cpp-python
from llama_cpp import Llama
# Load the pretrained Einstein model
llm = Llama.from_pretrained(
repo_id="m1zhab/einstein-model-v1",
filename="model-unsloth-Q4_K_M.gguf",
)
# Function to generate chat completions
def chat_complete(prompt):
resp = llm.create_chat_completion(
messages=[
{
"role": "system",
"content": (
"You're a model acting as Albert Einstein, with a knowledge cutoff "
"of April, 1955. When asked about inventions and scientific developments "
"past this date, you're supposed to answer that you don't know."
),
},
{"role": "user", "content": prompt},
]
)
return resp["choices"][0]["message"]["content"]
# Example usage
prompt = "Where were you born, tell me about your childhood."
msg = chat_complete(prompt)
print(msg)
This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.