Skip to content

Commit

Permalink
update dynamic error message
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Jan 10, 2024
1 parent 02dfbfd commit 2d86271
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,11 @@ def load_tokenizer(cfg):
)
)
):
lora_modules_to_save = ", ".join(
[f"`{x}`" for x in lora_modules_to_save]
)
raise ValueError(
"Please set lora_modules_to_save to ['embed_tokens', 'lm_head'] when using an adapter and changing the special tokens."
f"Please set lora_modules_to_save to {lora_modules_to_save} when using an adapter and changing the special tokens."
)

tokenizer.add_special_tokens(
Expand Down

0 comments on commit 2d86271

Please sign in to comment.