From 5d87090e4dd418988da8c7e514b3b15c2fcf8ab9 Mon Sep 17 00:00:00 2001 From: Kareem <81531392+KareemMusleh@users.noreply.github.com> Date: Tue, 18 Mar 2025 11:46:20 +0700 Subject: [PATCH] fix error message (#2046) --- unsloth/tokenizer_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unsloth/tokenizer_utils.py b/unsloth/tokenizer_utils.py index 26669127d7..067f2596c6 100644 --- a/unsloth/tokenizer_utils.py +++ b/unsloth/tokenizer_utils.py @@ -686,12 +686,12 @@ def fix_chat_template(tokenizer): raise RuntimeError( f"Unsloth: The tokenizer `{tokenizer.name_or_path}`\n"\ "does not have a {% if add_generation_prompt %} for generation purposes.\n"\ - "Please file a bug report immediately - thanks!" + f"Please file a bug report to the maintainers of `{tokenizer.name_or_path}` - thanks!" ) else: logger.warning_once( "Unsloth: We successfully patched the tokenizer to add a {% if add_generation_prompt %} to the chat_template.\n"\ - "This is not a bug, but please notify the Unsloth maintainers - thanks!" + f"This is not a bug, but please notify the maintainers of `{tokenizer.name_or_path}` - thanks!" ) chat_template = new_chat_template pass