Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
df305bd
feat(harness): add an offline parallel-round coordinator
NumberWan Oct 30, 2026
5827287
fix(harness): close the parallel-round execution boundary
NumberWan Nov 2, 2026
566d7d9
fix(harness): keep parallel-round launches inside the deadline and th…
NumberWan Nov 2, 2026
d378b58
fix(harness): give serve a receipt when the trial result is missing
NumberWan Nov 10, 2026
9f9fe1a
feat(harness): let a parallel round use several devices and a declare…
NumberWan Nov 12, 2026
646125b
fix(harness): reject dot device and lane names, document trial placeh…
NumberWan Nov 12, 2026
7b77141
feat(harness): let each lane declare how many devices one trial needs
NumberWan Nov 12, 2026
b81600b
feat(harness): drive a cluster round end to end and close it
NumberWan Nov 12, 2026
c8292fd
fix(infra): mount runtime paths where the loader looks for them
NumberWan Nov 12, 2026
727fa06
feat(harness): drive hands in one candidate per lane per round
NumberWan Nov 12, 2026
cbb8754
feat(harness): run cluster rounds up to the campaign round_cap
NumberWan Nov 12, 2026
ef85c2e
refactor(harness): keep parallel round to prepare/submit/serve/status
NumberWan Nov 13, 2026
9be9178
fix(confinement): kill the whole namespace on timeout, isolate the su…
NumberWan Nov 13, 2026
2e265f2
fix(harness): resume an interrupted serve without a second attempt
NumberWan Nov 13, 2026
bfe901c
fix(harness): quarantine devices whose command could not be reaped
NumberWan Nov 13, 2026
9c1e379
fix(confinement): kill the namespace PID 1 directly on timeout
NumberWan Nov 13, 2026
b880f37
fix(harness): keep the quarantine marker in the device lease store
NumberWan Nov 13, 2026
f76b5a4
fix(confinement): re-check PID 1 start time before killing it
NumberWan Nov 13, 2026
7d63805
refactor(harness): measure parallel-round tickets with run_experiment
NumberWan Nov 13, 2026
3d326b7
feat(harness): joint single-rerun close for parallel rounds
NumberWan Nov 17, 2026
9c4216b
fix(harness): adapt parallel_round to contracts and runner ports
NumberWan Nov 17, 2026
795ed1f
fix(harness): enforce submit boundaries and venv namespace stdlib
NumberWan Nov 17, 2026
3f26dfe
fix(confinement): exclude /usr from every runtime_roots candidate
NumberWan Nov 17, 2026
b06a0c0
fix(harness): keep parallel_round off the import gate
NumberWan Nov 18, 2026
6be668c
fix(harness): stop parallel_round importing infra and model
NumberWan Nov 18, 2026
29c5aa6
fix(harness): keep ticket metadata out of project manifest.json
NumberWan Nov 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions src/inferrsi/apps/parallel_round.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
"""Compose Harness parallel-round orchestration with Benchmark v0 gates.

Harness owns prepare / submit / serve / close scheduling. This package binds the
legacy assess port so ``inferrsi.harness.parallel_round`` never imports Benchmark.
"""

from collections.abc import Callable
from datetime import datetime
from pathlib import Path

from inferrsi.apps.legacy.evaluation import run_rules
from inferrsi.benchmark.legacy_run_v0 import evaluate as _evaluate
from inferrsi.contracts import RunSpec
from inferrsi.harness import parallel_round as harness
from inferrsi.infra.platforms.cuda import qualify_devices


def make_assess(spec: RunSpec) -> Callable:
"""Bind v0 gates for one ``RunSpec``; the returned port matches ``runner.run_experiment``."""
rules = run_rules(spec)

def assess(baseline, candidate, validation, integrity, error):
return _evaluate(
rules, baseline, candidate, validation, integrity, run_error=error
)

return assess


def serve_ticket(
round_dir: Path,
ticket: str,
incumbent: Path,
*,
backend,
now: datetime | None = None,
clock=None,
) -> dict:
"""Serve one ticket with the v0 assess composition."""
return harness.serve_ticket(
round_dir,
ticket,
incumbent,
backend=backend,
make_assess=make_assess,
qualify_devices=qualify_devices,
now=now,
clock=clock,
)


def close_round(
round_dir: Path,
incumbent: Path,
*,
backend,
now: datetime | None = None,
clock=None,
) -> dict:
"""Close one round with the v0 assess composition."""
return harness.close_round(
round_dir,
incumbent,
backend=backend,
make_assess=make_assess,
qualify_devices=qualify_devices,
now=now,
clock=clock,
)
Loading
Loading