Skip to content

Commit

Permalink
🎨 fix vars
Browse files Browse the repository at this point in the history
Signed-off-by: Prashant Gupta <[email protected]>
  • Loading branch information
prashantgupta24 committed Oct 11, 2024
1 parent bf089a3 commit 96e3742
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vllm/transformers_utils/tokenizers/mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
f"pattern: {matched_files}. Make sure only one Mistral "
f"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 "
f"pattern: {matched_files}. Make sure that a Mistral "
f"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]

Expand Down

0 comments on commit 96e3742

Please sign in to comment.