Skip to content

Commit d9836d4

Browse files
[Deprecation] Deprecate LLM.set_tokenizer (#26333)
Signed-off-by: DarkLight1337 <[email protected]>
1 parent 5f7e8a9 commit d9836d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vllm/entrypoints/llm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import torch.nn as nn
1010
from pydantic import ValidationError
1111
from tqdm.auto import tqdm
12-
from typing_extensions import TypeVar
12+
from typing_extensions import TypeVar, deprecated
1313

1414
from vllm.beam_search import (
1515
BeamSearchInstance,
@@ -354,6 +354,7 @@ def model_config(self):
354354
def get_tokenizer(self) -> AnyTokenizer:
355355
return self.llm_engine.get_tokenizer()
356356

357+
@deprecated("`set_tokenizer` is deprecated and will be removed in v0.13.")
357358
def set_tokenizer(self, tokenizer: AnyTokenizer) -> None:
358359
# While CachedTokenizer is dynamic, have no choice but
359360
# compare class name. Misjudgment will arise from

0 commit comments

Comments
 (0)