'convert_tf_checkpoint_to_pytorch.py' file is missing
Hi all,
I pre-trained BERT base model on my domain-specific corpus using ```https://github.com/google-research/bert```  ```create_pretraining_data.py``` and ```run_pretraining.py```.
Now, I want to use it with this ```pytorch-transformers```. I saw from this page https://devhub.io/repos/huggingface-pytorch-pretrained-BERT that there is conversion script from tf checkpoints to ```pytorch_model.bin``` called ```convert_tf_checkpoint_to_pytorch.py``` but the file no longer exists.
Does anyone have solution? Thanks!

_PyTorch-pretrained-BERT_ is a older name of this library; now its name is **Transformers**.
You can check the latest docs of the library and install it from PyPi with `pip install transformers` (you have to install manually TensorFlow 2.0 and PyTorch as well through `pip install tensorflow==2.0.0` and `pip install torch`).

Said this, you can read [this](https://github.com/huggingface/transformers/blob/17ea43cf985829634bd86b36b44e5410c6f83e36/transformers/convert_bert_original_tf_checkpoint_to_pytorch.py) Python script whose goal is to convert BERT original TensorFlow checkpoint to PyTorch. The input of this script are the following three:
- the path to the TensorFlow checkpoint, through `--tf_checkpoint_path` parameter
- a JSON file which specifies the model architecture through `--bert_config_file` parameter
- the path to the output converted PyTorch model through `--pytorch_dump_path` parameter

> Hi all,
> I pre-trained BERT base model on my domain-specific corpus using `https://github.com/google-research/bert` `create_pretraining_data.py` and `run_pretraining.py`.
> Now, I want to use it with this `pytorch-transformers`. I saw from this page https://devhub.io/repos/huggingface-pytorch-pretrained-BERT that there is conversion script from tf checkpoints to `pytorch_model.bin` called `convert_tf_checkpoint_to_pytorch.py` but the file no longer exists.
> Does anyone have solution? Thanks!<|||||>Thanks @TheEdoardo93!