ckpt to torch
Others
2020-10-15 17:20:46
views: null
Convert the tensorflow version of the pre-trained BERT model to the pytorch version of the pre-trained model
export BERT_BASE_DIR=/path/to/bert/uncased_L-12_H-768_A-12
transformers bert $ BERT_BASE_DIR / bert_model.ckpt $ BERT_BASE_DIR / bert_config.json $ BERT_BASE_DIR / pytorch_model.bin
Origin blog.csdn.net/u011939633/article/details/108710186