This repository was archived by the owner on Apr 8, 2025. It is now read-only.
Add support for ELECTRA#349
Merged
tholor merged 4 commits intodeepset-ai:masterfrom May 7, 2020
stefan-it:master
Merged
Conversation
brandenchan
approved these changes
May 7, 2020
Contributor
brandenchan
left a comment
There was a problem hiding this comment.
This looks good to me! The structure of the Electra LM is like that of XLNet and in my tests I was able to get Electra to train on doc classification.
Thanks for your effort on this PR @stefan-it !
tholor
approved these changes
May 7, 2020
Member
tholor
left a comment
There was a problem hiding this comment.
Looking good! Thanks for working on this!
Contributor
|
Thanks @stefan-it 🥇 |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Hi,
this PR adds the previously introduced ELECTRA pre-training approach into FARM:
Implementation notes
The Hugging Face Transformer library was updated to the latest 2.8 version to support ELECTRA model. Like DistilBERT, an additional pooler needs to be defined to get a one vector per sequence representation.
Experiments
I did pre-liminary experiments with CoNLL-2003 for NER. The configuration can be found under
experiments/electra_eval/conll2003_en_config.json.Result for one run on using the ELECTRA base model: 94.30% (dev) and 89.86% (test).