Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wj-Mcat committed Dec 26, 2022
1 parent 941d42d commit 70a8828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions paddlenlp/transformers/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ def __getattr__(self, name):
result = getattr(self.config, name)

logger.warning(
f"do not access config from `model.{name}` which will be deprecated after v2.6.0, "
f"you should use: `model.config.{name}`"
f"Do not access config from `model.{name}` which will be deprecated after v2.6.0, "
f"Instead, do `model.config.{name}`"
)
return result

Expand Down
4 changes: 1 addition & 3 deletions tests/transformers/test_modeling_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ class ModelTesterMixin:
test_resize_position_embeddings = False
test_mismatched_shapes = True
test_missing_keys = True

test_model_compatibility_keys = False

use_test_inputs_embeds = False
use_test_model_name_list = True
is_encoder_decoder = False
Expand Down Expand Up @@ -551,7 +549,7 @@ def test_for_missed_attribute(self):
if type(new_value) != type(old_value):
continue

assert old_value == new_value
self.assertEqual(old_value, new_value)


class ModelTesterPretrainedMixin:
Expand Down

0 comments on commit 70a8828

Please sign in to comment.