Hello! I have fine-tuned multilingual BERT on my Russian texts for classification and saved the model and now I have: checkpoint, model.data-00000-of-00001, model.meta, valid_log, classes.dict, model.index,train_log.
But I don`t know what should I change inside my config file for model in order to use my fine-tuned model. I tried:
bert_config = read_json('my_config.json')
bert_config['chainer']['pipe']['load_path'] = './finetuned_model/model'
bert_config['metadata']['variables']['MODEL_PATH'] = './finetuned_model'
But the error “attempt to get argmax of an empty sequence” keeps popping up.
How do I use my trained weights in a config file to make inference?