Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
e15932bb
Unverified
Commit
e15932bb
authored
Sep 04, 2023
by
Nelson Liu
Committed by
GitHub
Sep 05, 2023
Browse files
Only emit warning about internal tokenizer if it isn't being used (#939)
parent
ce741ba3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/transformers_utils/tokenizer.py
vllm/transformers_utils/tokenizer.py
+2
-1
No files found.
vllm/transformers_utils/tokenizer.py
View file @
e15932bb
...
@@ -25,7 +25,8 @@ def get_tokenizer(
...
@@ -25,7 +25,8 @@ def get_tokenizer(
"Cannot use the fast tokenizer in slow tokenizer mode."
)
"Cannot use the fast tokenizer in slow tokenizer mode."
)
kwargs
[
"use_fast"
]
=
False
kwargs
[
"use_fast"
]
=
False
if
"llama"
in
tokenizer_name
.
lower
()
and
kwargs
.
get
(
"use_fast"
,
True
):
if
(
"llama"
in
tokenizer_name
.
lower
()
and
kwargs
.
get
(
"use_fast"
,
True
)
and
tokenizer_name
!=
_FAST_LLAMA_TOKENIZER
):
logger
.
info
(
logger
.
info
(
"For some LLaMA-based models, initializing the fast tokenizer may "
"For some LLaMA-based models, initializing the fast tokenizer may "
"take a long time. To eliminate the initialization time, consider "
"take a long time. To eliminate the initialization time, consider "
...
...
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