Load and test a locally pretrained model on the text regression

After a lot of research I couldn’t find an answer to this question:

I have a local model that was pre trained on the text regression task
and this model makes the prediction with a single output (decimal number between 0 and 1)
so how can I load this model and test it? using which class?
without any modification on the architecture of the model

thank you