Downloads · 30 days
3
20% of all-time downloads
ssmurali/gemma2-2b-safeorpo
gemma2-2b-safeorpo is a machine learning model from ssmurali. 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 peft.
This is a PEFT LoRA adapter for google/gemma-2-2b-it.
Downloads · 30 days
3
20% of all-time downloads
All-time downloads
15
Public
Repo size
243 MB
Likes
0
Public
Click a slice to open those files.
.safetensors102 MB · 73%
From the Hugging Face model README
This is a PEFT LoRA adapter for google/gemma-2-2b-it.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = AutoModelForCausalLM.from_pretrained("google/gemma-2-2b-it")
model = PeftModel.from_pretrained(base_model, "ssmurali/gemma2-2b-safeorpo")
tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-2b-it")