diff --git a/pytorch_transformers/modeling_utils.py b/pytorch_transformers/modeling_utils.py index 3e8d2fbb1a..66bfe99d85 100644 --- a/pytorch_transformers/modeling_utils.py +++ b/pytorch_transformers/modeling_utils.py @@ -78,7 +78,7 @@ class PretrainedConfig(object): self.to_json_file(output_config_file) @classmethod - def from_pretrained(cls, pretrained_model_name_or_path, *args, **kwargs): + def from_pretrained(cls, pretrained_model_name_or_path, **kwargs): r""" Instantiate a PretrainedConfig from a pre-trained model configuration. Params: