Skip to content

Commit

Permalink
Same issue as previous commit with enum reprs
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminBossan committed Nov 17, 2023
1 parent d972009 commit 9e97fe8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/peft/tuners/prompt_tuning/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,6 @@ def __post_init__(self):
self.peft_type = PeftType.PROMPT_TUNING

if self.tokenizer_kwargs and (self.prompt_tuning_init != PromptTuningInit.TEXT):
raise ValueError(f"tokenizer_kwargs only valid when using prompt_tuning_init='{PromptTuningInit.TEXT}'.")
raise ValueError(
f"tokenizer_kwargs only valid when using prompt_tuning_init='{PromptTuningInit.TEXT.value}'."
)

0 comments on commit 9e97fe8

Please sign in to comment.