KEMBAR78
bert: properly mention deprecation of TF2 conversion script by stefan-it · Pull Request #16171 · huggingface/transformers · GitHub
Skip to content

Conversation

@stefan-it
Copy link
Collaborator

Hi,

after training some BERT models with the TF2 implementation from the TF models repo, I just made the following observations:

The training code was deprecated a while ago, and now lives under the legacy namespace. I have trained models with this "legacy" implementation but the TF2 conversion script is no longer working.

I did some debugging, trained a few models and found out that the latest working version is v2.3.

For that reason, I have just updated the description in the TF2 conversion script.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 15, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Thank you for that, @stefan-it! Do you know if it would be hard to have the script support models trained with TF's BERT >2.3?

@stefan-it
Copy link
Collaborator Author

Hi @LysandreJik , unfortunately, there's no working example code for pre-training in the TF models repo yet (I did some experiments, but I was not able to get a working setup). However, there's a Roformer code (https://github.com/tensorflow/models/tree/master/official/projects/roformer) available and training is working.

@LysandreJik
Copy link
Member

Sounds good, let's merge the PR like this then. Thanks for your contribution!

@LysandreJik LysandreJik merged commit 33cb211 into huggingface:main Apr 7, 2022
@stefan-it stefan-it deleted the bert-tf2-conversion-script-deprecation branch April 8, 2022 12:42
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.

3 participants