Repository navigation
test(accept): ATOMesh multimodal acceptance harness core, MMStar, MMMU-Pro, image distinction - #3414
junyyang-amd wants to merge 6 commits into
Conversation
…U-Pro, image distinction Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🏷️ CI GuideRuns automatically on every eligible PR before approval:
Heavy model tests:
Path scope:
|
valar-cop
left a comment
There was a problem hiding this comment.
some changes needed..
accept.sh run for mmstar, mmmu-pro and distinct at this head? and an ATOMesh log sample with the routing fields distinct.py parses?
ci green.
| own fields (not its span's).""" | ||
| events = [] | ||
| for line in log.splitlines(): | ||
| _, mark, fields = ANSI.sub("", line).partition("routing decision") |
There was a problem hiding this comment.
ATOMesh logs 'Selected worker', not 'routing decision', and only with --route-log-sample-rate > 0 which launch_mesh never passes. so this always sees 0 events. no key_hash field exists either..
| echo "${!name:-}" | ||
| } | ||
|
|
||
| cname() { echo "epd-${ACCEPT_ISSUE}-$1"; } |
There was a problem hiding this comment.
cname only keys on ACCEPT_ISSUE, but m31.env tells people to use PORT_BASE to share a node. two runs collide and cleanup rm -f the other run's container. include PORT_BASE in the name and append to CONTAINERS only after docker run succeeds?
| "score": score, | ||
| "stderr": stderr(score, n), | ||
| "n": n, | ||
| "failed_requests": failed_requests(samples[task]), |
There was a problem hiding this comment.
failed_requests never added to failures, unlike mmstar. with n~1730 a few failed requests still pass the 2*stderr. add it or say why tolerated?
| LMMS_EVAL_MAIN = """ | ||
| import json, sys | ||
| import openai | ||
| import lmms_eval.models.simple.openai as backend |
There was a problem hiding this comment.
does --model openai really resolve to lmms_eval.models.simple.openai at the pinned ref? if not the patch does nothing and top_p 0.95 never reaches the server. please confirm and assert the patched client is used..
valarLip
left a comment
There was a problem hiding this comment.
⚠️ Action required before merge (6)
- Don't land a personal, unwired harness; put it on the existing CI path or keep it out of the tree. Nothing in
.github/runstests/accept/atomesh_mm/, andmodels/m31.env:10-19defaults to/share_nfs/junyan_tmp_r120/...and hostpit2-p03-g07(plus theACCEPT_ISSUE=2naming inaccept.sh:23, and the runtimepip install jsonschemaimage workaround inlib.shlaunch_atom). The repo already has.github/scripts/atom_mmstar_ci.sh+atom-mmstar-ci.yaml(lmms-eval MMStar) andatomesh-accuracy-validation.yaml(ATOMesh accuracy). Extend those with a mesh-fronted MM model entry (MMStar/MMMU-Pro), or attach the run results to #3407/#3410 instead of committing this. - Declare or remove the dependency on unmerged #3407.
checks/distinct.py:83parses arouting decisionevent withkey_hash, andlib.shenablesmesh::core::placement::policy_apply=debug. On main that module logs nothing and nokey_hashfield exists; #3407 adds both. On its own,distinctalways fails with "0 routing decision events" (valar-cop). It also can't pass ondirect(there's nomesh.log), so reject that combination up front. - Gate the
directMMStar run on an absolute score.checks/mmstar.pymain(): whenREF_TOPOLOGYis empty, the only failure isfailed_requests, so a 0% run PASSes and then becomes the reference forsingle. Add a per-model threshold, asatom_mmstar_ci.shdoes withMMSTAR_THRESHOLD. - Fail MMMU-Pro on failed requests.
checks/mmmu_pro.py:107recordsfailed_requestsbut never adds them tofailures(mmstar does). Also take the tolerance from the reference, not from the run under test:2 * stderr(score, n)at:102grows as the score falls. It also ignoresREF_TOPOLOGY, sosingleis compared with the recipe and not withdirect(valar-cop). - Make concurrent runs safe.
lib.sh:28names containers only byACCEPT_ISSUE, whilem31.envsays to usePORT_BASEto share a node.lib.sh:57adds the role toCONTAINERSbeforedocker run, so when the second run'srunfails on the name clash, its cleanup runsrm -fon the first run's container. Confirmed by probe. PutPORT_BASEin the name and append only afterrunsucceeds (valar-cop). - Move the shared helpers out of
checks/mmstar.py.mmmu_pro.pyanddistinct.pyimportenv/finish/run_check/run_lmms_evalfrom a check module. Move them to a_common.pyand add CPU unit tests for the pure helpers (answer_line_letter,decision_events,accuracy,names).
Also, in the PR body: post one accept.sh run per check at this head, and an ATOMesh log sample with the fields distinct.py parses (valar-cop).
Reviewed at 236ded5. Checked and not an issue: valar-cop's lmms-eval patch question (mmstar.py:39). At pin 4510f3e, --model openai resolves to models.chat.openai.OpenAICompatible, which subclasses models.simple.openai.OpenAICompatible. That class builds its client through the patched module-global OpenAI, so top_p reaches the server. Adding an assert would still help.
|
ci triage for 236ded5:
|
|
I checked the current state at The green workflow conclusions are not GPU validation for this harness: the actual ATOMesh accuracy and benchmark jobs were skipped in both the original and review-triggered runs. Also, #3407 is still open, changes-requested, and conflicting, so the Please take the following path:
Once those changes and results are available, please ask Lingpeng to re-review. I will not approve the current head. |
valar-cop
left a comment
There was a problem hiding this comment.
some changes needed..
ci Run non-GPU unit tests (Pre Checkin) failed — not sure yet (low): The provided job log is empty (0 bytes), so the failing assertion is not visible. This PR adds only shell/python files under tests/accept/ that pytest's tests/ collection does not pick up, so it cannot reach the CPU suite; the head also carries the stack merges, so the failure cannot be attributed from this log.
.valar/ci/job_137250537679.log is 0 bytes — no log content to inspect
next: Re-run or attach the job log; if it is test_mxfp4_apply_hands_the_shared_output_to_fused_experts as the description says, confirm the same failure on main before attributing it here. https://github.com/ROCm/ATOM/actions/runs/45036247692/job/137250537679
|
|
||
| # Shared storage every node mounts at the same path: the cache (lmms-eval | ||
| # source, the ATOMesh build), the results directory and the HF cache. | ||
| ACCEPT_DIR=${ACCEPT_DIR:-/share_nfs/junyan_tmp_r120/accept} |
There was a problem hiding this comment.
nothing runs this harness, and these defaults are personal host paths.. extend the existing mmstar/atomesh ci instead?
| own fields (not its span's).""" | ||
| events = [] | ||
| for line in log.splitlines(): | ||
| _, mark, fields = ANSI.sub("", line).partition("routing decision") |
There was a problem hiding this comment.
no routing decision event and no key_hash at this head, so this can never pass.. land #3407 first and post one distinct run
|
|
||
| def main(): | ||
| task = "mmstar_notoken" | ||
| ref = reference() if env("REF_TOPOLOGY") else None |
There was a problem hiding this comment.
with no reference a 0% direct run passes and becomes the reference.. add an absolute threshold like atom_mmstar_ci.sh
| "score": score, | ||
| "stderr": stderr(score, n), | ||
| "n": n, | ||
| "failed_requests": failed_requests(samples[task]), |
There was a problem hiding this comment.
failed_requests never appended to failures, and tolerance from the run under test not the reference.. also REF_TOPOLOGY never read?
| echo "${!name:-}" | ||
| } | ||
|
|
||
| cname() { echo "epd-${ACCEPT_ISSUE}-$1"; } |
There was a problem hiding this comment.
cname has no PORT_BASE so two runs collide, and the loser removes the winner's container.. add run id and append after docker run succeeds
| import shutil | ||
| from pathlib import Path | ||
|
|
||
| from mmstar import env, failed_requests, finish, run_check, run_lmms_eval, stderr |
There was a problem hiding this comment.
check module used as a library.. move helpers to _common.py and add cpu tests for the pure ones
The distinct check looked for a `routing decision` event with a `key_hash` field, which neither #3407 nor main emits, so A3 could not pass. It now reads the existing `mesh::route` "Selected worker" event: one per request with `media_count=1`, and a blue `match_ratio` below 1. A media request routes on cache_aware's prefix tree, which by then holds the red request's key, so an equal key would match whole. `checks/distinct.env` turns the route log on (`--route-log-sample-rate 1`) through a new `MESH_ARGS` hook in `launch_mesh`; the unused `policy_apply=debug` RUST_LOG filter is dropped. The M3.1 profile's default image moves to nightly_202611211511: the branch needs aiter's `fused_mixed_sample` (#2914), which older nightlies lack. Checked on pit2-p03-g15: `accept.sh m31 single distinct` PASS (red match_ratio 0.0, blue 0.073, both media_count 1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
||
| # Shared storage every node mounts at the same path: the cache (lmms-eval | ||
| # source, the ATOMesh build), the results directory and the HF cache. | ||
| ACCEPT_DIR=${ACCEPT_DIR:-/share_nfs/junyan_tmp_r120/accept} |
There was a problem hiding this comment.
nothing in .github runs this yet, and these are personal nfs paths and hosts.. wire it into the existing ci path or make them required inputs
|
|
||
| def main(): | ||
| task = "mmstar_notoken" | ||
| ref = reference() if env("REF_TOPOLOGY") else None |
There was a problem hiding this comment.
no absolute floor on direct, so a 0% run passes and becomes the reference.. need a per-model threshold like atom_mmstar_ci.sh
| "score": score, | ||
| "stderr": stderr(score, n), | ||
| "n": n, | ||
| "failed_requests": failed_requests(samples[task]), |
There was a problem hiding this comment.
failed_requests never added to failures, tolerance uses the run under test, and ref always reads the recipe ignoring REF_TOPOLOGY.. please fix all three
| echo "${!name:-}" | ||
| } | ||
|
|
||
| cname() { echo "epd-${ACCEPT_ISSUE}-$1"; } |
There was a problem hiding this comment.
cname ignores PORT_BASE and CONTAINERS is appended before docker run, so a second run can rm -f the first one's container..
Addresses the review of #3417: - Each decision names the PR of the stack that implements it (#3410, #3407, #3411-#3413, #3408, #3409, #3414-#3416); the Acceptance table names the PR that adds each check. - No reference outside ROCm/ATOM remains: the requirement, the measurements and the rules decisions rest on are stated in place. - D4/D5 follow #3410: decode clears `is_multimodal` when P kept the media; only the non-streaming single branch returns `cache_seed`. - D6 names the scheduler's actual refusal of a media-less local prefill. - D3 and A3 describe the route-log `match_ratio` check. - D11 says why matched rails do not apply; D12 states E's word handling as implemented, the 503 on a full pool, and the open gap: P's TP ranks do not agree on a read of E's embeddings. D13 notes `image_grid_thw` is dropped with the pixels once leased. - Harness facts follow #3416's defaults (g07, g08, g24 and HCA maps). - The CLAUDE.md row marks the guide as the design of its PR stack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er names, shared helpers Addresses review items 2-6 on #3414: - distinct reads ATOMesh's route log, so accept.sh refuses it on a topology that starts no ATOMesh (direct) before starting anything; its docstring names the #3407 dependency. - MMStar fails below the profile's MMSTAR_THRESHOLD on every topology (M3.1: 0.68), so a broken direct run no longer passes and becomes the reference; an unset threshold fails the check. A LIMIT run, never recorded as a reference, skips the floor. - MMMU-Pro fails on failed requests, compares single against direct's recorded run when REF_TOPOLOGY is set (the recipe only on direct), and takes its tolerance from the reference's standard error. - Containers are named epd-<ACCEPT_ISSUE>-<PORT_BASE>-<role> and enter the cleanup list only after docker run succeeds, so a run that loses a name clash no longer removes the other run's container. - The lmms-eval helpers move from checks/mmstar.py to checks/_common.py; tests/test_accept_atomesh_mm.py covers the pure helpers and each of the above on CPU. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Closing per review: the harness is not wired into CI and its defaults are one person's hosts and paths, so it stays out of the tree.
|
…hey check With #3414 and #3416 closed, the Acceptance table names the PR each result is posted on (#3407, #3410, #3415) instead of harness files; D8, D17, D18 and D20 describe acceptance topologies and the out-of-tree harness; D19 follows #3415's current cell; the per-PR table drops #3414 and #3416. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ready for review. PR 8 of 11 in stack #3699: #3410 → #3407 → #3411 → #3412 → #3413 → #3408 → #3409 → this PR → #3415 → #3416 → #3417. Stacked on #3409; this PR's diff is its own change only. GPU-only; nothing in the CPU suite runs it.
Why
ATOMesh is gaining image chat for MiniMax-M3.1 and Kimi-K3.1 as a single instance, 1P1D and E/P/D; this series replaces #3371, and #3417 is its design. Before this PR, nothing ran an image benchmark through ATOMesh. An M3.1 MMStar score behind ATOMesh had no direct-server score to be held to, and nothing checked that a red and a blue image under one prompt got different answers and routing keys.
What changed
flowchart LR A["accept.sh model topology check"] --> B["models/m31.env (recipe server)"] A --> C{"topology"} C -->|direct| D[ATOM server] C -->|single| E["ATOMesh, cache_aware"] --> D A --> F["client container: checks/check.py"] F --> G["JSON line, PASS or FAIL"] G --> H["results/model/topology/check.json<br/>(later runs' reference)"]accept.shbrings up one container per role over ssh, runs the check in a client container, prints one JSON line and PASS or FAIL, and removes its containers at exit.mmstarcheck passes onsinglewhen no request failed and the score is within 2 standard errors of the recordeddirectscore.mmmu_procheck scores standard and vision against the recipe's 0.791 / 0.682, sending MMMU-Pro's own vision prompt and reading its lastAnswer: Xline.distinctcheck sends one prompt with a red, then a blue image, with prefix caching on, and requires each answer to name its own color and the two routingkey_hashvalues to differ.Review focus
mmmu_pro, lmms-eval's own vision task sends an empty text and scores the whole response; the check replaces both (vision_task_dir,answer_line_letter).Testing
The harness measured M3.1 behind ATOMesh at the direct score and the recipe's MMMU-Pro scores, with no failed request.
CPU unit suite green except
test_mxfp4_apply_hands_the_shared_output_to_fused_experts, which fails the same way onmain(from #2713).Follow-ups
Evidence
Acceptance on the fork's
EPD@ 8e00a49, from wuhuikx/LLM-Booster#455:bash tests/accept/atomesh_mm/accept.sh m31 single mmstar: 0.7073 against direct 0.7227, 0 failed requests.bash tests/accept/atomesh_mm/accept.sh m31 single mmmu-pro: standard 0.7844, vision 0.6931, against the recipe's 0.791 / 0.682.The distinction check reads ATOMesh's
routing decisiondebug event (key_hash), whichlaunch_meshenables throughRUST_LOG.🤖 Generated with Claude Code