question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Converting Tensorflow Checkpoints" document has wrong link in v4.2.0+

See original GitHub issue

Environment info

  • transformers version: v4.2.0+

Who can help

documentation: @sgugger

Information

I’d like to convert BERT ckpt to PyTorch, and read Converting Tensorflow Checkpoints document.

It seems that the link to convert_bert_original_tf_checkpoint_to_pytorch.py is outdated.

It is linked to https://huggingface.co/transformers/converting_tensorflow_models.html, but convert_bert_original_tf_checkpoint_to_pytorch.py is now placed in https://github.com/huggingface/transformers/blob/master/src/transformers/models/bert/convert_bert_original_tf_checkpoint_to_pytorch.py (I found the information in https://github.com/huggingface/transformers/issues/9556).

It seems that in https://github.com/huggingface/transformers/pull/9217 the document is updated to use a prefix to get the release variable. However, perhaps the document is not yet changed to match the folder structure in v4?

Sorry if I misunderstand something.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
LysandreJikcommented, Jan 26, 2021

Merged, thanks! No worries for the delay!

0reactions
forest1988commented, Jan 26, 2021

@LysandreJik Thank you for merging and giving me your kind words!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Model conversion overview | TensorFlow Lite
This section provides guidance for converting your TensorFlow models to the TensorFlow Lite model format. Note: If you don't have a model to ......
Read more >
Share a model - Hugging Face
Converting a checkpoint for another framework is easy. Make sure you have PyTorch and TensorFlow installed (see here for installation instructions), ...
Read more >
Save tensorflow checkpoint to .pb protobuf file - Stack Overflow
Try the below code to convert meta to pb file: import tensorflow as tf #Step 1 #import the model metagraph saver ...
Read more >
Converting a TensorFlow Model - OpenVINO™ Documentation
Converting Non-Frozen Model Formats¶. There are three ways to store non-frozen TensorFlow models and convert them by Model Optimizer: Checkpoint. In this case, ......
Read more >
Save, Load and Inference From TensorFlow Frozen Graph
Saving checkpoint is easy, you just have to use tf.train.Saver and everything should be straightforward. In my code, I wrapped saving checkpoint ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found