Skip to content

Commit c09cefd

Browse files
committed
fix more lint
Signed-off-by: Bill Nell <[email protected]>
1 parent 22b988a commit c09cefd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/kernels/moe/test_pplx_moe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
nvshmem_finalize, nvshmem_get_unique_id,
1818
nvshmem_init)
1919
has_pplx = False
20-
except ImportError as ex:
20+
except ImportError:
2121
has_pplx = False
2222

2323
from torch.multiprocessing import (

vllm/distributed/parallel_state.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -922,16 +922,15 @@ def pplx_init(rank, world_size):
922922

923923
if has_pplx and world_size > 1:
924924
from pplx_kernels.nvshmem import (nvshmem_alloc_empty_unique_id,
925-
nvshmem_get_unique_id,
926-
nvshmem_init)
925+
nvshmem_get_unique_id, nvshmem_init)
927926
try:
928927
global PPLX_DID_INIT
929-
logger.debug(f"PPLX_INIT {rank} {world_size}")
928+
logger.debug("PPLX_INIT %s %d", rank, world_size)
930929
uid = nvshmem_get_unique_id(
931930
) if rank == 0 else nvshmem_alloc_empty_unique_id()
932931
uid_gpu = uid.cuda()
933932
get_world_group().broadcast(uid_gpu, src=0)
934-
logger.debug(f"PPLX_INIT UID={uid_gpu}")
933+
logger.debug("PPLX_INIT UID = %s", uid_gpu)
935934
uid = uid_gpu.to(device='cpu')
936935
nvshmem_init(uid, rank, world_size)
937936
PPLX_DID_INIT = True
@@ -944,6 +943,7 @@ def pplx_finalize():
944943
global PPLX_DID_INIT
945944
if PPLX_DID_INIT:
946945
from pplx_kernels.nvshmem import nvshmem_finalize
946+
logger.debug("PPLX finalize")
947947
nvshmem_finalize()
948948

949949

0 commit comments

Comments
 (0)