"vscode:/vscode.git/clone" did not exist on "040283170cd559b59b8eb37fe9fe8e99ff7edcbc"
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:
if type(config.decoder) is not type(config.encoder): # noqa: E721
logger.warning(
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 "
"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