[BE] Rename should_torch_compile_mm_vit to should_torch_compile_mm_encoder (#36281)

Signed-off-by: Lucas Kabela <lucaskabela@meta.com>
This commit is contained in:
Lucas Kabela
2026-03-09 18:22:05 +00:00
committed by GitHub
parent 10a5f4d53d
commit 3fd03f1ec2
6 changed files with 23 additions and 17 deletions
+5
View File
@@ -47,6 +47,11 @@ IGNORE_COMPILE_KEY = "_ignore_compile_vllm"
_T = TypeVar("_T", bound=nn.Module)
def should_torch_compile_mm_encoder(vllm_config: VllmConfig) -> bool:
"""Callable to be passed to `@support_torch_compile`'s `enable_if` argument."""
return vllm_config.compilation_config.compile_mm_encoder
def ignore_torch_compile(cls: type[_T]) -> type[_T]:
"""
A decorator to ignore support_torch_compile decorator