mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[Others] remove template NUM_EXPERTS_PER_RANK in permute_x_fp8_kernel (#5620)
This commit is contained in:
@@ -51,12 +51,15 @@ std::vector<paddle::Tensor> count_tokens_per_expert_func(
|
||||
auto stream = topk_ids.stream();
|
||||
using scalar_t = int64_t;
|
||||
|
||||
CUDA_CHECK(cudaGetLastError());
|
||||
cuda_kernel<<<1, 1024, num_experts * sizeof(int32_t), stream>>>(
|
||||
topk_ids.data<scalar_t>(),
|
||||
token_nums_per_expert.data<int32_t>(),
|
||||
token_nums_per_expert.data<int32_t>() + num_experts,
|
||||
topk_ids_numel,
|
||||
num_experts);
|
||||
|
||||
CUDA_CHECK(cudaGetLastError());
|
||||
return {token_nums_per_expert};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user