[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:
1 parent
8953d082c0
commit
cb5f508212
60 files changed
+4397
-641
No files matched your search
@@ -38,7 +38,11 @@ def startup_server(request, tmp_path, monkeypatch):
|
||||
|
||||
@pytest.mark.parametrize("wall_clock_jump", [3600, -3600])
|
||||
@pytest.mark.parametrize("becomes_ready", [True, False], ids=["ready", "timeout"])
|
||||
def test_startup_deadline_ignores_wall_clock_changes(startup_server, monkeypatch, wall_clock_jump, becomes_ready):
|
||||
@pytest.mark.parametrize("startup_timeout", [runtime.SERVER_STARTUP_TIMEOUT_S, 2100])
|
||||
def test_startup_deadline_ignores_wall_clock_changes(
|
||||
startup_server, monkeypatch, wall_clock_jump, becomes_ready, startup_timeout
|
||||
):
|
||||
startup_server.startup_timeout = startup_timeout
|
||||
elapsed = 0.0
|
||||
wall_offset = 0.0
|
||||
first_probe_at = None
|
||||
@@ -66,7 +70,7 @@ def test_startup_deadline_ignores_wall_clock_changes(startup_server, monkeypatch
|
||||
if first_probe_at is None:
|
||||
first_probe_at = elapsed
|
||||
# Even a backwards clock correction must not extend the deadline.
|
||||
assert elapsed - first_probe_at < runtime.SERVER_STARTUP_TIMEOUT_S, "startup exceeded its elapsed-time budget"
|
||||
assert elapsed - first_probe_at < startup_timeout, "startup exceeded its elapsed-time budget"
|
||||
probes += 1
|
||||
if probes == 1:
|
||||
wall_offset += wall_clock_jump
|
||||
@@ -84,7 +88,7 @@ def test_startup_deadline_ignores_wall_clock_changes(startup_server, monkeypatch
|
||||
assert first_probe_at is not None
|
||||
assert elapsed - first_probe_at == 2
|
||||
else:
|
||||
with pytest.raises(RuntimeError, match=f"failed to start within {runtime.SERVER_STARTUP_TIMEOUT_S} seconds"):
|
||||
with pytest.raises(RuntimeError, match=f"failed to start within {startup_timeout} seconds"):
|
||||
startup_server._start_server()
|
||||
assert first_probe_at is not None
|
||||
assert elapsed - first_probe_at == runtime.SERVER_STARTUP_TIMEOUT_S
|
||||
assert elapsed - first_probe_at == startup_timeout
|
||||
Reference in new issue
Block a user