diff --git a/src/peft/tuners/lora/layer.py b/src/peft/tuners/lora/layer.py index 9ff43d926c..2bab084c8d 100644 --- a/src/peft/tuners/lora/layer.py +++ b/src/peft/tuners/lora/layer.py @@ -217,7 +217,6 @@ def single_batched_forward(self, x: torch.Tensor) -> torch.Tensor: def multi_batched_forward(self, x: torch.Tensor, adapter_names) -> torch.Tensor: unique_adapters = set(adapter_names) - len(unique_adapters) sub_batch_indices_list = [] for adapter in unique_adapters: sub_batch_indices_list.append([index for index, item in enumerate(adapter_names) if item == adapter])