Loading Transformer Pretrained Model via URL


I uploaded a pretrained model into a web server. When loading a transformer pretrained model via URL as described in this API documentation:

I still get invalid model telling me that the parameter must be a valid file path or a huggingface model id. How to properly load a pretrained model using a URL from a web server?

Thank you!