Fix sgl-kernel benchmark dead code (#11022)
This commit is contained in:
1 parent
71959545df
commit
11965b0daf
25 files changed
+1019
-260
No files matched your search
@@ -2460,7 +2460,7 @@ class BumpAllocator:
|
||||
def log_info_on_rank0(logger, msg):
|
||||
from sglang.srt.distributed import get_tensor_model_parallel_rank
|
||||
|
||||
if get_tensor_model_parallel_rank() == 0:
|
||||
if torch.distributed.is_initialized() and get_tensor_model_parallel_rank() == 0:
|
||||
logger.info(msg)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user