[Bugfix] Use FusedMoEWithLoRA for shared MoE LoRAs on 3D models (#60098)
Signed-off-by: ARAVINDHAN T <arvindhant01@gmail.com> Co-authored-by: linitra24 <renshuang.zhou@daocloud.io>
This commit is contained in:
co-authored by
linitra24
parent
032d39e9b4
commit
e58f8dde7f
+3
-2
@@ -81,8 +81,9 @@ class LoRAConfig:
|
||||
"""If True, load MoE expert adapters in the "shared-outer" layout, where the
|
||||
gate/up (`w1`/`w3`) lora_A and the down (`w2`) lora_B are shared across all
|
||||
experts (stored once with expert-dim 1) instead of per-expert. The shared
|
||||
factors are broadcast to the expert count at kernel time. Only meaningful for
|
||||
MoE models whose adapters use this layout; ignored otherwise."""
|
||||
factors are broadcast to the expert count at kernel time. 3D-weight MoE
|
||||
models use `FusedMoEWithLoRA` for this layout. Only meaningful for MoE
|
||||
models whose adapters use this layout; ignored otherwise."""
|
||||
max_lora_cls_labels: int | None = Field(default=None, ge=1)
|
||||
"""Maximum output size for LoRA classification heads. Defaults to the
|
||||
base classification head size."""
|
||||
|
||||
Reference in New Issue
Block a user