Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
d11b46f3
Unverified
Commit
d11b46f3
authored
Oct 11, 2024
by
Prashant Gupta
Committed by
GitHub
Oct 11, 2024
Browse files
[bugfix] fix f-string for error (#9295)
Signed-off-by:
Prashant Gupta
<
prashantgupta@us.ibm.com
>
parent
c6cf9295
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vllm/transformers_utils/tokenizers/mistral.py
vllm/transformers_utils/tokenizers/mistral.py
+4
-4
No files found.
vllm/transformers_utils/tokenizers/mistral.py
View file @
d11b46f3
...
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment