From e1c153cbaa2f4dc6fa10aec8e3afb38c1b437947 Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Tue, 19 Apr 2022 23:09:03 +0200 Subject: [PATCH] [Typo] Fix typo in modeling utils (#16840) --- 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 a721f550a9f4ea..7a9eac2210286d 100644 --- a/src/transformers/modeling_utils.py +++ b/src/transformers/modeling_utils.py @@ -2068,7 +2068,7 @@ def _fix_key(key): model_to_load = getattr(model, cls.base_model_prefix) if any(key in expected_keys_not_prefixed for key in loaded_keys): raise ValueError( - "The state dictionary of the model you are training to load is corrupted. Are you sure it was " + "The state dictionary of the model you are trying to load is corrupted. Are you sure it was " "properly saved?" )