[Deprecation] Remove old locations of get_tokenizer and resolve_hf_chat_template (#35024)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
|
||||
import asyncio
|
||||
import json
|
||||
import warnings
|
||||
from abc import ABC, abstractmethod
|
||||
from collections import Counter, defaultdict
|
||||
from collections.abc import Awaitable, Callable, Iterable
|
||||
@@ -73,23 +72,6 @@ else:
|
||||
logger = init_logger(__name__)
|
||||
|
||||
|
||||
def __getattr__(name: str):
|
||||
if name == "resolve_hf_chat_template":
|
||||
from vllm.renderers.hf import resolve_chat_template
|
||||
|
||||
warnings.warn(
|
||||
"`vllm.entrypoints.chat_utils.resolve_hf_chat_template` has been moved to "
|
||||
"`vllm.renderers.hf.resolve_chat_template`. "
|
||||
"The old name will be removed in v0.16.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
|
||||
return resolve_chat_template
|
||||
|
||||
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
||||
|
||||
|
||||
class ChatTemplateResolutionError(ValueError):
|
||||
"""Raised when chat template resolution fails.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user