[Core] Handle MoE LoRA edge cases (#27335)

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
Jee Jee Li
2025-10-22 13:14:33 +00:00
committed by GitHub
parent 8e4ca4d14e
commit abf3db40ef
2 changed files with 7 additions and 11 deletions
-1
View File
@@ -426,7 +426,6 @@ class LoRAModelManager:
for module_name, module in self.modules.items():
module_lora = self._get_lora_layer_weights(lora_model, module_name)
if module_lora:
module_lora.optimize()
# Note (gnovack) - If MOE lora weights are not split into
# num_experts chunks, we split them here
if isinstance(module, FusedMoEWithLoRA) and torch.is_tensor(