Repository navigation
refactor(ci): pin the stack in stack.json and test in aiter-test, sglang-test and vllm-test - #220
Merged
Merged
Conversation
xiaobochen-amd
requested review from
RuibinCheung,
irvineoy,
jiejingzhangamd,
kyle-256 and
zhenhuang12
as code owners
November 16, 2026 07:47
xiaobochen-amd
had a problem deploying
to
gpu-trusted
November 16, 2026 07:57 — with
GitHub Actions
Error
There was a problem hiding this comment.
🟡 Changes recommended
Critical validation gaps allow unchecked kernels to pass CI and failing workloads to remain dispatchable, while changed mega_moe schemas lack a working timed qualification path.
8 open issues
Excluding mega_moe leaves changed schemas without timed measurements · New SGLang correctness failures do not block publishing measurements · New Changed kernels can pass CI without qualification in a timed lane · New Normalize scope and exclusion paths before matching · New Default runner lease is shorter than the combined lane durations · New AST import scan misses valid imports and reads docstrings · New Untimed runs leave stale schemas and baselines in the output directory · New Image tags do not pin the stack used for measurements · New
What changed in this PR
This PR centralizes AKLR’s CI stack configuration in stack.json and separates baseline performance validation from SGLang integration checks.
Changes:
- Splits GPU tests, coverage, validation, and measurement publication into sequential AITER and SGLang lanes.
- Adds directory filtering, untimed validation, and reporting for unmet kernel requirements.
- Adds MoRI dependency declarations and updates installation scripts, tests, and contributor guidance.
| File | Description |
|---|---|
tests/core/validation/test_validation_scope.py |
Tests stack-change classification and directory filtering. |
tests/core/validation/test_pipeline.py |
Tests requirement skips and untimed validation. |
tests/core/platform/test_toolchain.py |
Tests MoRI version lookup without importing it. |
tests/core/contract/test_schema.py |
Tests library requirements and dependency detection. |
stack.json |
Defines lane images and the baseline AITER commit. |
scripts/agentx/install_aklr.sh |
Installs AKLR without replacing the serving image’s AITER. |
harness/skills/aklr-read-validation/SKILL.md |
Updates CI job and artifact guidance. |
harness/skills/aklr-read-validation/references/ci.md |
Documents lane-specific validation reports. |
harness/skills/aklr-open-pr/SKILL.md |
Updates required CI evidence and removes review-tier instructions. |
harness/skills/aklr-kb/triton/tuning.md |
Documents lane-specific performance baselines. |
harness/skills/aklr-kb/triton/SKILL.md |
Clarifies the CI Triton version wording. |
harness/skills/aklr-kb/triton/gemm/small_m_gemm.md |
Updates unmet-requirement behavior and citations. |
harness/skills/aklr-kb/triton/debugging.md |
Updates stack, baseline, and validation guidance. |
harness/skills/aklr-kb/triton/authoring.md |
Documents lane environments and requirement skips. |
harness/skills/aklr-kb/SKILL.md |
Points baseline references to stack.json. |
harness/skills/aklr-kb/pitfalls/state_kept_across_calls.md |
Refreshes source-line citations. |
harness/skills/aklr-kb/pitfalls/measured_a_different_build.md |
Explains differing lane dependencies. |
harness/skills/aklr-kb/pitfalls/baseline_silently_wrong.md |
Refreshes baseline-evaluation citations. |
harness/skills/aklr-kb/maintenance/kb_lint.py |
Updates a comment describing the CI image’s Triton. |
harness/skills/aklr-kb/flydsl/SKILL.md |
Updates the baseline configuration reference. |
harness/skills/aklr-kb/communication/INDEX.md |
Updates the AITER reference location. |
harness/skills/aklr-kb/cases/k3_bf16_short_k_large_m.md |
Updates baseline reproduction references. |
harness/skills/aklr-kb/cases/dsa_sparse_mla_8_heads.md |
Refreshes validation source citations. |
harness/scripts/forge_task/README.md |
Redirects baseline setup instructions to CONTRIBUTING. |
harness/gate-config.md |
References the baseline commit in stack.json. |
docs/ops_tutorial.zh.md |
Updates Chinese dependency and CI instructions. |
docs/ops_tutorial.md |
Updates dependency and CI instructions. |
CONTRIBUTING.md |
Documents the centralized baseline commit and installation command. |
benchmarks/agentx/agentx_ci/recipe_resolve.py |
Resolves the serving image from stack.json. |
aklr/plugins/sglang/aiter_calls.py |
Accepts the persistent call argument. |
aklr/ops/README.md |
Documents library requirements and validation options. |
aklr/ops/mega_moe/impls/flydsl/mega_moe_ep_size8_gate_up_interleaved_model_dim7168_n_experts48_topk6_inter_dim3072/d5b3747edd9a783e.json |
Adds a MoRI requirement and clears measurements. |
aklr/ops/mega_moe/impls/flydsl/mega_moe_ep_size8_gate_up_interleaved_model_dim7168_n_experts48_topk6_inter_dim3072/241b9a5b1b52a454.json |
Adds a MoRI requirement and clears measurements. |
aklr/ops/mega_moe/impls/flydsl/mega_moe_ep_size8_gate_up_interleaved_model_dim7168_n_experts48_topk6_inter_dim3072/0bc3f55bd8bcc889.json |
Adds a MoRI requirement and clears measurements. |
aklr/core/validation/stages/validation_scope.py |
Adds directory filtering and stack-triggered revalidation. |
aklr/core/validation/stages/_report/_finding.py |
Removes the toolchain-mismatch finding code. |
aklr/core/validation/stages/_bench/_stage.py |
Adds requirement skips and untimed workload preparation. |
aklr/core/validation/stages/_bench/_report.py |
Reports skipped schemas and excludes untimed speedups. |
aklr/core/validation/stages/_bench/_evaluation/_candidate.py |
Gates baseline warm-up and timing on thresholds. |
aklr/core/validation/command.py |
Exposes filtering and untimed CLI options. |
aklr/core/platform/toolchain.py |
Reads MoRI versions from distribution metadata. |
aklr/core/contract/spec/_kernel.py |
Adds known-library requirements and import scanning. |
aklr/benchmarks/models/glm52/README.md |
References the centralized serving-image configuration. |
.github/workflows/ci.yaml |
Implements both GPU lanes and lane-specific artifacts. |
.github/scripts/select_lint_range.sh |
Extracts lint-range and validation-base selection. |
.github/scripts/publish_measurement.sh |
Publishes measurements from both timed lane reports. |
.github/README.md |
Links stack configuration and adjusts installation guidance. |
.github/pull_request_template.md |
Requests evidence from both validation lanes. |
Review effort: Max
xiaobochen-amd
had a problem deploying
to
gpu-trusted
November 16, 2026 08:09 — with
GitHub Actions
Error
xiaobochen-amd
temporarily deployed
to
gpu-trusted
November 16, 2026 08:55 — with
GitHub Actions
Inactive
xiaobochen-amd
force-pushed
the
cursor/stack-json-f4ec
branch
from
November 17, 2026 03:03
f724073 to
f7603c2
Compare
xiaobochen-amd
temporarily deployed
to
gpu-trusted
November 17, 2026 03:05 — with
GitHub Actions
Inactive
One file at the repository root holds the versions CI runs on, with today's values: sglang_image, vllm_image (AgentX's vLLM runs), pytorch_image (for the aiter lane to come) and aiter, the commit validation times AKLR's kernels against. - ci.yaml: code-lint reads and checks stack.json; the GPU jobs take their image and the baseline AITER from its outputs, and the bot's commit names the image from it. AKLR_CI_IMAGE and the env AKLR_BASELINE_AITER are gone. - Triton is the image's: CI and install_aklr.sh fail if installing AITER replaces it, instead of requiring 3.8.0. A Triton a kernel cannot run on is caught by its kernel.requires. - ValidationScope.path_kind counts stack.json as core, so a new image or baseline re-measures every schema (a change to ci.yaml's pin did not). - install_aklr.sh and AgentX's ci_image read stack.json instead of parsing ci.yaml; AKLR_VLLM_CI_IMAGE moves there as vllm_image. - Docs and the knowledge base name stack.json; the baseline AITER's install line moves from the README to CONTRIBUTING.md.
The three mega_moe kernels import mori but named no mori version, and ci.yaml carried a fix for mori itself (libdrm headers on CPATH for its JIT) that no user environment has. mori's fix belongs in mori, not in AKLR. - ci.yaml: the mori workaround and its CPATH export are gone. - kernel.requires may name a library beside the languages (Library, now only mori); its version is read from the installed distribution (amd_mori), not by importing mori, which sizes its heap on import. - requires_error also rejects a kernel whose Python sources import a library that requires does not name. - The mega_moe kernels require mori>=1.2.4, the sglang 0.5.22 image's (f39fa765); their uuids move.
…s the environment misses For CI's two lanes (aiter, sglang), each of which validates part of the repository in its own image. - --under DIR keeps the schemas under DIR (ValidationScope.under). - --no-timing builds and checks the kernels only: no threshold, so the candidate times nothing, never runs the baseline and reads no incumbent; no schemas/ or baseline/ is written back. - A schema whose kernel.requires the environment misses is skipped, as dispatch skips it, and listed in the report (BenchReport.skipped_schemas); it no longer fails the run. The candidate-side check and the no_matching_toolchain code it raised are gone. - The bench's speedup roll-up counts timed workloads only.
The aiter lane measures aklr/ops on stack.json's aiter_image with the pinned baseline AITER; the sglang lane checks plugins, and aklr/ops untimed, on the serving image as users install it. Both run in turn on one allocated node. Lint-range selection and the measurement commit move into .github/scripts.
… lane jobs The PR template and aklr-open-pr pointed at .github/scripts/review_tier/, which never existed. The kinds of change and what each needs stay; the template and aklr-read-validation now name aiter-lane and sglang-lane instead of validation.
BenchStage now skips a schema whose kernel.requires the environment misses, before any faked runner; the pipeline tests' flydsl and triton schemas no longer depend on what the machine installed.
Pinning mori changed the three kernels' uuids, so each is a new file, and a new file holds no speedup or accuracy until the bot measures it (audit PERF_EDITED).
mega_moe's baseline JIT-builds mori's device bitcode, which misses TheRock's <libdrm/drm.h> (ROCm/mori, _collect_include_dirs, unfixed at 29e0c086). The aiter lane validates aklr/ops with validate --exclude aklr/ops/mega_moe; the sglang lane still checks mega_moe's kernels, untimed.
stack.json re-benches every schema as aklr/core's code does, so the bot's checks that drop a stale measurement say so.
A timed bench demotes a workload whose output mismatches and writes it back as failed, so dispatch never serves it. An untimed bench (the sglang lane's check of aklr/ops) writes nothing back: a demotion there would leave the wrong workload dispatchable, so every finding decides.
The lanes run in turn on one node, whose lease manage_spur_runner.sh defaults to 8 hours; 330 minutes each could outlast it. 240 + 210 minutes leaves room for allocation and image pulls.
…path ./aklr/ops selected nothing and . nothing at all, so a run could pass having checked no schema; a directory outside the repository is now a usage error.
The line pattern missed import torch, mori and an import after a colon, and read an import written in a docstring; ast finds every import statement and nothing else.
…utput write_schemas and write_baselines replace their directories; an untimed run calls neither, so a timed run's schemas and baselines stayed beside its report.
A tag can move: a rerun of the same revision could then measure another Triton, FlyDSL or AITER without stack.json changing. The tag stays beside the digest for the reader; docker pulls by the digest. vllm_image is pinned too, so AgentX takes each framework's image from stack.json as it stands instead of looking the tag's digest up at plan time.
Eleven FlyDSL kernels import aiter beyond their baseline, and two fused_moe ones build on its internals: the 7168 / 48-of-384 / top-6 kernel's private helper, stage kernel names and quant signature exist only in the baseline aiter (0.1.21), so in the sglang 0.5.22 image's aiter (0.1.23) it failed to build. aiter is now a library a kernel names like mori, read from amd-aiter's metadata, and export check rejects a kernel that imports it without a version. - That kernel requires aiter>=0.1.21,<0.1.23: elsewhere dispatch skips it and sglang runs aiter's own MoE, instead of failing the call. - The other ten require aiter>=0.1.21, the aiter they were measured against. - Their uuids move, so their measurements go until CI measures them.
xiaobochen-amd
had a problem deploying
to
gpu-trusted
November 17, 2026 06:31 — with
GitHub Actions
Error
"lane" said nothing about what a job does. Each job's artifacts take its name from github.job, so the LANE variable goes; publish-measurement downloads the renamed validation reports. The docs and skills that name the jobs follow.
xiaobochen-amd
had a problem deploying
to
gpu-trusted
November 17, 2026 06:46 — with
GitHub Actions
Error
The three images, pinned by digest, made the perf commit's subject 446 characters; gh pr create and gh pr edit reject a title that long, so publish-measurement could neither open nor merge the bot PR. The images move to the commit body.
zhenhuang12
temporarily deployed
to
gpu-trusted
November 17, 2026 08:49 — with
GitHub Actions
Inactive
zhenhuang12
pushed a commit
that referenced
this pull request
Nov 18, 2026
* docs(kb): name the kernel files main holds now, after #168 and #220 renamed them #168 (kernel.requires) and #220 (aiter in kernel.requires) renamed every kernel file they touched without changing its code, so the case pages' sources: lines and their text named files main no longer has (kb_reconcile: 0 covered, 100 gone). Each gone file is replaced by the file in its directory whose kernel (entry point and sources) is byte-identical; where #212 added a second schema of the same kernel, by the one with the same workloads. The withdrawn 4ea93103 is left for a separate edit. * docs(kb): mark fused_moe 4ea93103 withdrawn #153 withdrew it (1.043 over aiter, under the 5% bar). Its sources: line goes, the Points table says so, and S8 pins the source to the revision before #153 so the citation still resolves. * docs(kb): GEMM: nt at K=512, bounded-wait fold, ring barrier, cached fold workspace - small_m.md §6: E134's nt cost at K=512 holds for that forge kernel only; #188's direct-to-LDS B stream at the same shape pays 1.66-1.69x with nt (E147). The shape does not decide the policy. - wait_free_fold.md: a waiting fold is safe with a bounded wait, hand-off on timeout and a per-call workspace, as #159's FOLD 4/5 (exact under contention, two streams and concurrent graphs). Cost and risk: a workspace cached per (device, stream), as in #212's Triton n32_k6144, is shared by every graph captured on that stream (wrong outputs). - datapath.md §4: a ring barrier before a DMA refill must also wait lgkmcnt(0); #110's n4096_k8192 races under contention without it. correctness.md and flydsl/gemm.md point there. * docs(kb): mHC 4096 Gram form without a clamp; aiter's stage 2 drops b_nt - cases/mhc_fused_post_pre.md: the hidden-4096 kernel returns NaN when the residual streams cancel; clamp the form at 0 like the hidden-7168 kernel. - moe/grouped_sorted_tokens.md §4, flydsl/moe.md §4: aiter's mixed stage-2 builder discards b_nt, so a _bnt2 row loads w2 cached; restoring it took #122's fused MoE from 256.8 to 217.5 us at 512 tokens. * docs(kb): pitfalls: degenerate Points, eager host time, in-place state - degenerate_points.md (new): Points whose inputs all take a kernel's fast path (#201's FlashMLA q8: every request 8 KV rows) score a speedup that realistic lengths reverse. attention/measurement.md §8 points there. - eager_call_host_time.md (new): the graph-replay speedup leaves out a @flyc.jit launcher's per-call host time; #134's top-k is 2.8-7.1x in replays and 0.18-0.68x of aiter called eagerly. - state_kept_across_calls.md: form 3, a kernel that skips unchanged state stores timed on state replayed in place (#75's GDN decode: 2.40x in place, 1.62x with fresh state). triton/gdn.md points there. * docs(kb): mHC case: the hidden-7168 HIP file #168 renamed, and #202's FlyDSL kernel beside it * docs(kb): evidence counts from the runs' logs; R2 at batch 4 and 8; aiter's top-k fails the reference at 16384
zhenhuang12
added a commit
that referenced
this pull request
Nov 18, 2026
A schema's init, reference, check and baseline are one Standard, defined with its template in code and never written to its json. Schema gains variant; a workload's measurements are its evaluations, one per hardware, each with its speedups by baseline and, where it was timed against the baseline, the kernel's microseconds (main's #193). kernel.build.requires names the language's toolchain and every library the sources import (main's #220: aiter, mori), read from the installed distribution. aklr/core/contract is removed. hsaco (#155) and the toolchain pin (#168) are carried onto the schema model.
zhenhuang12
added a commit
that referenced
this pull request
Nov 18, 2026
Plan: what each workload is timed against and the threshold it must clear. Measure: OpBench, registered per op type, on process runners. Judge: whether a result passes and what is written back. From main since the base: validate --under/--exclude and --no-timing (an untimed bench checks the workloads not recorded failed against nothing and writes nothing back), a schema whose kernel.build.requires the environment misses is skipped and listed instead of failing, and stack.json re-benches every schema (#220).
kyle-256
added a commit
that referenced
this pull request
Nov 19, 2026
…ot (n4096 / k8192) (kernel.py:388, :855) that wait for the DMA only, so a wave can pass one with its reads of the slot the next DMA overwrites still in flight. On MI355X with FlyDSL 0.3.2, under another kernel running on the same GPU, m = 2 came out wrong in 10 of 2000 runs (relative error up to 8.7e-2) and differed bit for bit between two runs of the same input in 26; with lgkmcnt(0) added to both barriers, as #220 did, 0 of 2000 for both, and m = 1 and 4 clean either way. Its uuid moves, so its measurements go until CI measures it.
kyle-256
added a commit
that referenced
this pull request
Nov 19, 2026
…ot (n4096 / k8192) (#277) (kernel.py:388, :855) that wait for the DMA only, so a wave can pass one with its reads of the slot the next DMA overwrites still in flight. On MI355X with FlyDSL 0.3.2, under another kernel running on the same GPU, m = 2 came out wrong in 10 of 2000 runs (relative error up to 8.7e-2) and differed bit for bit between two runs of the same input in 26; with lgkmcnt(0) added to both barriers, as #220 did, 0 of 2000 for both, and m = 1 and 4 clean either way. Its uuid moves, so its measurements go until CI measures it.
zhenhuang12
added a commit
that referenced
this pull request
Nov 20, 2026
A schema's init, reference, check and baseline are one Standard, defined with its template in code and never written to its json. Schema gains variant; a workload's measurements are its evaluations, one per hardware, each with its speedups by baseline and, where it was timed against the baseline, the kernel's microseconds (main's #193). kernel.build.requires names the language's toolchain and every library the sources import (main's #220: aiter, mori), read from the installed distribution. aklr/core/contract is removed. hsaco (#155) and the toolchain pin (#168) are carried onto the schema model.
zhenhuang12
added a commit
that referenced
this pull request
Nov 20, 2026
Plan: what each workload is timed against and the threshold it must clear. Measure: OpBench, registered per op type, on process runners. Judge: whether a result passes and what is written back. From main since the base: validate --under/--exclude and --no-timing (an untimed bench checks the workloads not recorded failed against nothing and writes nothing back), a schema whose kernel.build.requires the environment misses is skipped and listed instead of failing, and stack.json re-benches every schema (#220).
merrittttt
added a commit
to merrittttt/AKLR
that referenced
this pull request
Nov 24, 2026
…ot (n2304 / k8192) gemm_n2304_k8192's gemv path (m <= 16) and split-K path wait at their ring barrier for the DMA only (s_waitcnt vmcnt(N); s_barrier). The gemv K loop is unrolled, so the compiler leaves the last LDS reads of a stage in flight across the barrier, and a wave that passes it issues the next stage's DMA into the slot a slower wave is still reading. Both barriers now also wait lgkmcnt(0), as the big path's already does and as AMD-AGI#220 (n8192 / k4096) and AMD-AGI#277 (n4096 / k8192) did in the twin kernels. The kernel source changes, so the uuid moves (a5184ecc -> 8c12d20a) and its measurements go until CI measures it.
zhenhuang12
pushed a commit
to merrittttt/AKLR
that referenced
this pull request
Nov 25, 2026
…ot (n2304 / k8192) gemm_n2304_k8192's gemv path (m <= 16) and split-K path wait at their ring barrier for the DMA only (s_waitcnt vmcnt(N); s_barrier). The gemv K loop is unrolled, so the compiler leaves the last LDS reads of a stage in flight across the barrier, and a wave that passes it issues the next stage's DMA into the slot a slower wave is still reading. Both barriers now also wait lgkmcnt(0), as the big path's already does and as AMD-AGI#220 (n8192 / k4096) and AMD-AGI#277 (n4096 / k8192) did in the twin kernels. The kernel source changes, so the uuid moves (a5184ecc -> 8c12d20a) and its measurements go until CI measures it.
zhenhuang12
added a commit
that referenced
this pull request
Nov 25, 2026
A schema's init, reference, check and baseline are one Standard, defined with its template in code and never written to its json. Schema gains variant; a workload's measurements are its evaluations, one per hardware, each with its speedups by baseline and, where it was timed against the baseline, the kernel's microseconds (main's #193). kernel.build.requires names the language's toolchain and every library the sources import (main's #220: aiter, mori), read from the installed distribution. aklr/core/contract is removed. hsaco (#155) and the toolchain pin (#168) are carried onto the schema model.
zhenhuang12
added a commit
that referenced
this pull request
Nov 25, 2026
Plan: what each workload is timed against and the threshold it must clear. Measure: OpBench, registered per op type, on process runners. Judge: whether a result passes and what is written back. From main since the base: validate --under/--exclude and --no-timing (an untimed bench checks the workloads not recorded failed against nothing and writes nothing back), a schema whose kernel.build.requires the environment misses is skipped and listed instead of failing, and stack.json re-benches every schema (#220).
zhenhuang12
pushed a commit
that referenced
this pull request
Nov 25, 2026
…ot (n2304 / k8192) (#336) gemm_n2304_k8192's gemv path (m <= 16) and split-K path wait at their ring barrier for the DMA only (s_waitcnt vmcnt(N); s_barrier). The gemv K loop is unrolled, so the compiler leaves the last LDS reads of a stage in flight across the barrier, and a wave that passes it issues the next stage's DMA into the slot a slower wave is still reading. Both barriers now also wait lgkmcnt(0), as the big path's already does and as #220 (n8192 / k4096) and #277 (n4096 / k8192) did in the twin kernels. The kernel source changes, so the uuid moves (a5184ecc -> 8c12d20a) and its measurements go until CI measures it.
RuibinCheung
pushed a commit
that referenced
this pull request
Nov 26, 2026
…ds in their ring stage (n6144 / k6144, n6288 / k7168) (#354) * fix(gemm): keep the strip's MFMA reads in their ring stage; barriers wait for LDS too (n6144 / k6144) gemm_n6144_k6144's strip kernel (m <= 32) runs a 32-column MFMA tile on ring stages that hold only the 24 B rows of its strip, and let the lanes of columns 24-31 read past the stage: into the next stage's first rows, which the loop-head wait does not cover (at m 9-16 they are A rows whose DMAs are still in flight), and past the LDS allocation on the last ring stage. Those columns are never stored, so the output did not depend on what was read, but the read raced the DMA. The lanes now read B rows of their own stage again (r % SW): three more instructions before the K loop, none in it. _barrier waited for the DMA only (s_waitcnt vmcnt(N); s_barrier). The strip and the split-K kernel (m 64, 128) both store per-wave fp32 partials to LDS scratch and read them from other waves behind such a barrier, so a wave could pass it with its stores in flight. It now also waits lgkmcnt(0), the wait #220, #277 and #336 added to the ring barriers of other FlyDSL gemm kernels. The kernel source changes, so the uuid moves (feac6650 -> bf74e6e2) and its measurements go until CI measures it. * fix(gemm): wait for the LDS scratch stores before the barrier their readers pass (n6288 / k7168) gemm_n6288_k7168's skinny kernel (m <= 64) stores per-wave fp32 partials to LDS scratch and sums them across waves behind a barrier that waited for the DMA only (s_waitcnt vmcnt(0); s_barrier), so a wave could pass it with its stores in flight and another could read the scratch before they landed. _barrier now also waits lgkmcnt(0), as the 4-wave kernel's own barrier already does; the ring barriers of the skinny and tiled kernels share the helper and get the same wait, where it is a guard. The kernel source changes, so the uuid moves (f1dc78b3 -> 93d75fc2) and its measurements go until CI measures it.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Why
CI installed an older aiter over the sglang image, so it tested FlyDSL 0.3.2 and aiter 0.1.21 while users run the image's FlyDSL 0.3.4.1 and aiter 0.1.23, and the vLLM plugins never ran in a vLLM image. This PR pins the versions in one file and tests each engine's plugins in that engine's image as it ships.
Scope
stack.jsonpins the sglang, vLLM and aiter-test images (by digest) and the baseline aiter commit; CI, AgentX andinstall_aklr.shread it.aiter-testtimesaklr/opsagainst the baseline aiter;sglang-testandvllm-testtime their engine's plugins and checkaklr/opswithout timing. publish-measurement takes each job's numbers for its own schemas.validate --under/--exclude/--no-timing; kernels whoserequiresthe environment misses are skipped;requirescan namemoriandaiter.gemm_n8192_k4096); the kernel tracer under torch 2.13, which links rocprofiler-sdk; the vLLM routes on vLLM 0.33.0 and its aiter 0.1.26; qwen3_next references in fp32;test_backend_matches_referencechecks the reference at the contract's SQNR (20 dB if none) instead of the kernels' bounds.mega_moeis not timed inaiter-testuntil mori finds libdrm's headers.Tradeoffs
dbd8bf5; moving it belongs to the sglang 0.5.23 / aiter v0.1.29 upgrade.fused_moe,tgemm.mmandmla_decode_fwdroutes declare vLLM 0.33.0 only, since their parameters must equal the image's aiter's; on 0.33.0rc1.dev910 they fall back to vLLM.Verification
Environment: MI355X;
lmsysorg/sglang:v0.5.22-rocm10-mi35x(FlyDSL 0.3.4.1, aiter 0.1.23;aiter-testinstalls aiterdbd8bf5, FlyDSL 0.3.2) andvllm/vllm-openai-rocm:v0.33.0-rocm100(torch 2.13, FlyDSL 0.4.0, aiter 0.1.26); ROCm 10.0, Triton 3.8.0Gate overrides: none
Kernels
12 kernel files only add
aiterormoritorequires, which renames them and drops their measurements until publish-measurement re-measures them.gemm_n8192_k4096now waits for LDS reads before reusing a ring slot: it was wrong about one run in three at m=2, right in 10 of 10 after, at 0.997–1.001 of the incumbent's time.Code
vllm-testby hand: 102 unit tests pass;aklr/plugins/vllm177/177 Points correct, all ≥ 1.05 (1.19–2.19);aklr/opschecked with no finding.aiter-testfull validation on an earlier head: 255 schemas, 2443 Points, pass.export checkand pre-commit pass. No schema or measurement version changes.Not run
Risk
Affects: CI for every schema; the vLLM plugin routes; kernel timing; AgentX's server images.
AgentX: all
If wrong: a CI job fails or skips kernels; a vLLM route falls back to vLLM; timing fails with
platform_failure.Undo:
git revert; the 13 renamed kernel files keep no measurements until re-measured.