Skip to content

Commit

Permalink
[core/TPLinear] Fix breaking change (#1439)
Browse files Browse the repository at this point in the history
* fix breaking change

* add comment

* add todo
  • Loading branch information
younesbelkada authored Feb 6, 2024
1 parent 21d8d46 commit 497bbea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/peft/tuners/lora/tp_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ def __init__(

self.is_target_conv_1d_layer = False

@property
def is_paralle_a(self):
# TODO: remove it in PEFT 0.10.0
# See https://github.com/huggingface/peft/pull/1439 for more details
warnings.warn(
"`is_paralle_a` is going to be deprecated in a future release. Please use `is_parallel_a`", FutureWarning
)
return self.is_parallel_a

def update_layer(
self,
adapter_name,
Expand Down

0 comments on commit 497bbea

Please sign in to comment.