Downloads · 30 days
1
1% of all-time downloads
wvnvwn/gemma-2-9b-it-lr5e-5-safeinstr-0.05
gemma-2-9b-it-lr5e-5-safeinstr-0.05 is a machine learning model from wvnvwn. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a Safety Neuron-Tuned (SN-Tune) version of Llama-3.2-3B-Instruct.
Downloads · 30 days
1
1% of all-time downloads
All-time downloads
89
Public
Parameters
9.2B
18.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors18.5 GB · 100%
From the Hugging Face model README
This is a Safety Neuron-Tuned (SN-Tune) version of Llama-3.2-3B-Instruct.
SN-Tune is a selective fine-tuning approach that:
This approach allows for:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "wvnvwn/gemma-2-9b-it-lr5e-5-safeinstr-0.05"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Generate text
prompt = "How can I help you today?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0]))
This model has been fine-tuned specifically for safety using the SN-Tune method. It should provide improved safety alignment compared to the base model.
This model is licensed under the Apache 2.0 License. See the base model (meta-llama/Llama-3.2-3B-Instruct) for more details.