get_adapter_params¶
- torchtune.modules.peft.get_adapter_params(model: Module) dict[str, torch.nn.parameter.Parameter] [source]¶
Return the subset of parameters from a model that correspond to an adapter. Assumes that any adapter class has defined the
adapter_params()
method.