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 16, 10:45 UTC
[bugfix] fix f-string for error (#9295)
Signed-off-by: Prashant Gupta <prashantgupta@us.ibm.com>
Prashant Gupta committed
Oct 11, 2024 at 17:03 UTC
d11b46f3a5aba3371456bf7ae7b1332aa14501d8
1 file changed
+4
-4
vllm/transformers_utils/tokenizers/mistral.py
+4
-4
@@ -30,12 +30,12 @@ def find_tokenizer_file(files: List[str]):
30
matched_files = [file for file in files if file_pattern.match(file)]
31
if len(matched_files) > 1:
32
raise OSError(f"Found {len(matched_files)} files matching the "
33
- "pattern: {matched_files}. Make sure only one Mistral "
34
- "tokenizer is present in {tokenizer_name}.")
33
+ f"pattern: {file_pattern}. Make sure only one Mistral "
34
+ f"tokenizer is present in {files}.")
35
elif len(matched_files) == 0:
36
raise OSError(f"Found {len(matched_files)} files matching the "
37
- "pattern: {matched_files}. Make sure that a Mistral "
38
- "tokenizer is present in {tokenizer_name}.")
37
+ f"pattern: {file_pattern}. Make sure that a Mistral "
38
+ f"tokenizer is present in {files}.")
39
40
return matched_files[0]
41