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

Save/load trainable params in IntervenableBase methods #153

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aryamanarora
Copy link
Collaborator

Description

Add saving/loading of trainable parameters in the model (e.g. classification heads) to IntervenableModel.save() and IntervenableModel.load(). Draft PR since some tests are failing, will finalise tomorrow.

Testing Done

Saving/loading of Gemma 2B-IT for sequence classification works perfectly.

Checklist:

  • My PR title strictly follows the format: [Your Priority] Your Title
  • I have attached the testing log above
  • I provide enough comments to my code
  • I have changed documentations
  • I have added tests for my changes

@aryamanarora aryamanarora marked this pull request as draft May 2, 2024 06:03
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