[Feature] Transfer AR-to-diffusion payloads over NIXL (#6264)

Signed-off-by: yuanwu <yuan.wu@intel.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
Yuan WuandHongsheng Liu authored and GitHub committed 2026-09-23 18:26:53 +08:00
1 parent 8953d082c0
commit cb5f508212
60 files changed
+4397 -641

No files matched your search

@@ -616,7 +616,8 @@ def test_make_batch_explicit_mapping_still_selects_and_orders_states():
@pytest.mark.cpu
def test_step_profiler_reports_denoise_step_as_diffuse():
def test_step_profiler_reports_denoise_step_as_diffuse(monkeypatch):
monkeypatch.setattr(current_omni_platform, "synchronize", lambda: None)
pipeline = _AutoDenoiseProfilerPipeline()
assert pipeline.denoise_step() == "ok"
@@ -629,6 +630,13 @@ def test_step_profiler_reports_denoise_step_as_diffuse():
class TestRunner:
"""DiffusionModelRunner.execute_stepwise"""
@pytest.fixture(autouse=True)
def mock_platform_memory(self, monkeypatch):
monkeypatch.setattr(model_runner_module.current_omni_platform, "is_available", lambda: True)
monkeypatch.setattr(model_runner_module.current_omni_platform, "reset_peak_memory_stats", lambda: None)
monkeypatch.setattr(model_runner_module.current_omni_platform, "max_memory_reserved", lambda: 0)
monkeypatch.setattr(model_runner_module.current_omni_platform, "max_memory_allocated", lambda: 0)
@pytest.mark.parametrize(
("diffusion_kv_mode", "should_cleanup"),
[