Upload README.md with huggingface_hub
Browse files9 unmodified lines10111213141511 unmodified lines272829303132333435363738394041424344454647482 unmodified lines515253545556579 unmodified lines# Phi-1.5 TOFU Unlearning ModelThis model is a variant of the Phi-1.5 model, fine-tuned on the TOFU (Task of Fictitious Unlearning) dataset and then subjected to various unlearning algorithms.## Model Details11 unmodified lines## RevisionsThe model is organized into multiple revisions, each representing a checkpoint during the unlearning process. The revision names follow the pattern `checkpoint-X`, where X is the checkpoint number.## Loading the ModelTo load a specific revision of this model, you can use the following code:```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizer# Replace 'checkpoint-X' with the desired revision (e.g., 'checkpoint-12')revision = "checkpoint-X"model = AutoModelForCausalLM.from_pretrained("locuslab/{model_name}", revision=revision)tokenizer = AutoTokenizer.from_pretrained("locuslab/{model_name}", revision=revision)```## TOFU DatasetTOFU (Task of Fictitious Unlearning) is a dataset designed for training and evaluating unlearning algorithms in language models. It simulates scenarios where certain information needs to be "forgotten" or removed from the model's knowledge.2 unmodified lines1. The base Phi-1.5 model was first fine-tuned on the TOFU dataset (checkpoint-625).2. Various unlearning algorithms were then applied to this fine-tuned model to selectively "forget" certain information.3. The results of these unlearning processes are captured in the different revisions of this model.## Usage and Limitations9 unmodified lines101112131415161711 unmodified lines2930313233343536373839404142434445464748495051522 unmodified lines555657585960619 unmodified lines# Phi-1.5 TOFU Unlearning Model**IMPORTANT: This model's checkpoints are stored in separate branches. You MUST specify a revision when loading the model to access a specific checkpoint.**This model is a variant of the Phi-1.5 model, fine-tuned on the TOFU (Task of Fictitious Unlearning) dataset and then subjected to various unlearning algorithms.## Model Details11 unmodified lines## RevisionsThe model is organized into multiple revisions, each representing a checkpoint during the unlearning process. The revision names follow the pattern `checkpoint-X`, where X is the checkpoint number. Each revision is stored in a separate branch.## Loading the ModelTo load a specific revision of this model, you MUST specify the revision parameter. Use the following code:```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizer# The 'revision' parameter is REQUIRED. Replace 'checkpoint-X' with the desired revision (e.g., 'checkpoint-12')revision = "checkpoint-X"model = AutoModelForCausalLM.from_pretrained("locuslab/{model_name}", revision=revision)tokenizer = AutoTokenizer.from_pretrained("locuslab/{model_name}", revision=revision)```**Note: If you don't specify a revision, you will not be able to load the model correctly.**## TOFU DatasetTOFU (Task of Fictitious Unlearning) is a dataset designed for training and evaluating unlearning algorithms in language models. It simulates scenarios where certain information needs to be "forgotten" or removed from the model's knowledge.2 unmodified lines1. The base Phi-1.5 model was first fine-tuned on the TOFU dataset (checkpoint-625).2. Various unlearning algorithms were then applied to this fine-tuned model to selectively "forget" certain information.3. The results of these unlearning processes are captured in the different revisions (branches) of this model.## Usage and Limitations
README.md+8-4