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

Quickfix loading pred head #256

Merged
merged 4 commits into from
Feb 25, 2020
Merged

Quickfix loading pred head #256

merged 4 commits into from
Feb 25, 2020

Conversation

tholor
Copy link
Member

@tholor tholor commented Feb 20, 2020

Loading saved prediction heads individually from FARM files was buggy. In particular the usage of the parent constructor was wrong for some heads.

In addition the docs were a bit unclear: we expect the path to the Prediction Head config (e.g. my-bert/prediction_head_0_config.json), if we want to load from a FARM model and not the model dir itself.

Midterm we might wanna unify this a bit more by allowing to pass the FARM model dir instead of the PH config.

@tholor tholor added bug Something isn't working part: model labels Feb 20, 2020
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

tholor added a commit that referenced this pull request Feb 25, 2020
* fix loading ph directly from saved ph file in FARM format

* fix class name

* update docs
@tholor tholor merged commit a52a15d into master Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working part: model
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants