TensorRT-LLMs/tensorrt_llm/_torch/llm.py
Yan Chunwei 9bd42ecf9b
[TRTLLM-5208][BREAKING CHANGE] chore: make pytorch LLM the default (#5312)
Signed-off-by: Superjomn <328693+Superjomn@users.noreply.github.com>
2025-06-20 03:01:10 +08:00

14 lines
329 B
Python

from tensorrt_llm.llmapi.llm import _TorchLLM
class LLM(_TorchLLM):
def __init__(self, *args, **kwargs):
raise ImportError(
"_torch.llm is deprecated, please use `from tensorrt_llm import LLM` directly"
)
# Keep the LLM class to guide the users to use the default LLM class
__all__ = ['LLM']