Open xhluca opened 2 years ago
@eisenjulian
@xhluca Hi, I'm a person who want to convert tensorflow retriever model to pytorch model for testing. I wonder if this work has been completed. and if so, could you share the model for me? Thank you.
Sorry I'm not sure, id recommend taking a look at the Huggingface repo.
@xhluca I found it in huggingface. Thank you. Do you know how to inferece and train the model? There is no description for it.
I am not aware of it. I just finetune it using in-batch negative sampling following papers like DPR (a lot of examples by huggingface on how to do that), there might be ways to finetune TAPAS specifically but I am not aware of them.
I needed to convert the models to torch, but I can't figure out whether
bert/encoder
corresponds to the question encoder andbert_1/encoder
to the table encoder, or the other way around.The variable names can be found when you directly read the ckpt file:
Which gives you the following:
It is not clear from reading the code which one is the question encoder, which makes it difficult to use the model on a different dataset.