Downloads · 30 days
0
dlprt/fine-tuned-llama2-7b
fine-tuned-llama2-7b is a text generation model from dlprt. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model is a fine-tuned version of Llama 2 on my custom dataset.
Downloads · 30 days
0
Access
Public
Updated Jul 17, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 69%
From the Hugging Face model README
This model is a fine-tuned version of Llama 2 on my custom dataset.
Provide a description of your model here.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("dlprt/fine-tuned-llama2-7b")
tokenizer = AutoTokenizer.from_pretrained("dlprt/fine-tuned-llama2-7b")
inputs = tokenizer("Hello, world!", return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))