[Feat]support sequence parallelism by pass for VL models (#5632)
This commit is contained in:
@@ -1171,7 +1171,7 @@ class EagleProposer(VllmEagleProposer):
|
||||
positions = positions.squeeze(-1)
|
||||
else:
|
||||
forward_context = get_forward_context()
|
||||
if forward_context.sp_enabled:
|
||||
if forward_context.flash_comm_v1_enabled:
|
||||
hidden_states = split_inputs_tp_to_sp(hidden_states, hidden_states)
|
||||
return hidden_states, positions
|
||||
|
||||
@@ -1191,7 +1191,7 @@ class EagleProposer(VllmEagleProposer):
|
||||
hidden_states = last_hidden_states
|
||||
else:
|
||||
forward_context = get_forward_context()
|
||||
if forward_context.sp_enabled:
|
||||
if forward_context.flash_comm_v1_enabled:
|
||||
last_hidden_states = torch.ops.vllm.maybe_all_gather_and_maybe_unpad(
|
||||
last_hidden_states.contiguous(), True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user