Answers for "convert tensorflow checkpoint to pytorch"

0

convert tensorflow checkpoint to pytorch

export BERT_BASE_DIR=/path/to/bert/uncased_L-12_H-768_A-12

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
Posted by: Guest on June-08-2020

Code answers related to "convert tensorflow checkpoint to pytorch"

Python Answers by Framework

Browse Popular Code Answers by Language