__init__.py 364 Bytes
Newer Older
1
2
# SPDX-License-Identifier: Apache-2.0

3
4
from vllm.triton_utils.importing import (HAS_TRITON, TritonLanguagePlaceholder,
                                         TritonPlaceholder)
5

6
7
8
9
10
11
12
13
if HAS_TRITON:
    import triton
    import triton.language as tl
else:
    triton = TritonPlaceholder()
    tl = TritonLanguagePlaceholder()

__all__ = ["HAS_TRITON", "triton", "tl"]