[Misc][LoRA] Support Rank Stabilized LoRA (RSLoRA) (#6909)

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Co-authored-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
John Giorgi
2024-12-30 22:15:58 -08:00
committed by GitHub
co-authored by Jee Jee Li
parent 74fa1d123c
commit 82c49d3260
4 changed files with 30 additions and 22 deletions
+3 -9
View File
@@ -67,15 +67,9 @@ class LoRALayerWeights:
peft_helper: PEFTHelper,
embeddings_tensor: Optional[torch.Tensor] = None,
) -> "LoRALayerWeights":
return cls(
module_name,
peft_helper.r,
peft_helper.lora_alpha,
None,
None,
None,
embeddings_tensor,
)
return cls(module_name, peft_helper.r, peft_helper.lora_alpha, None,
None, None, embeddings_tensor,
peft_helper.vllm_lora_scaling_factor)
@classmethod
def create_dummy_lora_weights(