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

Fixed conversion of BertForMaskedLM to transformers #555

Conversation

himanshurawlani
Copy link
Contributor

Fix for issue #533

Made the following changes:

  1. Added layer_dims attribute in FARM's BertLMHead class as described in the issue.
  2. Added check for the conversion of AdaptiveModel with 2 prediction heads (where the first prediction head is "language_modelling") in AdaptiveModel.convert_to_transformers()

Copy link
Contributor

@Timoeller Timoeller left a comment

Choose a reason for hiding this comment

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

Looking good, thanks for this simple yet powerful addition.

@Timoeller Timoeller merged commit 23d3177 into deepset-ai:master Sep 24, 2020
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