[diffusion] chore: reuse srt siglip vision model (#34988)

This commit is contained in:
Mick
2026-08-17 09:16:17 +08:00
committed by GitHub
parent 0aa09ab40d
commit 0e178c3d22
9 changed files with 298 additions and 274 deletions
+5
View File
@@ -857,6 +857,11 @@ class RuntimeContext:
self._check_role_namespace(name)
return bags[name]
def is_config_namespace_published(self, name: str) -> bool:
"""Return whether a config namespace exists in the current context."""
bags = self._config_bags
return bags is not None and name in bags
def _check_role_namespace(self, name: str) -> None:
# Out of line so the mode gate above stays one dead-branch-prunable
# check under dynamo in the default "off" mode (config_bag runs inside