"git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "1cbf80dab6611efa305345fd8047bf6e2e4cbe6a"
Unverified Commit 0d00c08d authored by Will Frey's avatar Will Frey Committed by GitHub
Browse files

Fix typo in tokenization_auto.py (#12896)

Fix `config.decoder.__class` -> `config.decoder.__class__`
parent c3287ebd
...@@ -556,7 +556,7 @@ class AutoTokenizer: ...@@ -556,7 +556,7 @@ class AutoTokenizer:
if type(config.decoder) is not type(config.encoder): # noqa: E721 if type(config.decoder) is not type(config.encoder): # noqa: E721
logger.warning( logger.warning(
f"The encoder model config class: {config.encoder.__class__} is different from the decoder model " f"The encoder model config class: {config.encoder.__class__} is different from the decoder model "
f"config class: {config.decoder.__class}. It is not recommended to use the " f"config class: {config.decoder.__class__}. It is not recommended to use the "
"`AutoTokenizer.from_pretrained()` method in this case. Please use the encoder and decoder " "`AutoTokenizer.from_pretrained()` method in this case. Please use the encoder and decoder "
"specific tokenizer classes." "specific tokenizer classes."
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment