Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ def apply_ep_prefill(
ffn_out,
m_indices,
)
del permute_input

# swiglu
ffn_out = paddle.incubate.nn.functional.swiglu(ffn_out, None)
Expand All @@ -373,7 +372,6 @@ def apply_ep_prefill(
)
ffn_in_x_scale_tensor = ffn_in_x_scale_tensor.T[: ffn_in_x.shape[0]]

del ffn_out
ffn_out = paddle.empty(
(token_all_num, getattr(layer, self.added_weight_attrs[1]).shape[1]),
dtype=paddle.bfloat16,
Expand All @@ -385,7 +383,6 @@ def apply_ep_prefill(
ffn_out,
m_indices,
)
del ffn_in_x

# prmt back per rank
tmp_ffn_out = fastdeploy.model_executor.ops.gpu.ep_moe_expert_combine(
Expand All @@ -397,7 +394,6 @@ def apply_ep_prefill(
False, # norm_topk_prob
1.0,
)
del ffn_out
else:
tmp_ffn_out = paddle.empty([0, hidden_size], paddle.bfloat16)

Expand Down
Loading