Downloads · 30 days
12
10% of all-time downloads
kmseong/llama2_7b_chat_constrained_sft_5e-5
llama2_7b_chat_constrained_sft_5e-5 is a text generation model from kmseong. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.1.
Fine-tuned Llama 3.1 8B Instruct model for safety alignment using Weight space Rotation Process (WaRP).
Downloads · 30 days
12
10% of all-time downloads
All-time downloads
117
Public
Parameters
6.7B
13.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors13.5 GB · 100%
From the Hugging Face model README
Fine-tuned Llama 3.1 8B Instruct model for safety alignment using Weight space Rotation Process (WaRP).
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "kmseong/WaRP-Safety-Llama3_8B_Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
# Generate text
inputs = tokenizer("What is machine learning?", return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0]))
@article{warp-safety,
title={Safety-First WaRP: Weight space Rotation Process for LLM Safety Alignment},
author={Min-Seong Kim},
year={2026}
}
This model is built on Llama 3.1 8B Instruct and follows the same license.
This model is fine-tuned for improved safety. Users should evaluate model outputs for their specific use cases and apply additional safety measures as needed.