Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9 forgetting pipeline #18

Draft
wants to merge 34 commits into
base: develop
Choose a base branch
from
Draft

9 forgetting pipeline #18

wants to merge 34 commits into from

Conversation

jack89roberts
Copy link
Contributor

@jack89roberts jack89roberts commented Apr 25, 2024

Adds a Forgetter class for Gradient Ascent, Gradient Difference, KL, and "I don't know forgetters", which all inherit from the HuggingFace Trainer, only modifying compute_loss.

TODOs

Configs/Job Submission

All needs testing:

  • New top-level config structure (see here) + associated changes for converting it to individual configs etc.
  • The top level to individual full/retain/forget configs generation code in arcsf.config.experiment has been adapted for the new config/job submission structure. It generates separate full, retain, and forget train scripts and configs.
  • train.py has been modified to accept the new config structure and to work for both training and forgetting jobs, but not checked/tested at all yet.

Forgetting Evaluation

  • Currently it's not possible to do forgetting with an eval_dataset / any kind of evaluation during training as the evaluate function in the trainer class doesn't know what to when given 2 data inputs (forget / retain). The evaluate function in arcsf.forget.base need to be implemented to use Jack D's evaluation code (and the trainer should be initialised with eval_dataset set to whatever our appropriate eval dataset instance is).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant