How to load my own pretrained model to huggingface code

hello

i trained a bert-large model using my own code and I saved my model in a .pt format.
now I want to use it for FT QA SQUAD training task.
a.k.a: load my model using AutoModelForQuestionAnswering.from_pretrained(…) method

I don’t know how to do this since from_pretrained() method asks for a .json file
can someone help me?

Thank you

You can look at this