Looking at the source code 26, I do not think it is possible to load models from external URLs other than the HuggingFace bucket.

  
      github.com
  
  
    huggingface/transformers/blob/master/src/transformers/modeling_utils.py#L613-L645 26

if pretrained_model_name_or_path is not None:
    if os.path.isdir(pretrained_model_name_or_path):
        if from_tf and os.path.isfile(os.path.join(pretrained_model_name_or_path, TF_WEIGHTS_NAME + ".index")):
            # Load from a TF 1.0 checkpoint
            archive_file = os.path.join(pretrained_model_name_or_path, TF_WEIGHTS_NAME + ".index")
        elif from_tf and os.path.isfile(os.path.join(pretrained_model_name_or_path, TF2_WEIGHTS_NAME)):
            # Load from a TF 2.0 checkpoint
            archive_file = os.path.join(pretrained_model_name_or_path, TF2_WEIGHTS_NAME)
        elif os.path.isfile(os.path.join(pretrained_model_name_or_path, WEIGHTS_NAME)):
            # Load from a PyTorch checkpoint
            archive_file = os.path.join(pretrained_model_name_or_path, WEIGHTS_NAME)
        else:
            raise EnvironmentError(
                "Error no file named {} found in directory {} or `from_tf` set to False".format(
                    [WEIGHTS_NAME, TF2_WEIGHTS_NAME, TF_WEIGHTS_NAME + ".index"],
                    pretrained_model_name_or_path,
                )
            )
    elif os.path.isfile(pretrained_model_name_or_path) or is_remote_url(pretrained_model_name_or_path):
        archive_file = pretrained_model_name_or_path


  This file has been truncated. show original

  
  
    
    
  
  


That being said, why don’t you upload your model 16 to the HuggingFace model hub?