This repository is the official implementation for the paper: SEPS: A Separability Measure for Robust Unlearning in LLMs
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(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.shThis 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!