Find the linear modules in a model
model (torch.nn.Module) – the model to find the linear modules
the names of the linear modules
List[str]
Get a LoRA model
model (torch.nn.Module) – the model to get the LoRA model
lora_config (LoraConfig) – the LoRA configuration
the LoRA model
torch.nn.Module
Installation:
API Reference: