[Refactor][Diffusion] Resolve offload topology through one plan resolver (#7209)

Signed-off-by: specture724 <specture724@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Anjie HouandClaude Opus 5 authored and GitHub committed 2026-09-09 08:17:38 +08:00
1 parent b3dd45874a
commit b6f4df320d
11 files changed
+976 -291

No files matched your search

@@ -488,7 +488,8 @@ class TestLayerwiseComponentSelection:
with pytest.raises(ValueError, match="Selected text encoder 'text_encoder_2' requires"):
backend.enable(pipeline)
assert not pipeline.text_encoder._omni_layerwise_enabled
# The plan resolver rejects the topology before any encoder is hooked.
assert not getattr(pipeline.text_encoder, "_omni_layerwise_enabled", False)
def test_default_selection_preserves_unplanned_auxiliaries(self, patched_offload_runtime):
pipeline = _LegacyComponentPipeline()