transformers-cli convert --model_type bert \
  --tf_checkpoint $BERT_BASE_DIR/bert_model.ckpt \
  --config $BERT_BASE_DIR/bert_config.json \
  --pytorch_dump_output $BERT_BASE_DIR/pytorch_model.bin
```
You can download Google's pre-trained models for the conversion here.
ALBERT
Convert TensorFlow model checkpoints of ALBERT to PyTorch using the
convert_albert_original_tf_checkpoint_to_pytorch.py script.
The CLI takes as input a TensorFlow checkpoint (three files starting with model.ckpt-best) and the accompanying
configuration file (albert_config.json), then creates and saves a PyTorch model. To run this conversion you will
need to have TensorFlow and PyTorch installed.
Here is an example of the conversion process for the pre-trained ALBERT Base model:
```bash
export ALBERT_BASE_DIR=/path/to/albert/albert_base
