Converting Transformers model to Tensorflow
I am trying to convertdbmdz/bert-base-turkish-uncasedto tensorflow model (.pb). It contains tf_model.h5 file. While conversion goes on, I get a following error:Must pass eitherconfig(PretrainedConfig) orconfig(dict)I could not solve this issue. Could you please help me to handle this? Thanks.
2020-10-19T15:06:31Z
You should not have to do anythin usingfrom_pretrainedexcept usingfrom_pt=True.
2020-10-20T13:00:29Z
Anything was used related tofrom_pretrainedI tried to convert fromtf_model.h5to tensorflow model. Is.h5file keras model, isn’t it?Is there any instruction to convert pytorch model (.bin) or giventf_model.h5to tensorflow model(.pb)?Relevant model is:huggingface.codbmdz/bert-base-turkish-uncased · Hugging FaceWe’re on a journey to advance and democratize artificial intelligence through open source and open science.