[chat] polish code note typo (#3612)

This commit is contained in:
digger-yu
2023-04-20 17:22:15 +08:00
committed by GitHub
parent c4709d34cf
commit d7bf284706
10 changed files with 18 additions and 18 deletions

View File

@@ -108,7 +108,7 @@ def convert_to_lora_recursively(module: nn.Module, lora_rank: int) -> None:
class LoRAModule(nn.Module):
"""A LoRA module base class. All derived classes should call `convert_to_lora()` at the bottom of `__init__()`.
This calss will convert all torch.nn.Linear layer to LoraLinear layer.
This class will convert all torch.nn.Linear layer to LoraLinear layer.
Args:
lora_rank (int, optional): LoRA rank. 0 means LoRA is not applied. Defaults to 0.