processor.py 620 Bytes
Newer Older
1
# SPDX-License-Identifier: Apache-2.0
2
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3
import warnings
4

5

6
7
8
def __getattr__(name: str):
    if name == "Processor":
        from .input_processor import InputProcessor
9

10
11
12
13
14
15
        warnings.warn(
            "`vllm.v1.engine.processor.Processor` has been moved to "
            "`vllm.v1.engine.input_processor.InputProcessor`. "
            "The old name will be removed in v0.13.",
            DeprecationWarning,
            stacklevel=2,
16
        )
17

18
        return InputProcessor
19

20
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")