docs/source/package_reference/helpers.md
A collection of helper functions for PEFT.
[[autodoc]] helpers.check_if_peft_model - all
[[autodoc]] helpers.rescale_adapter_scale - all
forward method of LoRA layers[[autodoc]] helpers.disable_input_dtype_casting - all
[[autodoc]] helpers.DoraCaching - all
KappaTuneSelector and find_kappa_target_modules implement a general target selection process from the KappaTune paper.
The method identifies modules with higher flexibility (higher output differential entropy) and lower specialization (lower sensitivity to specific input directions).
These properties make the selected modules good candidates for mitigating catastrophic forgetting in any adaptation method that adds trainable parameters, including LoRA, DoRA, LoHa, AdaLoRA, and even direct fine-tuning of the original weights.
[[autodoc]] helpers.KappaTuneSelector - all
[[autodoc]] helpers.find_kappa_target_modules - all