[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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user