Skip to content

Commit

Permalink
Update layer.py (#1359)
Browse files Browse the repository at this point in the history
A small PR that removes seemingly unnecessary code.
  • Loading branch information
TaeWoo21 authored Jan 22, 2024
1 parent 918d4c6 commit 87e4cb1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/peft/tuners/lora/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 87e4cb1

Please sign in to comment.