[Fix] check to make sure processor has chat templates (#18047)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2025-05-13 06:04:10 -04:00
committed by GitHub
parent 98fcba1575
commit cb528d0585
3 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ if is_torch_equal_or_newer("2.6"):
from torch._inductor.custom_graph_pass import CustomGraphPass
else:
# CustomGraphPass is not present in 2.5 or lower, import our version
from .torch25_custom_graph_pass import ( # noqa: yapf
from .torch25_custom_graph_pass import ( # noqa: E501
Torch25CustomGraphPass as CustomGraphPass)
_pass_context = None