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

Tensorflow Checkpoints #2

Closed
cbalkig opened this issue Feb 17, 2020 · 4 comments
Closed

Tensorflow Checkpoints #2

cbalkig opened this issue Feb 17, 2020 · 4 comments

Comments

@cbalkig
Copy link

cbalkig commented Feb 17, 2020

Hi,

Is it possible to share TF checkpoints?
Thanx a lot.

@julien-c
Copy link

FYI, in case you're using huggingface transformers, you should be able to load the PyTorch weights into a TF2 model, using the from_pt=True flag.

(of course, we could also convert the weights pretty easily and upload to S3, but in the meantime, you have this option)

@cansozbir
Copy link

@julien-c I tried to run this

TFBertModel.from_pretrained("dbmdz/bert-base-turkish-cased", from_pt=True)
and got the error below.

OSError: Loading a TF model from a PyTorch checkpoint is not supported when using a model identifier name.

I'm trying this in google-colab with tensorflow 2.1.0 and gpu acclerator. Am I missing something?

@stefan-it
Copy link
Owner

@balki7 Sure, here are the original TF checkpoints (best checkpoint, incl. config and vocab):

wget https://schweter.eu/cloud/bert-base-turkish-cased/bert-base-turkish-cased-tf.tar.gz

# sha256 bert-base-turkish-cased-tf.tar.gz
# 8113d0aeb32a2e7bcd00027195a13622387ca9e2132d7f9a1b27389a0db26b96

@cbalkig
Copy link
Author

cbalkig commented Feb 22, 2020

@balki7 Sure, here are the original TF checkpoints (best checkpoint, incl. config and vocab):

wget https://schweter.eu/cloud/bert-base-turkish-cased/bert-base-turkish-cased-tf.tar.gz

# sha256 bert-base-turkish-cased-tf.tar.gz
# 8113d0aeb32a2e7bcd00027195a13622387ca9e2132d7f9a1b27389a0db26b96

Thank u so much Stefan.

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

No branches or pull requests

4 participants