Unverified Commit aa0dc77e authored by Ilya Lavrenov's avatar Ilya Lavrenov Committed by GitHub
Browse files

[Perf] Improved perf for resolve_chat_template_content_format (#20065)


Signed-off-by: default avatarIlya Lavrenov <ilya.lavrenov@cerebras.net>
parent 4ab3ac28
......@@ -293,6 +293,7 @@ def _try_extract_ast(chat_template: str) -> Optional[jinja2.nodes.Template]:
return None
@lru_cache(maxsize=32)
def _detect_content_format(
chat_template: str,
*,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment