Skip to content

Commit

Permalink
make fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocketknight1 committed Jan 16, 2025
1 parent 1632916 commit fc6aba8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transformers/utils/chat_template_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ def _render_with_assistant_indices(
@lru_cache
def _compile_jinja_template(chat_template):
if not is_jinja_available():
raise ImportError("apply_chat_template requires jinja2 to be installed. Please install it using `pip install jinja2`.")
raise ImportError(
"apply_chat_template requires jinja2 to be installed. Please install it using `pip install jinja2`."
)

class AssistantTracker(Extension):
# This extension is used to track the indices of assistant-generated tokens in the rendered chat
Expand Down

0 comments on commit fc6aba8

Please sign in to comment.