Skip to content

Commit ae9380e

Browse files
authored
refine log (#707)
Co-authored-by: baishihao <baishihao@sensetime.com>
1 parent ca24ca4 commit ae9380e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lightllm/common/vllm_kernel/_custom_ops.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
logger.error("vllm or lightllm_kernel is not installed, you can't use custom ops")
1717

1818
try:
19+
import os
20+
1921
ENABLE_CUSTOM_GATHER = os.getenv("ENABLE_CUSTOM_GATHER", "False").upper() in ["ON", "TRUE", "1"]
2022
if ENABLE_CUSTOM_GATHER:
2123
from lightllm.common.vllm_kernel._ops import init_custom_gather_ar

lightllm/distributed/communication_op.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,13 @@
3636
try:
3737
HAS_VLLM = True
3838
from .custom_all_reduce import CustomAllreduce
39-
40-
logger.info("using custom allreduce")
4139
except:
4240
HAS_VLLM = False
4341
logger.info("vllm or lightllm_kernel is not installed, you can't use custom allreduce")
4442

4543
try:
4644
HAS_LIGHTLLM_KERNEL = True
4745
from .custom_all_gather import CustomAllgather
48-
49-
logger.info("using custom allgather")
5046
except:
5147
HAS_LIGHTLLM_KERNEL = False
5248
logger.info("lightllm_kernel is not installed, you can't use custom allgather")

0 commit comments

Comments
 (0)