A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 15, 17:15 UTC
[Bugfix] Fix regex compile display format (#15368)
Signed-off-by: Kebe <mail@kebe7jun.com>
Kebe committed
Mar 28, 2025 at 23:58 UTC
432cf22a6a1f800cf64e79a706639dbe163fbc18
1 file changed
+8
-6
vllm/transformers_utils/tokenizers/mistral.py
+8
-6
@@ -124,13 +124,15 @@ def find_tokenizer_file(files: List[str]):
124
125
matched_files = [file for file in files if file_pattern.match(file)]
126
if len(matched_files) > 1:
127
- raise OSError(f"Found {len(matched_files)} files matching the "
128
- f"pattern: {file_pattern}. Make sure only one Mistral "
129
- f"tokenizer is present in {files}.")
127
+ raise OSError(
128
+ f"Found {len(matched_files)} files matching the "
129
+ f"pattern: `{file_pattern.pattern}`. Make sure only one Mistral "
130
+ f"tokenizer is present in {files}.")
131
elif len(matched_files) == 0:
131
- raise OSError(f"Found {len(matched_files)} files matching the "
132
- f"pattern: {file_pattern}. Make sure that a Mistral "
133
- f"tokenizer is present in {files}.")
132
+ raise OSError(
133
+ f"Found {len(matched_files)} files matching the "
134
+ f"pattern: `{file_pattern.pattern}`. Make sure that a Mistral "
135
+ f"tokenizer is present in {files}.")
136
137
return matched_files[0]
138