[MRV2][Multimodal] Enable encoder cuda graph for model runner v2 (#49852)

Signed-off-by: Isotr0py <Isotr0py@outlook.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
Isotr0py
2026-08-14 09:33:21 +00:00
committed by GitHub
co-authored by OpenAI Codex
parent b8165e5e58
commit 66728feb1f
4 changed files with 101 additions and 26 deletions
+4
View File
@@ -203,6 +203,10 @@ class EncoderCudaGraphManager:
"""Check if a modality is supported by this manager."""
return modality in self.config.modalities
def is_captured(self) -> bool:
"""Return whether a CUDA graph pool is active."""
return self.graph_pool is not None
def clear(self) -> None:
"""Release captured encoder CUDA graphs and the manager-local pool."""
for graph_set in self.budget_graphs.values():