Llama-3.1-8B-Instruct, TOFU-para full (seed 0)
Built with Llama. Llama 3.1 is licensed under the Llama 3.1 Community License,
Copyright © Meta Platforms, Inc. All Rights Reserved. See LICENSE.
Part of the TOFU-para collection, which separates untraining (removing the
specific samples an unlearning method was given) from unlearning (removing the underlying
knowledge, which the model also learned in other wordings). Data:
sungjuncho/TOFU-para (TOFU with name typos corrected, plus five
fact-checked paraphrase versions of every QA pair; para1/para2 below are versions 1 and 2).
Full finetune of Llama-3.1-8B-Instruct on all of TOFU (4,000 QA pairs, typo-corrected), original wording only.
Control: the standard TOFU finetune, without paraphrases. Matches open-unlearning's published tofu_Llama-3.1-8B-Instruct_full closely (forget Q-A prob. 0.997 vs 0.991, model utility 0.634 vs 0.628).
| Training data | full (4,000 rows) |
| Training | 5 epochs, lr 1e-5, effective batch 32, weight decay 0.01, Meta's Llama 3.1 chat template; seed 0 (the seed only changes the data order) |
| Code | open-unlearning src/train.py; exact config in train_config/ |
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("sungjuncho/Llama-3.1-8B-Instruct-TOFU-para-full-seed0", torch_dtype="bfloat16")
tokenizer = AutoTokenizer.from_pretrained("sungjuncho/Llama-3.1-8B-Instruct-TOFU-para-full-seed0")