Open
Conversation
Member
|
@adrian, do you want to do the initial review? |
Member
|
As for loading, I think the model should be stored as is (including the frozen parameters). Not sure what kind of "loading functionality" is required for this, though. Only the embedder is affected, right? |
AdrianKs
reviewed
Aug 24, 2020
Collaborator
AdrianKs
left a comment
There was a problem hiding this comment.
Looks good. Just some small points.
We should check if resuming still works correctly with frozen embeddings. Also we need to extend the package functionality (maybe not in this PR) to handle models with frozen embeddings.
48975fc to
57a651e
Compare
57a651e to
2317dbd
Compare
Contributor
Author
|
As it is now, models are saved with the frozen parameters and resuming the training works. |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Functionality to freeze embeddings during training as discussed with Adrian. A file containing ids for the entities or relations can be loaded, these embeddings are held constant during training. What is an open question is how the save/resume functionality for frozen models should be. Right now, the frozen and not-frozen parameters are saved. This requires loading functionality for a frozen model. An alternative would be to save the model as a standard model e.g. by unfreezing it first. This would, however, loose the optimizer state and a training process where parameters are held constant could not be continued.