Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions custom_ops/gpu_ops/moe/ep_moe_expert_dispatch.cu
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
__VA_ARGS__ \
break; \
} \
case 20: { \
constexpr size_t NUM_EXPERTS_PER_RANK = 20; \
__VA_ARGS__ \
break; \
} \
case 32: { \
constexpr size_t NUM_EXPERTS_PER_RANK = 32; \
__VA_ARGS__ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ def apply_ep_prefill(
recv_topk_weights,
recv_num_tokens_per_expert_list,
handle,
_,
event,
) = self.ep_prefill_runner.dispatch(x, topk_idx, topk_weights)
if self.ep_prefill_runner.ep_engine.async_finish:
event.current_stream_wait()
token_all_num = sum(recv_num_tokens_per_expert_list)

# 3. Compute ffn
Expand Down
2 changes: 1 addition & 1 deletion fastdeploy/model_executor/models/glm4_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def empty_input_forward(self):
empty_input_forward
"""
fake_hidden_states = paddle.ones(
shape=[1, self.fd_config.model_config.hidden_size],
shape=[0, self.fd_config.model_config.hidden_size],
dtype=paddle.get_default_dtype(),
)
for i in range(
Expand Down
2 changes: 1 addition & 1 deletion fastdeploy/model_executor/models/qwen3moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def empty_input_forward(self):
empty_input_forward
"""
fake_hidden_states = paddle.empty(
shape=[1, self.fd_config.model_config.hidden_size],
shape=[0, self.fd_config.model_config.hidden_size],
dtype=paddle.get_default_dtype(),
)
for i in range(
Expand Down
Loading