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
432cf22a
Unverified
Commit
432cf22a
authored
Mar 28, 2025
by
Kebe
Committed by
GitHub
Mar 28, 2025
Browse files
[Bugfix] Fix regex compile display format (#15368)
Signed-off-by:
Kebe
<
mail@kebe7jun.com
>
parent
2914006f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
vllm/transformers_utils/tokenizers/mistral.py
vllm/transformers_utils/tokenizers/mistral.py
+8
-6
No files found.
vllm/transformers_utils/tokenizers/mistral.py
View file @
432cf22a
...
@@ -124,13 +124,15 @@ def find_tokenizer_file(files: List[str]):
...
@@ -124,13 +124,15 @@ def find_tokenizer_file(files: List[str]):
matched_files
=
[
file
for
file
in
files
if
file_pattern
.
match
(
file
)]
matched_files
=
[
file
for
file
in
files
if
file_pattern
.
match
(
file
)]
if
len
(
matched_files
)
>
1
:
if
len
(
matched_files
)
>
1
:
raise
OSError
(
f
"Found
{
len
(
matched_files
)
}
files matching the "
raise
OSError
(
f
"pattern:
{
file_pattern
}
. Make sure only one Mistral "
f
"Found
{
len
(
matched_files
)
}
files matching the "
f
"tokenizer is present in
{
files
}
."
)
f
"pattern: `
{
file_pattern
.
pattern
}
`. Make sure only one Mistral "
f
"tokenizer is present in
{
files
}
."
)
elif
len
(
matched_files
)
==
0
:
elif
len
(
matched_files
)
==
0
:
raise
OSError
(
f
"Found
{
len
(
matched_files
)
}
files matching the "
raise
OSError
(
f
"pattern:
{
file_pattern
}
. Make sure that a Mistral "
f
"Found
{
len
(
matched_files
)
}
files matching the "
f
"tokenizer is present in
{
files
}
."
)
f
"pattern: `
{
file_pattern
.
pattern
}
`. Make sure that a Mistral "
f
"tokenizer is present in
{
files
}
."
)
return
matched_files
[
0
]
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