mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-18 13:57:05 +08:00
Remove flag
Signed-off-by: ilmarkov <markovilya197@gmail.com>
This commit is contained in:
parent
720fe99051
commit
777c90e954
@ -109,12 +109,12 @@ async def transfer_run_periodically(
|
||||
for model_state in state.model_states.values():
|
||||
if not model_state.is_async_enabled:
|
||||
continue
|
||||
if not model_state.new_indices_computed:
|
||||
run_rebalance_experts(model_state, state)
|
||||
logger.info(
|
||||
"Async worker computed new indices for model %s",
|
||||
model_state.model_name,
|
||||
)
|
||||
# Rebalance experts is done once, only when the async worker wakes up.
|
||||
run_rebalance_experts(model_state, state)
|
||||
logger.info(
|
||||
"Async worker computed new indices for model %s",
|
||||
model_state.model_name,
|
||||
)
|
||||
|
||||
current_num_layers = model_state.model.num_moe_layers
|
||||
while (
|
||||
|
||||
@ -197,10 +197,6 @@ class EplbModelState:
|
||||
"""
|
||||
Whether the async EPLB needs to poll peers for buffer readiness.
|
||||
"""
|
||||
new_indices_computed: bool
|
||||
"""
|
||||
The flag indicates whether the new indices have been computed.
|
||||
"""
|
||||
eplb_stats: EplbStats | None
|
||||
"""
|
||||
EPLB stats for the model.
|
||||
@ -547,7 +543,6 @@ class EplbState:
|
||||
layer_to_transfer=0,
|
||||
rebalanced=False,
|
||||
pending_global_ready_check=False,
|
||||
new_indices_computed=False,
|
||||
eplb_stats=None,
|
||||
is_unchanged=np.array([]),
|
||||
is_received_locally=np.array([]),
|
||||
@ -928,7 +923,6 @@ class EplbState:
|
||||
eplb_model_state.rebalanced = True
|
||||
eplb_model_state.layer_to_transfer = 0
|
||||
eplb_model_state.pending_global_ready_check = True
|
||||
eplb_model_state.new_indices_computed = False
|
||||
# Signal async thread to start transferring layers
|
||||
if self.is_async and (not is_profile):
|
||||
self.rearrange_event.set()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user