Unverified Commit 8b1942c6 authored by Ke Bao's avatar Ke Bao Committed by GitHub
Browse files

Remove type conversion and fix id map in topk (#7759)

parent 489934be
......@@ -112,10 +112,11 @@ def fused_topk(
topk_softmax(
topk_weights,
topk_ids,
gating_output.float(),
gating_output,
renormalize,
)
topk_ids = topk_ids_logical_to_physical(topk_ids, expert_location_dispatch_info)
_mask_topk_ids_padded_region(topk_ids, num_token_non_padded)
return topk_weights, topk_ids
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment