[Core] Ensure LoRA linear respect the base_layer's tp_size and tp_rank (#25487)

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
Jee Jee Li
2025-09-23 18:19:25 +00:00
committed by GitHub
parent 867ecdd1c8
commit 5abb117901
5 changed files with 24 additions and 41 deletions
+2 -2
View File
@@ -48,11 +48,11 @@ class LoRALayerWeights:
@property
def input_dim(self) -> int:
return self.lora_a.shape[0]
return self.lora_a.shape[1]
@property
def output_dim(self) -> int:
return self.lora_b.shape[1]
return self.lora_b.shape[0]
@property
def is_packed(self) -> bool: