Skip to content

Commit

Permalink
Update src/peft/mapping.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ltoniazzi authored Aug 20, 2024
1 parent 45644ca commit c236129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/peft/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def warn_if_tied_embeddings_in_target_modules(model_config, peft_config):
for target_module in peft_config.target_modules:
if target_module in EMBEDDING_LAYER_NAMES:
warnings.warn(
f"{model_config['tie_word_embeddings']=} and a tied {target_module=} is passed to peft config. This can lead to complications, for example when merging the adapter. Are you sure you want to use the target module {target_module}?"
f"{model_config['tie_word_embeddings']=} and the tied {target_module=} is in the peft config. This can lead to complications, for example when merging the adapter. Are you sure you want to use the target module {target_module}?"
)

def get_peft_model(
Expand Down

0 comments on commit c236129

Please sign in to comment.