Downloads · 30 days
20
31% of all-time downloads
MangoLassi/llama-3.2-1b-finetuned
llama-3.2-1b-finetuned is a text generation model from MangoLassi. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This is a fine-tuned version of meta-llama/Llama-3.2-1B with PEFT/LoRA.
Downloads · 30 days
20
31% of all-time downloads
All-time downloads
65
Public
Repo size
37.8 MB
Likes
0
Public
Click a slice to open those files.
.json17.3 MB · 83%
From the Hugging Face model README
This is a fine-tuned version of meta-llama/Llama-3.2-1B with PEFT/LoRA.
from transformers import AutoTokenizer
from peft import AutoPeftModelForCausalLM
# Load model and tokenizer
model = AutoPeftModelForCausalLM.from_pretrained("MangoLassi/llama-3.2-1b-finetuned")
tokenizer = AutoTokenizer.from_pretrained("MangoLassi/llama-3.2-1b-finetuned")
# Generate text
prompt = "Your prompt here"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))