Lora MoE Align Improvements (#29257)

Signed-off-by: gnovack <gnovack@amazon.com>
This commit is contained in:
gnovack
2025-12-09 10:35:16 +08:00
committed by GitHub
parent db14f61f2d
commit ea657f2078
7 changed files with 360 additions and 249 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ void moe_lora_align_block_size(
int64_t max_num_tokens_padded, int64_t max_num_m_blocks,
torch::Tensor sorted_token_ids, torch::Tensor expert_ids,
torch::Tensor num_tokens_post_pad, torch::Tensor adapter_enabled,
torch::Tensor lora_ids);
torch::Tensor lora_ids, std::optional<torch::Tensor> maybe_expert_map);
#ifndef USE_ROCM
torch::Tensor moe_wna16_gemm(torch::Tensor input, torch::Tensor output,
torch::Tensor b_qweight, torch::Tensor b_scales,