From 4ca5d51d97551a29d4200b3e9c2de9e6d8d3880f Mon Sep 17 00:00:00 2001 From: javierdejesusda Date: Fri, 29 May 2026 18:56:09 +0200 Subject: [PATCH] DOC Fix incorrect LoRA references in hira and ln_tuning model docstrings --- src/peft/tuners/hira/model.py | 6 +++--- src/peft/tuners/ln_tuning/model.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/peft/tuners/hira/model.py b/src/peft/tuners/hira/model.py index 3c4a3a719d..a95cb804e1 100644 --- a/src/peft/tuners/hira/model.py +++ b/src/peft/tuners/hira/model.py @@ -54,13 +54,13 @@ class HiraModel(BaseTuner): Args: model ([`torch.nn.Module`]): The model to be adapted. - config ([`LoraConfig`]): The configuration of the Lora model. + config ([`HiraConfig`]): The configuration of the HiRA model. adapter_name (`str`): The name of the adapter, defaults to `"default"`. low_cpu_mem_usage (`bool`, `optional`, defaults to `False`): Create empty adapter weights on meta device. Useful to speed up the loading process. Returns: - `torch.nn.Module`: The Lora model. + `torch.nn.Module`: The HiRA model. Example: @@ -113,7 +113,7 @@ class HiraModel(BaseTuner): **Attributes**: - **model** ([`~transformers.PreTrainedModel`]) -- The model to be adapted. - - **peft_config** ([`LoraConfig`]): The configuration of the Lora model. + - **peft_config** ([`HiraConfig`]): The configuration of the HiRA model. """ prefix: str = "hira_" diff --git a/src/peft/tuners/ln_tuning/model.py b/src/peft/tuners/ln_tuning/model.py index c37ed51e92..b73dc5bffe 100644 --- a/src/peft/tuners/ln_tuning/model.py +++ b/src/peft/tuners/ln_tuning/model.py @@ -33,7 +33,7 @@ class LNTuningModel(BaseTuner): Args: model ([`torch.nn.Module`]): The model to be adapted. - config ([`LNTuningConfig`]): The configuration of the Lora model. + config ([`LNTuningConfig`]): The configuration of the LN tuning model. adapter_name (`str`): The name of the adapter, defaults to `"default"`. low_cpu_mem_usage (`bool`, `optional`, defaults to `False`): This option has no effect on LN tuning but exists for consistency with other PEFT methods. @@ -58,7 +58,7 @@ class LNTuningModel(BaseTuner): **Attributes**: - **model** ([`~transformers.PreTrainedModel`]) -- The model to be adapted. - - **peft_config** ([`LNTuningConfig`]): The configuration of the Lora model. + - **peft_config** ([`LNTuningConfig`]): The configuration of the LN tuning model. """ prefix: str = "ln_tuning_"