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
d9836d45
Unverified
Commit
d9836d45
authored
Oct 07, 2025
by
Cyrus Leung
Committed by
GitHub
Oct 07, 2025
Browse files
[Deprecation] Deprecate `LLM.set_tokenizer` (#26333)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
5f7e8a91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/entrypoints/llm.py
vllm/entrypoints/llm.py
+2
-1
No files found.
vllm/entrypoints/llm.py
View file @
d9836d45
...
...
@@ -9,7 +9,7 @@ import cloudpickle
import
torch.nn
as
nn
from
pydantic
import
ValidationError
from
tqdm.auto
import
tqdm
from
typing_extensions
import
TypeVar
from
typing_extensions
import
TypeVar
,
deprecated
from
vllm.beam_search
import
(
BeamSearchInstance
,
...
...
@@ -354,6 +354,7 @@ class LLM:
def
get_tokenizer
(
self
)
->
AnyTokenizer
:
return
self
.
llm_engine
.
get_tokenizer
()
@
deprecated
(
"`set_tokenizer` is deprecated and will be removed in v0.13."
)
def
set_tokenizer
(
self
,
tokenizer
:
AnyTokenizer
)
->
None
:
# While CachedTokenizer is dynamic, have no choice but
# compare class name. Misjudgment will arise from
...
...
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