Downloads · 30 days
266
36% of all-time downloads
Pection/llama3-finetune
llama3-finetune is a text generation model from Pection. Use it when you need the model to write or continue text. It is set up for transformers.
extragateddescription: If you want to learn more about how we process your personal data, please read our <a href="https://mistral.ai/terms/"Privacy Policy</a. --- ---
Downloads · 30 days
266
36% of all-time downloads
All-time downloads
730
Public
Parameters
1.2B
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 100%
From the Hugging Face model README
This is a fine-tuned version of the LLaMA 3 model . Below is an example of how to use it:
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("Pection/llama3-finetune")
model = AutoModelForCausalLM.from_pretrained("Pection/llama3-finetune")
# Generate response
prompt = "Where is Bangkok?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)