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

Updated bias model training code #29

Merged
merged 10 commits into from
Sep 3, 2021
Merged

Updated bias model training code #29

merged 10 commits into from
Sep 3, 2021

Conversation

laurahanu
Copy link
Collaborator

@laurahanu laurahanu commented Sep 3, 2021

  • updated dataloaders to be able to load and merge both training datasets from the 1st and 2nd Jigsaw challenges (mentioned in Detoxify Roadmap #26).
  • new config for updated unbiased model
  • script to convert the weights saved during training to the format expected by Detoxify
  • updated unbiased model

"config": checkpoint["hyper_parameters"]["config"],
}
for k, v in checkpoint["state_dict"].items():
name = k[6:] # remove `model.`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check it actually starts with model. here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does

@laurahanu laurahanu merged commit bdc84bd into master Sep 3, 2021
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.

2 participants