[tokenizer] sanitize saved config (#21483)

* [tokenizer] sanitize saved config

* rm config["name_or_path"] test
This commit is contained in:
Stas Bekman
2023-02-07 10:51:45 -08:00
committed by GitHub
parent 67d074874d
commit b9af152efb
2 changed files with 4 additions and 2 deletions

View File

@@ -230,8 +230,6 @@ class AutoTokenizerTest(unittest.TestCase):
# Check the class of the tokenizer was properly saved (note that it always saves the slow class).
self.assertEqual(config["tokenizer_class"], "BertTokenizer")
# Check other keys just to make sure the config was properly saved /reloaded.
self.assertEqual(config["name_or_path"], SMALL_MODEL_IDENTIFIER)
def test_new_tokenizer_registration(self):
try: