I need to load ckpt file from google-search’s bert ckpt.
I have read all questions related to this and tried some methods but it seem still doesn’t work .
ckpt files are like this:

I have tried method like:
bert_config = transformers.BertConfig.from_json_file('./bert/bert_config.json')
bert = transformers.TFBertModel.from_pretrained('./bert/bert_model.ckpt', config=bert_config)

I find a method said that use TFBertForPreTraining instead TFBertModel
bert_config = transformers.BertConfig.from_json_file('./bert/bert_config.json')
bert = transformers.TFBertModel.from_pretrained('./bert/bert_model.ckpt', config=bert_config)

but it still doesn’t work.
Also ,
 bert.load_weights('./bert/bert_model.ckpt')

doesn’t work too.
I really can’t understand why bert.load_weights('./bert/bert_model.ckpt') can’t work.Maybe rewrite it?
so how can a model base on tf2 can load a ckpt file?