hey @Sniper when you say it “doesn’t work” what do you mean exactly? can you share a stack trace with the error message?
if i am not mistaken, you need to provide the full path to the checkpoint (including the .index suffix), so something like the following might work:
bert_config = transformers.BertConfig.from_json_file('./bert/bert_config.json')
bert = transformers.TFBertModel.from_pretrained('./bert/bert_model.ckpt.index', config=bert_config)