Skip to content

Repository files navigation

SEPS: A Separability Measure for Robust Unlearning in LLMs

This repository is the official implementation for the paper: SEPS: A Separability Measure for Robust Unlearning in LLMs

📜 Paper

Installation

We follow the TOFU Benchmark to install the required dependencies, please run the following commands:

conda create -n tofu python=3.10
conda activate tofu
conda install pytorch pytorch-cuda=11.8 -c pytorch -c nvidia
conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit
pip install -r requirements.txt
pip install flash-attn --no-build-isolation

Fictitious unlearning scenario

(1) LLM-as-Judge Score with GPT4

bash scripts/tofu/eval_gpt.sh

(2) LLM-as-Judge Score with Meta-Llama-3-8B-Instruct

bash scripts/tofu/eval_llama.sh

Acknowledgments

This repository builds upon selected components of the codebase from A Closer Look at Machine Unlearning for Large Language Models and extends it with our own experiments. We appreciate their outstanding work!

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages