From 10ee4b3684f8f9e919cdf46971d57bf82f4c89f5 Mon Sep 17 00:00:00 2001 From: Prashant Gupta Date: Fri, 11 Oct 2024 17:03:48 -0700 Subject: [PATCH] [bugfix] fix f-string for error (#9295) Signed-off-by: Prashant Gupta Signed-off-by: Amit Garg --- vllm/transformers_utils/tokenizers/mistral.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]