Skip to content

Commit 8cf153a

Browse files
committed
debgug
1 parent 6fcbf39 commit 8cf153a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

python/sglang/srt/managers/data_parallel_controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def __init__(
159159
# Launch data parallel workers
160160
self.scheduler_procs = []
161161
self.workers: List[zmq.Socket] = [None] * server_args.dp_size
162-
self.status: List[int] = [1] * server_args.dp_size
162+
self.status: List[bool] = [True] * server_args.dp_size
163163

164164
if server_args.enable_dp_attention:
165165
self.launch_dp_attention_schedulers(server_args, port_args)
@@ -182,7 +182,7 @@ def __init__(
182182

183183
def send_to_all_workers(self, obj):
184184
for i, worker in enumerate(self.workers):
185-
if self.status[i] == 1:
185+
if self.status[i]:
186186
worker.send_pyobj(obj)
187187

188188
def send_control_message(self, obj):
@@ -487,7 +487,7 @@ def round_robin_scheduler(self, req: Req):
487487
return
488488

489489
while True:
490-
if self.status[self.round_robin_counter] == 1:
490+
if self.status[self.round_robin_counter]:
491491
logger.info(f"Choose worker {self.round_robin_counter}")
492492
self.workers[self.round_robin_counter].send_pyobj(req)
493493
self.round_robin_counter = (self.round_robin_counter + 1) % len(

python/sglang/srt/managers/io_struct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ def __post_init__(self):
14361436

14371437
@dataclass
14381438
class ActiveRanksOutput(BaseReq):
1439-
status: List[int]
1439+
status: List[bool]
14401440

14411441

14421442
@dataclass

0 commit comments

Comments
 (0)