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
739e03b3
Unverified
Commit
739e03b3
authored
Apr 30, 2025
by
Pete Savage
Committed by
GitHub
Apr 30, 2025
Browse files
[Bugfix] Fixed mistral tokenizer path when pointing to file (#17457)
Signed-off-by:
Pete Savage
<
psavage@redhat.com
>
parent
da4e7687
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
vllm/transformers_utils/tokenizers/mistral.py
vllm/transformers_utils/tokenizers/mistral.py
+1
-0
No files found.
vllm/transformers_utils/tokenizers/mistral.py
View file @
739e03b3
...
@@ -227,6 +227,7 @@ class MistralTokenizer(TokenizerBase):
...
@@ -227,6 +227,7 @@ class MistralTokenizer(TokenizerBase):
else
:
else
:
assert
Path
(
assert
Path
(
path_or_repo_id
).
is_file
(),
f
"Invalid path:
{
path_or_repo_id
}
"
path_or_repo_id
).
is_file
(),
f
"Invalid path:
{
path_or_repo_id
}
"
tokenizer_file
=
str
(
Path
(
path_or_repo_id
))
from
mistral_common.tokens.tokenizers.mistral
import
(
from
mistral_common.tokens.tokenizers.mistral
import
(
MistralTokenizer
as
PublicMistralTokenizer
)
MistralTokenizer
as
PublicMistralTokenizer
)
...
...
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