[Bugfix] Fix corrupt outputs in MoE FP8 LoRA responses and MoE base model responses when LoRAs are loaded (#42120)
Signed-off-by: Nicholas Edelman <nedelman@nvidia.com> Signed-off-by: Jee Jee Li <jeejeelee@inferact.ai> Co-authored-by: Jee Jee Li <jeejeelee@inferact.ai> Co-authored-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
co-authored by
Jee Jee Li
Jee Jee Li
parent
560fb8b867
commit
9ea3a4015b
@@ -446,11 +446,17 @@ class PunicaWrapperGPU(PunicaWrapperBase):
|
||||
_,
|
||||
_,
|
||||
lora_ids,
|
||||
_,
|
||||
no_lora_flag,
|
||||
num_active_loras,
|
||||
) = self.token_mapping_meta.meta_args(
|
||||
x.size(0), self.lora_config.specialize_active_lora
|
||||
)
|
||||
|
||||
assert no_lora_flag.numel() == 1
|
||||
if no_lora_flag.item():
|
||||
# None of the inputs require LoRA.
|
||||
return
|
||||
|
||||
if token_lora_mapping is None:
|
||||
token_lora_mapping = token_lora_mapping_meta
|
||||
fused_moe_lora(
|
||||
|
||||
Reference in New Issue
Block a user