[Bugfix] Suggest upgrading Transformers for tokenizer class errors (#38099)
Signed-off-by: Lidang-Jiang <lidangjiang@gmail.com>
This commit is contained in:
@@ -190,7 +190,10 @@ class CachedHfTokenizer(TokenizerLike):
|
||||
"is a custom tokenizer not yet available in the "
|
||||
"HuggingFace transformers library, consider "
|
||||
"setting `trust_remote_code=True` in LLM or using "
|
||||
"the `--trust-remote-code` flag in the CLI."
|
||||
"the `--trust-remote-code` flag in the CLI. If the "
|
||||
"model was created with a newer version of "
|
||||
"transformers, consider upgrading: "
|
||||
"`uv pip install --upgrade transformers`"
|
||||
)
|
||||
raise RuntimeError(err_msg) from e
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user