diff --git a/src/peft/peft_model.py b/src/peft/peft_model.py index 899b1a0e41..5db79f4315 100644 --- a/src/peft/peft_model.py +++ b/src/peft/peft_model.py @@ -1208,10 +1208,6 @@ def get_layer_status(self) -> list[TunerLayerStatus]: - `quantization_backend` (`str` or `None`): The name of the quantization backend, e.g. `"bnb 4bit"`, or `None` if not quantized. - Args: - model ([`~PeftModel`]): - The model to get the adapter layer status from. - Returns: list[`peft.peft_model.TunerLayerStatus`]: A list of dataclasses, each containing the status of the corresponding adapter layer. @@ -1251,10 +1247,6 @@ def get_model_status(self) -> TunerModelStatus: The name of the quantization backend, e.g. `"bnb 4bit"`, or `None` if not quantized. If the backend is not consistent across all layers, this will be `"irregular"`. - Args: - model ([`~PeftModel`]): - The model to get the adapter layer status from. - Returns: `peft.peft_model.TunerModelStatus`: A dataclass containing the status of the model. diff --git a/src/peft/tuners/tuners_utils.py b/src/peft/tuners/tuners_utils.py index d06439ca18..6feb9168ec 100644 --- a/src/peft/tuners/tuners_utils.py +++ b/src/peft/tuners/tuners_utils.py @@ -1597,7 +1597,7 @@ def set_adapter(self, adapter_names: str | list[str], inference_mode: bool = Fal inference_mode is True. Args: - adapter_name (`str` or `list[str]`): + adapter_names (`str` or `list[str]`): The name(s) of the adapter(s) to set as active. inference_mode (bool, optional): Whether the activated adapter should be frozen (i.e. `requires_grad=False`). Default is False.