mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-01 20:37:30 +08:00
[Bugfix] Fix regex compile display format (#15368)
Signed-off-by: Kebe <mail@kebe7jun.com>
This commit is contained in:
parent
2914006fe0
commit
432cf22a6a
@ -124,13 +124,15 @@ 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 "
|
||||
f"pattern: {file_pattern}. Make sure only one Mistral "
|
||||
f"tokenizer is present in {files}.")
|
||||
raise OSError(
|
||||
f"Found {len(matched_files)} files matching the "
|
||||
f"pattern: `{file_pattern.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 "
|
||||
f"pattern: {file_pattern}. Make sure that a Mistral "
|
||||
f"tokenizer is present in {files}.")
|
||||
raise OSError(
|
||||
f"Found {len(matched_files)} files matching the "
|
||||
f"pattern: `{file_pattern.pattern}`. Make sure that a Mistral "
|
||||
f"tokenizer is present in {files}.")
|
||||
|
||||
return matched_files[0]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user