LoRA settings
Arguments
- r
Rank of the adapter matrices. Higher learns more, costs more memory.
- alpha
Scaling factor. A common rule is
alpha = 2 * r.- dropout
Dropout applied to the adapter input.
- target_modules
"auto"adapts every linear layer except the output head (peft's"all-linear"). Or a character vector of module names such asc("q_proj", "v_proj").