From 7aa1f61ddc3c9e8b692157434c91a7ab300f8402 Mon Sep 17 00:00:00 2001 From: Stas Bekman Date: Fri, 13 Nov 2020 22:09:20 -0800 Subject: [PATCH 1/2] [doc] typo fix @sgugger --- src/transformers/modeling_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/modeling_utils.py b/src/transformers/modeling_utils.py index 69ca19d80a96d..42fbe72ff5aa9 100755 --- a/src/transformers/modeling_utils.py +++ b/src/transformers/modeling_utils.py @@ -812,7 +812,7 @@ def from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs): output_loading_info(:obj:`bool`, `optional`, defaults to :obj:`False`): Whether ot not to also return a dictionary containing missing keys, unexpected keys and error messages. local_files_only(:obj:`bool`, `optional`, defaults to :obj:`False`): - Whether or not to only look at local files (e.g., not try doanloading the model). + Whether or not to only look at local files (i.e. do not try to download the model). revision(:obj:`str`, `optional`, defaults to :obj:`"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so ``revision`` can be any From 1d7df7ee03d61afea05cc476983c20950c34f85e Mon Sep 17 00:00:00 2001 From: Stas Bekman Date: Sat, 14 Nov 2020 08:47:25 -0800 Subject: [PATCH 2/2] Update src/transformers/modeling_utils.py Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> --- src/transformers/modeling_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/modeling_utils.py b/src/transformers/modeling_utils.py index 42fbe72ff5aa9..793f429f6e9af 100755 --- a/src/transformers/modeling_utils.py +++ b/src/transformers/modeling_utils.py @@ -812,7 +812,7 @@ def from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs): output_loading_info(:obj:`bool`, `optional`, defaults to :obj:`False`): Whether ot not to also return a dictionary containing missing keys, unexpected keys and error messages. local_files_only(:obj:`bool`, `optional`, defaults to :obj:`False`): - Whether or not to only look at local files (i.e. do not try to download the model). + Whether or not to only look at local files (i.e., do not try to download the model). revision(:obj:`str`, `optional`, defaults to :obj:`"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so ``revision`` can be any