diff --git a/vllm/transformers_utils/tokenizers/mistral.py b/vllm/transformers_utils/tokenizers/mistral.py index 788133059f12d..aae10d3ee25fd 100644 --- a/vllm/transformers_utils/tokenizers/mistral.py +++ b/vllm/transformers_utils/tokenizers/mistral.py @@ -30,12 +30,12 @@ def find_tokenizer_file(files: List[str]): matched_files = [file for file in files if file_pattern.match(file)] if len(matched_files) > 1: raise OSError(f"Found {len(matched_files)} files matching the " - "pattern: {matched_files}. Make sure only one Mistral " - "tokenizer is present in {tokenizer_name}.") + f"pattern: {file_pattern}. Make sure only one Mistral " + f"tokenizer is present in {files}.") elif len(matched_files) == 0: raise OSError(f"Found {len(matched_files)} files matching the " - "pattern: {matched_files}. Make sure that a Mistral " - "tokenizer is present in {tokenizer_name}.") + f"pattern: {file_pattern}. Make sure that a Mistral " + f"tokenizer is present in {files}.") return matched_files[0]