Repository navigation
tools/rl/accept.py: RL acceptance harness and the mesh_sglang check - #124
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Round 1 pushed afe8835. First round: the harness, the mesh_sglang check and their tests. The gate is green and |
| @@ -0,0 +1,136 @@ | |||
| """A1: ATOMesh's /v1/rl routes over two SGLang workers. | |||
There was a problem hiding this comment.
The docstring opens with A1:, an acceptance-item label from the umbrella issue and the design doc. Code must not cite design-doc labels (rules.md, What gets published). Drop the label and keep the sentence: ATOMesh's /v1/rl routes over two SGLang workers.
| + "exec python3 -m atom.entrypoints.openai_server " | ||
| + shlex.join(argv) | ||
| ) | ||
| flags = ["-w", str(TREE), "-e", f"PYTHONPATH={TREE}"] |
There was a problem hiding this comment.
Non-blocking. A tree outside /share_nfs (say under $HOME) is not mounted: container() mounts only /share_nfs, Docker creates -w <tree> empty, and the image's own atom runs with no error. start_trainer has the same gap. Add -v f"{TREE}:{TREE}" to both flag lists.
| rerun = ["python3", "tools/rl/accept.py", args.check] | ||
| rerun += ["--tree-digest", tree_digest()] | ||
| remote = f"cd {shlex.quote(str(TREE))} && {shlex.join(rerun)}" | ||
| ssh = ["ssh", "-o", "BatchMode=yes", NODE, remote] |
There was a problem hiding this comment.
Non-blocking. Without a tty, sshd sends no SIGHUP when the client goes away, so teardown never runs. The rl-<issue>-* containers keep their GPUs, and the next run fails in refuse_busy before its docker rm -f. Pass -tt, or remove the issue's own containers before the GPU check.
|
REQUEST CHANGES @ afe8835: 1 blocking. Blocking: Checked: gate green at the head; Accepted with reservation: no test goes red when Watch next: #107 to #111 run Evidence
|
…ners, drop a doc label Containers that run the tree's code mount it at its own path, so a tree outside /share_nfs is not silently replaced by the image's own atom. A run on the node first removes its issue's rl-<issue>-* containers, which an earlier run whose ssh client went away left holding GPUs. A test pins that a probe answering the right status with the wrong error code fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Round 2 pushed 1a93edf.
EvidenceNew tests: Revert-red: three changes made together, line count unchanged. (1) The tree mount became
With the fixes restored: 10 passed. |
|
APPROVE @ 1a93edf. No blocking issues. Round 1's blocking Checked: the whole head against #106's brief. Gate green. Accepted with reservation:
Watch next: #107 to #111 first run the ATOM containers, as root over the tree mount. Check that each log's Evidence
|
Closes #106. Ready for review. No blocking issues.
Adds the acceptance harness
tools/rl/accept.py, which the later checks #107 to #111 build on, and its first check,mesh_sglang(A1).Dev record
update_weights_from_diskreports the new version through/model_info, so A1 needs no SGLang changes.lmsysorg/sglang-rocmon g24 has no tag, so the harness names it by image id.accept.pyruns itself on g24 over ssh, once g24 sees the same tree (HEAD, diff and untracked files). Without-tta dropped ssh client leaves that run going, so a run first removes its issue's leftover containers (Harness.remove_leftovers). Containers that run the tree mount it at its own path. The JSON recordscommitanddirty.ISSUE, which sets itsrl-<ISSUE>-<role>container names. Container names end in their port, so a check can start a fresh server next to its workers. GPUs are handed out from 0 upward. A GPU using more than 1 GB is refused, not skipped. Container logs go underrl-accept/logs/<check>/.start_atom_workersinstalls onlyjsonschema, the dependency Spike: what happens to in-flight 1P1D requests when P and D are paused and their weights changed #92 found missing from the image. Its log names theatompackage path that ran.start_pd_pairreturns[p_url, d_url]forstart_mesh(urls, pd=True).equals_freshreturns a bool and comparesoutput_idsoverPROMPTS.start_atom_workers,start_pd_pair,start_trainer,generateandequals_freshhave not run on a GPU yet. Their first GPU runs are in accept: refit_disk and cache checks #107 to accept: pd check #111. The tests parse their command lines withEngineArgs.Named result
python3 tools/rl/accept.py mesh_sglangat 1a93edf (clean tree) printsPASS mesh_sglangand exits 0 in 147 s.Per-route results from mesh_sglang.json
engine: sglangweight_version: defaultweight_version: mesh-sglang-v2selector_requiredinvalid_selectorno_workers_matchworker_not_foundinvalid_engine_pathGates
task-106 @ 1a93edf: gate green; 13826 passed, 1477 skipped, 3 xfailed; cargo tests ok; black and ruff clean.
Evidence
--enable-rlfromHarness.atom_argv. Result: 1 failed, 6 passed.test_atom_workers_start_as_rl_servers_on_their_own_portsfails onassert ('/ckpt', False, 2) == ('/ckpt', True, 2). With the fix restored: 7 passed.FAIL mesh_sglang: model_info w1 after. A mesh that accepts a missing selector, or refuses it with the wrong code, givesFAIL mesh_sglang: probe selector_required. Each exits 1 and writespassed: false.remove_leftoverscall and the probe's code comparison taken out together give 3 failed, 7 passed, one failure per new test. Details are in the round 2 comment.