Downloads · 30 days
117
11% of all-time downloads
OPTML-Group/SimNPO-WMDP-llama3-8b
SimNPO-WMDP-llama3-8b is a text generation model from OPTML-Group. 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.
- Unlearning: - Task: 🤗datasets/cais/wmdp - Method: SimNPO - Origin Model: 🤗meta-llama/Meta-Llama-3-8B-Instruct - Code Base: github.com/OPTML-Group/Unlearn-Simple
Downloads · 30 days
117
11% of all-time downloads
All-time downloads
1.1K
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
This model uses the SimNPO unlearning algorithm with the following optimization objective:
$$\ell_{SimNPO}(\mathbf{\theta}) = \mathbb{E}{(x, y) \in \mathcal{D}f}\left[-\frac{2}{\beta}\log\sigma\left(-\frac{\beta}{|y|}\log\pi{\mathbf{\theta}}(y|x) - \gamma\right)\right] + \lambda \mathbb{E}{(x, y) \in \mathcal{D}r}[-\log\pi{\mathbf{\theta}} (y|x)]$$
Unlearning hyper-parameters:
3.5e-50.11.00.0import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("OPTML-Group/SimNPO-WMDP-llama3-8b", use_flash_attention_2=True, torch_dtype=torch.bfloat16, trust_remote_code=True)
If you use this model in your research, please cite:
@article{fan2024simplicity,
title={Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearning},
author={Fan, Chongyu and Liu, Jiancheng and Lin, Licong and Jia, Jinghan and Zhang, Ruiqi and Mei, Song and Liu, Sijia},
journal={arXiv preprint arXiv:2410.07163},
year={2024}
}
Reporting issues with the model: github.com/OPTML-Group/Unlearn-Simple