Instructions to use Sayonaraponytail/TEAR-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Sayonaraponytail/TEAR-SFT with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct") model = PeftModel.from_pretrained(base_model, "Sayonaraponytail/TEAR-SFT") - Notebooks
- Google Colab
- Kaggle
TEAR
This repository provides the supervised fine-tuning (SFT) LoRA adapter for TEAR: Temporal-aware Automated Red-teaming for Text-to-Video Models.
We are publicly releasing the SFT LoRA weights to support research on the safety of text-to-video models. The PPO LoRA weights are not included in this release, as we are currently working on an extension of TEAR. We will release the PPO LoRA weights after the extension work is published.
Model details
- Base model: meta-llama/Meta-Llama-3-8B-Instruct
- Training stage: supervised fine-tuning (SFT)
- Adapter: LoRA, rank 16, alpha 32, applied to
q_proj,k_proj,v_proj, ando_proj
This repository contains the SFT adapter weights. Load the base model separately, then attach this adapter:
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
adapter_id = "Sayonaraponytail/TEAR-SFT"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
model = PeftModel.from_pretrained(base_model, adapter_id)
model.eval()
Access to the base model is subject to Meta's access requirements and the Meta Llama 3 Community License. Built with Meta Llama 3.
Code
- Downloads last month
- -
Model tree for Sayonaraponytail/TEAR-SFT
Base model
meta-llama/Meta-Llama-3-8B-InstructPaper for Sayonaraponytail/TEAR-SFT
Paper • 2511.21145 • Published