Skip to content

refactor(plugins): move the ops of aklr/ops into aklr/plugins/aiter - #327

Merged
xiaobochen-amd merged 2 commits into
mainfrom
feat/migrate-ops-to-aiter
Nov 24, 2026
Merged

xiaobochen-amd merged 2 commits into
mainfrom
feat/migrate-ops-to-aiter

Conversation

@zhenhuang12

@zhenhuang12 zhenhuang12 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Why

aklr/ops and aklr/plugins were two roots for one kind of thing: an op package. The ops AKLR serves through aiter's kernel plugin interface now live beside the provider that serves them, in aklr/plugins/aiter/<op>/, and aklr/ops is gone.

Scope

  • Moves the 13 op packages and their README to aklr/plugins/aiter/, tests/ops to tests/plugins/aiter, and the provider tests to tests/plugins/aiter/provider/. No op, contract, api or kernel source changes; no forwarder is left at the old paths.
  • Core finds op packages only under aklr/plugins (aklr/core/contract/locate.py); CI, pyproject.toml package data, the harness scripts and the docs follow the new path.
  • Not in this PR: the Plugin redesign (api.py and provider/ keep their structure); the 15 names aklr/ops/__init__.py re-exported are not re-exported from aklr.plugins.aiter.

Tradeoffs

  • Measured fields are dropped from the 226 moved schemas that had them (speedup, accuracy, microseconds in workloads; nothing else in the files changes). perf-guard and the audit compare measured fields by path without following renames, so a moved file counts as a new schema with hand-written measurements. The alternative, teaching the gates to follow renames first, needs a PR of its own because perf-guard runs the base's copy.
  • KB pages that say their paths are on a pinned commit (0e02a81, @<sha>: citations) keep aklr/ops: the new path does not exist at those commits.

Verification

Environment: head 51028d4ac for the full run below; after merging main (2e6015ddb, a measurements-only bot commit) into the branch as eebc03f21, tests/plugins/aiter/test_contracts.py tests/core/contract were rerun (371 passed, 216 skipped);, MI300X (gfx942), image lmsysorg/sglang:v0.5.22-rocm10-mi30x
Gate overrides: none

Code

$ python -m pytest -q tests harness/tests --ignore=harness/tests/remote_gpu
3 failed, 1695 passed, 377 skipped
FAILED tests/plugins/aiter/test_reference.py::TestReference::test_backend_matches_reference[[email protected]_0]
FAILED tests/plugins/aiter/test_reference.py::TestReference::test_backend_matches_reference[[email protected]_1]
FAILED tests/plugins/sglang/test_hook.py::test_every_route_was_tested_on_the_installed_sglang

The three failures also fail on main (4415c9a6f) in this image: the two gemm cases at their old path tests/ops/test_reference.py, and the route test because the image's sglang is 0.5.22. ruff check, ruff format --check, tests/check_layout.py and kb_lint.py (0 errors) pass.

aklr/core: no schema or measurement version changes. op_package_of now raises ValueError for an op_type no package has; it used to return aklr.ops.<op_type> unchecked. Which kernels change result against main is not known until CI benches them: every moved kernel is re-measured as a new one.

Not run

  • CI validation of every schema (aiter-test, sglang-test, vllm-test): not run on this head.
  • gfx950-only tests: skipped on the MI300X host.
  • harness/tests/remote_gpu: fails as root in the container, on main too.
  • The CI changes themselves (ci.yaml, perf-guard.yaml, publish_measurement.sh): this PR's own run is not evidence for them; sglang-test's validation scope changes from --under aklr/plugins --exclude aklr/plugins/vllm to --under aklr/plugins/sglang, and its tests from tests/plugins/aiter to tests/plugins/aiter/provider.
  • aklr/core/runtime/dispatch/_trace.py still says aklr/ops in a docstring: protected code, left unchanged.

Risk

Affects: every kernel under aklr/plugins/aiter (all ops AKLR serves through aiter), and any caller importing aklr.ops.
AgentX: all
If wrong: between merge and the bot's next measurement the moved kernels have no accuracy/speedup and are not served, so aiter runs its own; re-measured as new files they are held to the entry threshold (1.05), not retention (0.99), so workloads kept under retention so far stop being served. import aklr.ops fails. The kernels report shows no measurement record for the moved schemas until they are re-measured.
Undo: git revert; measurements the bot published at the new paths after the merge are not undone by it.

Each op family is now a package under aklr/plugins/aiter, beside the aiter
provider that serves it; aklr/ops is gone and core finds op packages under
aklr/plugins only. tests/ops moves to tests/plugins/aiter, the provider tests
to tests/plugins/aiter/provider.

The moved schemas drop their measured fields: the measured-field gates compare
by path, so a moved file would count as a new schema with hand-written
measurements. The bot measures them again on main.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Removing existing measurements risks a prolonged fleet-wide performance regression through fallback dispatch, while reconciliation silently omits AITER kernels from pre-move revisions.

2 open issues
What changed in this PR

Consolidates 13 AITER-served operator packages under aklr/plugins/aiter, alongside their provider, and removes the aklr.ops namespace without compatibility exports.

Changes:

  • Relocates operator packages and tests and updates AITER, SGLang, and vLLM imports.
  • Retargets package discovery, validation, packaging, CI, harness tooling, and documentation to the plugin layout.
  • Removes stored measurement fields from 226 moved schemas, leaving affected workloads unserved until successful remeasurement.
File Description
tests/​plugins/​sglang/​test_hook.py Updates mocked operator-package paths to the AITER plugin namespace.
tests/​plugins/​aiter/​test_sparse_prefill_reference.py Relocates sparse-prefill tests and updates reference imports and schema lookup paths.
tests/​plugins/​aiter/​test_kda_conv_reference.py Relocates convolution-reference tests and updates the reference import.
tests/​plugins/​aiter/​test_hip_kernels.py Relocates HIP kernel tests and updates GEMM imports and API calls.
tests/​plugins/​aiter/​test_contracts.py Updates contract-name snapshot lookup to follow plugin-host package locations.
tests/​plugins/​aiter/​provider/​test_provider_moe.py Moves MoE provider tests into the provider test package and updates API imports.
tests/​plugins/​aiter/​provider/​test_provider_conv.py Moves convolution provider tests into the provider test package and updates the reference import.
tests/​plugins/​aiter/​provider/​__init__.py Establishes the relocated AITER provider test package.
tests/​plugins/​aiter/​fused_moe/​test_kernel.py Relocates fused-MoE kernel tests and updates contract imports, case imports, and schema paths.
tests/​plugins/​aiter/​fused_moe/​test_contract.py Relocates fused-MoE contract tests and updates contract and case imports.
tests/​plugins/​aiter/​fused_moe/​__init__.py Preserves the fused-MoE test package at its new location.
tests/​plugins/​aiter/​cases.py Relocates AITER case definitions and updates their documentation.
tests/​op_case.py Imports AITER case definitions from their relocated test package.
tests/​core/​validation/​test_pipeline.py Updates committed-schema fixture paths to the AITER plugin layout.
tests/​core/​contract/​test_schema.py Updates schema fixture paths and expected operator-package names.
pyproject.toml Updates package-data patterns and coverage exclusions for relocated AITER schemas.
harness/​tests/​forge_task/​test_workspace.py Updates workspace documentation paths and schema-location error expectations.
harness/​tests/​forge_task/​test_driver_contract.py Updates published-schema discovery to search the relocated operator directory.
harness/​tests/​forge_task/​test_cli.py Updates the expected rules-document path in generated task briefs.
harness/​tests/​forge_task/​fake_aklr.py Writes fake repository schemas and documentation under the AITER plugin root.
harness/​skills/​tdd/​tests.md Updates illustrative source and test paths for the relocated operator packages.
harness/​skills/​tdd/​mocking.md Updates mocked repository and schema paths to the plugin layout.
harness/​skills/​read-validation/​SKILL.md Updates validation guidance and contract references to the relocated paths.
harness/​skills/​read-validation/​references/​ci.md Updates documented CI validation scopes and artifact descriptions.
harness/​skills/​qualify-downstream/​SKILL.md Replaces the old ops namespace in downstream interface guidance.
harness/​skills/​qualify-downstream/​references/​workflow.md Updates the namespace named in downstream interface-probing guidance.
harness/​skills/​port-generated-kernels/​SKILL.md Updates the authoritative schema-rules reference to the relocated operator README.
harness/​skills/​port-generated-kernels/​references/​workflow.md Updates contract references and kernel publication destinations.
harness/​skills/​open-pr/​SKILL.md Updates kernel-change classification paths to the AITER plugin root.
harness/​skills/​kb/​triton/​SKILL.md Updates the ABI documentation reference to the relocated operator guidance.
harness/​skills/​kb/​SKILL.md Updates operator, baseline, routing, and workflow references for the plugin layout.
harness/​skills/​kb/​pitfalls/​speedup_from_another_ruler.md Updates workflow and baseline citations to the relocated paths.
harness/​skills/​kb/​patterns/​shape_divergence.md Updates operator README citations for dispatch and compilation guidance.
harness/​skills/​kb/​moe/​few_tokens.md Updates MoE schema and contract references to the AITER plugin layout.
harness/​skills/​kb/​maintenance/​kb_reconcile.py Narrows revision-based schema discovery to aklr/plugins and updates the script docstring.
harness/​skills/​kb/​hip/​SKILL.md Updates the HIP ABI documentation reference.
harness/​skills/​kb/​gemm/​workflow.md Updates the kernel-state rules reference to the relocated operator README.
harness/​skills/​kb/​flydsl/​moe.md Updates the cited MoE schema source path.
harness/​skills/​kb/​flydsl/​gemm.md Updates the example kernel-search path to the AITER plugin root.
harness/​skills/​kb/​CONTRIBUTING.md Updates the authoritative kernel and schema rules reference.
harness/​skills/​kb/​communication/​INDEX.md Updates the MegaMoE operator-package location.
harness/​skills/​kb/​communication/​ep_dispatch_combine.md Updates the MegaMoE kernel synchronization citation.
harness/​skills/​geak-campaign/​SKILL.md Updates kernel publication destinations and rules-document references.
harness/​skills/​bad-cases/​cases/​kernel_calls_reference_or_baseline.md Rewrites the baseline import in a historical incident narrative to the new namespace.
harness/​skills/​bad-cases/​cases/​contract_changed_to_fit_kernel.md Rewrites the contract path in a historical incident narrative to the new layout.
harness/​scripts/​forge_task/​schema.py Updates task-schema discovery paths and schema-location messages.
harness/​scripts/​forge_task/​assets/​program.md Updates the rules-document reference embedded in generated task briefs.
harness/​scripts/​forge_task/​assets/​aklr_forge_driver.py Publishes generated kernels into the relocated AITER operator packages.
harness/​automations/​shepherd/​skills/​optimize-and-deliver-kernels/​scripts/​candidate.py Retargets candidate discovery and freshness filtering to the AITER plugin layout.
docs/​acceptance_criteria.zh.md Updates operator-location references in the Chinese acceptance guidance.
docs/​acceptance_criteria.md Updates operator-location references in the acceptance guidance.
CONTRIBUTING.md Updates the documented schema-only PR and scoped-reference-test paths.
benchmarks/​kernels/​kernels_report/​data_collect.py Updates the report-group example in the collection documentation.
aklr/​plugins/​vllm/​warmup.py Imports GEMM from its relocated AITER operator package.
aklr/​plugins/​vllm/​models/​muse_spark/​reference.py Updates the shared MoE reference import to the AITER plugin namespace.
aklr/​plugins/​vllm/​models/​muse_spark/​api.py Updates the GEMM API import to the relocated operator package.
aklr/​plugins/​vllm/​layers/​utils/​api.py Updates the routed GEMM API import.
aklr/​plugins/​vllm/​layers/​utils/​__init__.py Updates documentation describing the GEMM route target.
aklr/​plugins/​vllm/​layers/​fused_moe_router.py Updates the router's GEMM API import.
aklr/​plugins/​vllm/​layers/​__init__.py Updates documentation describing routed operator locations.
aklr/​plugins/​sglang/​models/​qwen2_moe/​reference.py Updates the shared quantization-helper import to the relocated AITER package.
aklr/​plugins/​sglang/​models/​minimax_m2/​reference.py Updates the shared quantization-helper import to the relocated AITER package.
aklr/​plugins/​sglang/​models/​kimi_k3/​reference.py Updates shared quantization-helper imports to the relocated AITER packages.
aklr/​plugins/​sglang/​models/​deepseek_v2/​reference.py Updates the shared quantization-helper import to the relocated AITER package.
aklr/​plugins/​sglang/​layers/​dsa_backend/​reference.py Updates the shared top-k reference import.
aklr/​plugins/​aiter/​topk/​contract.py Relocates top-k contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​topk/​baseline.py Relocates the top-k baseline implementations without changing their computations.
aklr/​plugins/​aiter/​topk/​api.py Relocates top-k APIs and updates contract imports.
aklr/​plugins/​aiter/​topk/​__init__.py Updates top-k exports to import APIs from the relocated package.
aklr/​plugins/​aiter/​situv2_a4w4_moe/​reference.py Relocates the SiTUv2 reference and updates its shared MoE reference import.
aklr/​plugins/​aiter/​situv2_a4w4_moe/​contract.py Relocates SiTUv2 contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​situv2_a4w4_moe/​baseline.py Relocates the SiTUv2 baseline without changing its computations.
aklr/​plugins/​aiter/​situv2_a4w4_moe/​api.py Relocates the SiTUv2 API and updates its contract import.
aklr/​plugins/​aiter/​situv2_a4w4_moe/​__init__.py Updates SiTUv2 API loading to use the relocated package.
aklr/​plugins/​aiter/​rms_norm/​reference.py Relocates normalization reference implementations without changing their computations.
aklr/​plugins/​aiter/​rms_norm/​contract.py Relocates normalization contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​rms_norm/​baseline.py Relocates normalization baseline implementations without changing their computations.
aklr/​plugins/​aiter/​rms_norm/​api.py Relocates normalization APIs and updates contract imports.
aklr/​plugins/​aiter/​rms_norm/​__init__.py Updates normalization exports to import relocated APIs.
aklr/​plugins/​aiter/​quant/​impls/​hip/​per_group_quant_mxfp8_hidden_size7168/​8480caae0c25689c.json Relocates this MXFP8 quantization schema and removes stored workload measurements.
aklr/​plugins/​aiter/​quant/​impls/​hip/​per_group_quant_fp8_hidden_size7168/​1654009925223f46.json Relocates this FP8 quantization schema and removes stored workload measurements.
aklr/​plugins/​aiter/​quant/​impls/​hip/​per_group_quant_fp8_hidden_size16384/​15815b27fdc69d6b.json Relocates this FP8 quantization schema and removes stored workload measurements.
aklr/​plugins/​aiter/​quant/​contract.py Relocates quantization contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​quant/​baseline.py Relocates quantization baseline implementations without changing their computations.
aklr/​plugins/​aiter/​quant/​api.py Relocates quantization APIs and updates contract imports.
aklr/​plugins/​aiter/​quant/​__init__.py Preserves quantization API exports in the relocated package.
aklr/​plugins/​aiter/​provider/​topk.py Updates the provider to import the relocated top-k API.
aklr/​plugins/​aiter/​provider/​quant.py Updates the provider to import relocated quantization APIs.
aklr/​plugins/​aiter/​provider/​norm.py Updates the provider to import relocated normalization APIs.
aklr/​plugins/​aiter/​provider/​moe.py Updates the provider's MoE API and helper imports.
aklr/​plugins/​aiter/​provider/​mla.py Updates MLA API imports and documentation for the relocated operator packages.
aklr/​plugins/​aiter/​provider/​mla_prefill.py Updates the provider to import relocated MLA prefill APIs.
aklr/​plugins/​aiter/​provider/​mhc.py Updates the provider to import relocated mHC APIs.
aklr/​plugins/​aiter/​provider/​gemm.py Updates the provider to import relocated GEMM APIs.
aklr/​plugins/​aiter/​provider/​conv.py Updates the provider to import the relocated convolution API.
aklr/​plugins/​aiter/​mla/​impls/​flydsl/​mla_decode_fwd_cprr_query_length8_n_heads128/​77cdc6958f9bbd12.json Relocates this MLA decode schema and removes stored workload measurements.
aklr/​plugins/​aiter/​mla/​impls/​flydsl/​mla_decode_fwd_cprr_query_length6_n_heads128/​baca337f6666b639.json Relocates this MLA decode schema and removes stored workload measurements.
aklr/​plugins/​aiter/​mla/​contract.py Relocates MLA contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​mla/​api.py Relocates MLA APIs and updates contract imports.
aklr/​plugins/​aiter/​mla/​__init__.py Updates MLA exports to import relocated APIs.
aklr/​plugins/​aiter/​mla_prefill/​impls/​flydsl/​mla_prefill_varlen_n_heads12_qk_head_dim192_v_head_dim128/​f11f028bedd82c4a.json Relocates this MLA prefill schema and removes stored workload measurements.
aklr/​plugins/​aiter/​mla_prefill/​contract.py Relocates MLA prefill contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​mla_prefill/​baseline.py Relocates MLA prefill baselines and updates the planning-helper import.
aklr/​plugins/​aiter/​mla_prefill/​api.py Relocates MLA prefill API declarations without changing their behavior.
aklr/​plugins/​aiter/​mla_prefill/​__init__.py Preserves MLA prefill API exports in the relocated package.
aklr/​plugins/​aiter/​mla_absorb/​contract.py Relocates MLA absorb contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​mla_absorb/​baseline.py Relocates MLA absorb baselines and updates the shared reference-constant import.
aklr/​plugins/​aiter/​mla_absorb/​api.py Relocates MLA absorb APIs and updates contract imports.
aklr/​plugins/​aiter/​mla_absorb/​__init__.py Updates MLA absorb API loading to use the relocated package.
aklr/​plugins/​aiter/​mhc/​contract.py Relocates mHC contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​mhc/​api.py Relocates mHC APIs and updates contract imports.
aklr/​plugins/​aiter/​mhc/​__init__.py Updates mHC exports to import relocated APIs.
aklr/​plugins/​aiter/​mega_moe/​reference.py Relocates the MegaMoE reference and updates shared quantization-helper imports.
aklr/​plugins/​aiter/​mega_moe/​contract.py Relocates MegaMoE contracts and updates shared contract and implementation imports.
aklr/​plugins/​aiter/​mega_moe/​baseline.py Relocates the MegaMoE baseline and updates the shared MoE baseline import.
aklr/​plugins/​aiter/​mega_moe/​api.py Relocates the MegaMoE API and updates its contract import.
aklr/​plugins/​aiter/​mega_moe/​__init__.py Updates MegaMoE exports to import the relocated API.
aklr/​plugins/​aiter/​kda_conv/​reference.py Relocates the convolution reference implementation without changing its computations.
aklr/​plugins/​aiter/​kda_conv/​contract.py Relocates convolution contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​kda_conv/​api.py Relocates the convolution API and updates its contract import.
aklr/​plugins/​aiter/​kda_conv/​__init__.py Updates convolution exports to import the relocated API.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_n6144_k2048/​8307d207feb8e734.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n7168_k2048/​ff2dc820165bd28a.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n7168_k2048/​fee7e092eab87fc5.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n7168_k2048/​ae4fa8a440b98f09.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n7168_k2048/​362ce3bb6200382e.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n7168_k2048/​1e021d44010accb1.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n7168_k2048/​1db61e7b0dc84d90.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n7168_k2048/​1bbf98a368b3fcba.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n7168_k2048/​0b1065ae9c0652b7.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n7168_k2048/​06755ba3ee5eb085.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​fe8b2de984da2c8e.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​d44d4c8a6e72fa10.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​bfdae6b023b6fb79.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​a93ffba3bd75cf4c.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​a66a3e81c97b9c74.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​a58b14c3b260c693.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​a53b42ca528a06fb.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​a27c4f99b94cc9f9.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​9cf51249fe32228f.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​4a159c69e56742a3.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​32cbf89d1446d9ff.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​29c60a01c1934972.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​244c130438d46c1e.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​0371578d506c48cc.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​triton/​gemm_a8w8_blockwise_scaled_n3072_k1536/​0132de3ee06a9c06.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n7168_k768/​76a583d5b80142e9.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n7168_k512/​869d8015b4aaff53.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n7168_k512/​862651698bc1ad5b.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n7168_k4224/​c7a1d302e0106a35.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n7168_k3584/​4555a998ac66cbf1.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n7168_k1536/​a44d5ffea0075f16.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n7168_k1536/​045ba78a5b5ad415.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n64_k7168/​4db5d8bda3241609.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n64_k4096/​1ceb094e60e8e93a.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n6288_k7168/​fef7914ff133e4c3.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n6288_k7168/​f7822a387c389a3e.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n6288_k7168/​8032702002252f25.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n6144_k6144/​feac6650c272c5eb.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n6144_k4096/​cdf7021145715e8d.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n6144_k4096/​c735728bd507cf29.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n6144_k16384/​bcdd859c59f09017.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n6144_k16384/​83ba6c53658c6b24.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n6144_k1536/​d98f240e6ff6c6bb.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n6144_k1536/​2ad128ac8ad9facc.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n512_k7168/​50444425cd34cf50.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n512_k4096/​2b317e922d5da7e6.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n4096_k2048/​b126a8c213aae21e.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n384_k7168/​a2682619b7a614a8.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n3648_k7168/​81b7a54a4e14be76.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n3648_k7168/​80346ae4876a4c50.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n3648_k7168/​2bdeb6dce0bd3b9b.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n3584_k7168/​b3ecd25ad73a78ca.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n3584_k7168/​5574d6c64e12a50d.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n3584_k512/​ecae7e3c4af063b2.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n3584_k512/​243648f4674e3d98.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n3072_k512/​fa4e12923a15c59a.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n28672_k512/​9849ffb29977d6f1.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n28672_k512/​1bb4b87c023603b1.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n256_k6144/​e144986609f2bd34.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n2304_k1536/​595f5d5c86d5c218.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n2112_k7168/​e5e9b31a93063bdd.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n2112_k7168/​b582144f17b5baa9.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n2048_k2048/​5a9a1fa180113692.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n2048_k2048/​4d9208db05b89bab.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n1536_k7168/​748c8196724951da.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n128_k6144/​c58e9c0252303d4c.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_n1024_k7168/​81bbced6d486e469.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_a8w8_blockwise_scaled_b_shuffled_n7168_k384/​c4f8eed63e5deff1.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_a8w8_blockwise_scaled_b_shuffled_n65536_k1536/​95f46e6ce3030a27.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​impls/​flydsl/​gemm_a8w8_blockwise_scaled_b_shuffled_n16384_k1536/​6f9768d6659b1d4f.json Relocates this GEMM schema and removes stored workload measurements.
aklr/​plugins/​aiter/​gemm/​contract.py Relocates GEMM contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​gemm/​api.py Relocates GEMM APIs and updates contract imports.
aklr/​plugins/​aiter/​gemm/​__init__.py Updates GEMM exports to import relocated APIs.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_situv2_has_expert_mask_act_quant8_gate_up_interleaved_model_dim3584_n_experts112_topk16_inter_dim3072_global_experts896/​dd55bf9f56e32769.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_situv2_has_expert_mask_act_quant8_gate_up_interleaved_model_dim3584_n_experts112_topk16_inter_dim3072_global_experts896/​4d6d7e107e66684a.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_situv2_has_expert_mask_act_quant8_gate_up_interleaved_model_dim3584_n_experts112_topk16_inter_dim3072_global_experts896/​14a9bad610d2bc7c.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_situv2_act_quant8_gate_up_interleaved_model_dim3584_n_experts896_topk16_inter_dim384/​cd34c815d08c302d.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_situv2_act_quant8_gate_up_interleaved_model_dim3584_n_experts896_topk16_inter_dim384/​a4476f79f5fc47c8.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_shuffled_16x16_model_dim6144_n_experts65_topk9_inter_dim2048/​b92ebdd46e149aa2.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_shuffled_16x16_model_dim6144_n_experts65_topk9_inter_dim2048/​178877181ed5a81b.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_shuffled_16x16_model_dim6144_n_experts257_topk9_inter_dim512/​3f488296c3d52d4c.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_shuffled_16x16_model_dim6144_n_experts257_topk9_inter_dim256/​e33e2bc97ec165f1.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_shuffled_16x16_model_dim6144_n_experts257_topk9_inter_dim256/​5d5b47d0fbd5c2ba.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_interleave_has_swiglu_limit_gate_up_interleaved_model_dim4096_n_experts256_topk6_inter_dim512/​7f829107afe8cf06.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_interleave_has_swiglu_limit_gate_up_interleaved_model_dim4096_n_experts256_topk6_inter_dim256/​8e1a32b04ba2889d.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_interleave_has_expert_mask_has_swiglu_limit_gate_up_interleaved_model_dim7168_n_experts96_topk6_inter_dim3072_global_experts384/​d2b807e1d9f19a38.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_interleave_has_expert_mask_has_swiglu_limit_gate_up_interleaved_model_dim4096_n_experts64_topk6_inter_dim2048_global_experts256/​be44bdea6a2c68e0.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_interleave_has_expert_mask_has_swiglu_limit_gate_up_interleaved_model_dim4096_n_experts32_topk6_inter_dim2048_global_experts256/​b0d4e3a0da5b11ef.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_interleave_has_expert_mask_has_num_local_tokens_has_swiglu_limit_gate_up_interleaved_model_dim7168_n_experts96_topk6_inter_dim3072_global_experts384/​681897acaef5eaa7.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_interleave_has_expert_mask_has_num_local_tokens_has_swiglu_limit_gate_up_interleaved_model_dim7168_n_experts48_topk6_inter_dim3072_global_experts384/​2e4cba8745915e22.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_interleave_has_expert_mask_has_num_local_tokens_has_swiglu_limit_gate_up_interleaved_model_dim4096_n_experts64_topk6_inter_dim2048_global_experts256/​3ec1e2056954d02a.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​impls/​flydsl/​fused_moe_interleave_has_expert_mask_has_num_local_tokens_has_swiglu_limit_gate_up_interleaved_model_dim4096_n_experts32_topk6_inter_dim2048_global_experts256/​bf632f3d14712f5c.json Relocates this fused-MoE schema and removes stored workload measurements.
aklr/​plugins/​aiter/​fused_moe/​contract.py Relocates fused-MoE contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​fused_moe/​api.py Relocates the fused-MoE API and updates its contract import.
aklr/​plugins/​aiter/​fused_moe/​__init__.py Updates fused-MoE exports to import the relocated API.
aklr/​plugins/​aiter/​attention/​contract.py Relocates attention contracts and updates baseline and reference imports.
aklr/​plugins/​aiter/​attention/​api.py Relocates attention APIs and updates contract imports.
aklr/​plugins/​aiter/​attention/​__init__.py Updates attention exports to import relocated APIs.
aklr/​plugins/​aiter/​__init__.py Updates package documentation to describe operator packages colocated with the provider.
aklr/​ops/​__init__.py Deletes the legacy aggregate namespace and its 15 API re-exports.
aklr/​core/​validation/​stages/​validation_scope.py Restricts full-scope operator and schema discovery to the plugin tree.
aklr/​core/​validation/​command.py Updates the validation CLI's example scope path.
aklr/​core/​contract/​registry.py Updates the naming-rule documentation reference in schema error guidance.
aklr/​core/​contract/​op.py Updates operator-package documentation for plugin-based package resolution.
aklr/​core/​contract/​export.py Updates the comment describing exported schema locations.
aklr/​benchmarks/​models/​kimi_k3/​README.md Updates workload destinations and schema-rules references.
aklr/​benchmarks/​models/​glm52/​README.md Updates workload destinations and schema-rules references.
aklr/​benchmarks/​models/​deepseekv4/​README.md Updates the referenced operator export workflow.
.github/​workflows/​perf-guard.yaml Restricts guarded schema paths and symlink checks to the plugin root.
.github/​scripts/​reference_contracts.py Recognizes relocated AITER schemas when selecting scoped reference tests.
.github/​scripts/​publish_measurement.sh Updates accepted schema paths and measurement commit image labels.

Review effort: Max

"accuracy": "passed",
"speedup": 7.855,
"microseconds": 11.9
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Known and chosen: the code owner picked dropping the measured fields over a rename-aware guard staged first (the PR body's Tradeoffs and Risk state it). The point about the window is right and worth keeping in view: if the first aiter-test on main after the merge fails before validation, publish-measurement writes nothing and the moved kernels stay unserved until the next aklr/core or stack.json change re-benches them.

@@ -26,7 +26,7 @@
from kb_lint import SKILL_ROOT, read_page

REPO_ROOT = SKILL_ROOT.parents[2]
ROOTS = ("aklr/ops", "aklr/plugins")
ROOTS = ("aklr/plugins",)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not changed. The claim holds (at 4415c9a6f this branch lists 56 FlyDSL kernels, main lists 293), but keeping aklr/ops as a root does not repair that report: the case pages in this checkout name the new paths, so a pre-move revision matches almost nothing either way.

# this branch, ROOTS as in the PR
$ python kb_reconcile.py --rev 4415c9a6f
56 FlyDSL kernels at 4415c9a6f: 2 covered, 0 renamed, 54 missing
# this branch's pages, main's ROOTS ("aklr/ops", "aklr/plugins")
293 FlyDSL kernels at 4415c9a6f: 2 covered, 0 renamed, 291 missing
# main's pages and script, for reference
293 FlyDSL kernels at 4415c9a6f: 88 covered, 60 renamed, 145 missing

At this PR's head the report equals main's: 293 FlyDSL kernels at HEAD: 88 covered, 60 renamed, 145 missing and the same 8 gone. The script reconciles the pages of a checkout with the tree they describe; the default origin/main is pre-move only until this merges.

main's measurements of the moved aiter schemas are not carried over: they
keep no measured fields at their new paths.
@xiaobochen-amd
xiaobochen-amd merged commit 32e17b6 into main Nov 24, 2026
8 of 12 checks passed
@cursor cursor Bot mentioned this pull request Nov 24, 2026
merrittttt pushed a commit to merrittttt/AKLR that referenced this pull request Nov 24, 2026
…MD-AGI#327)

Each op family is now a package under aklr/plugins/aiter, beside the aiter
provider that serves it; aklr/ops is gone and core finds op packages under
aklr/plugins only. tests/ops moves to tests/plugins/aiter, the provider tests
to tests/plugins/aiter/provider.

The moved schemas drop their measured fields: the measured-field gates compare
by path, so a moved file would count as a new schema with hand-written
measurements. The bot measures them again on main.
kyle-256 added a commit that referenced this pull request Nov 25, 2026
…P test names no KDA contract

Main's #327 moved the ops from aklr/ops to aklr/plugins/aiter; the SA6 audit test still wrote its gemm schema under
the old path. The DCP route's AKLR_DISABLE test named a KDA contract this PR no longer has; it names [email protected] now.
The kernels report's comment on a bucketed axis's keys says what serves a range now: a kernel declaring its classes.
kyle-256 added a commit that referenced this pull request Nov 25, 2026
xiaobochen-amd pushed a commit that referenced this pull request Nov 25, 2026
…lugins/aiter (#338)

#327 was built on the tree before #326: it re-added the two withdrawn
kernel files under aklr/plugins/aiter and left #326's kernel-less
definitions behind in aklr/ops, which nothing loads.

Move the two definitions to plugins/aiter and delete the two kernel
files again; aklr/ops is gone.
kyle-256 added a commit that referenced this pull request Nov 25, 2026
kyle-256 added a commit that referenced this pull request Nov 25, 2026
…P test names no KDA contract

Main's #327 moved the ops from aklr/ops to aklr/plugins/aiter; the SA6 audit test still wrote its gemm schema under
the old path. The DCP route's AKLR_DISABLE test named a KDA contract this PR no longer has; it names [email protected] now.
The kernels report's comment on a bucketed axis's keys says what serves a range now: a kernel declaring its classes.
kyle-256 added a commit that referenced this pull request Nov 25, 2026
…P test names no KDA contract

Main's #327 moved the ops from aklr/ops to aklr/plugins/aiter; the SA6 audit test still wrote its gemm schema under
the old path. The DCP route's AKLR_DISABLE test named a KDA contract this PR no longer has; it names [email protected] now.
The kernels report's comment on a bucketed axis's keys says what serves a range now: a kernel declaring its classes.
zhenhuang12 added a commit that referenced this pull request Nov 25, 2026
…schema.py

Main's #327 moved the ops from aklr/ops to aklr/plugins/aiter, beside the aiter provider and two ops
still on the contract layer (mla_absorb, situv2_a4w4_moe). OpVariants.ops imports the api of a
sub-package only when it has a schema.py, and DefaultLayout.paths lists only such a sub-package's
files; the rest of aklr/plugins/aiter stays as on main until the plugins move (TODO.md).

Protected code: for the move, aklr/core/schema/ and aklr/core/runtime/ change in OPS_DIR, in the
import of aklr.plugins.aiter (in the commits that introduce them) and in these two conditions. The
code owner approved them.

The tests' repositories give an op its schema.py, tests read the committed files through the layout
and count the directories up to the checkout from where the ops are now, and migrate_v1 reads the
same sub-packages.
kyle-256 added a commit that referenced this pull request Nov 26, 2026
…P test names no KDA contract

Main's #327 moved the ops from aklr/ops to aklr/plugins/aiter; the SA6 audit test still wrote its gemm schema under
the old path. The DCP route's AKLR_DISABLE test named a KDA contract this PR no longer has; it names [email protected] now.
The kernels report's comment on a bucketed axis's keys says what serves a range now: a kernel declaring its classes.
kyle-256 added a commit that referenced this pull request Nov 26, 2026
zhenhuang12 pushed a commit that referenced this pull request Nov 27, 2026
…ts fp8 attention residual, and the attention-residual and GEMM points main misses (#302)

* feat(plugins/vllm): Kimi-K3's latent-MoE tail as one FlyDSL kernel on ROCmLatentMoERunner._shard_up_proj_tail

Under tensor parallelism vLLM ends each Kimi-K3 latent-MoE layer on ROCm with
four ops in ROCmLatentMoERunner._shard_up_proj_tail: the TP all-reduce of the
routed experts' latent partial, the latent RMSNorm, the addmm of this rank's
up-projection rows into its columns of the shared experts' partial, and the
all-reduce of that shared output. The new contract [email protected]
states the four as one op that every rank of the TP group calls
(ranks="tp_size"); its baseline is vLLM's four ops on vLLM's TP group.

Its one FlyDSL schema (B0, TP 8, hidden 7168, latent 3584) runs them in one
launch and does both TP reductions over peer memory: an uncached buffer each
rank allocates and every rank maps over HIP IPC, set up once over vLLM's TP CPU
group. Below 28 rows the launch takes kernel_small.py, from 28 kernel.py (the
up projection spread over up to 4 sets of workgroups, bulk hand-offs as data
then flag). The schema is unmeasured; its workloads are the row counts 1, 2,
4, 5, 8, 10, 16, 20, 32, 40, 60, 64, 80, 120 and 128, matched exactly.

The route, on vLLM 0.34.0 and 0.32.1rc1.dev276 (the same
latent_moe_runner.py), takes 1 to 128 rows of dense bf16 at TP 8 and hands
anything else back to vLLM. Every decision reads only what is the same on
every rank, so the ranks launch the kernel together. The peer memory is set
up by the first call outside a graph capture. The first eager call of each
row bucket (rows of one bit length) is checked against vLLM's tail on the same
operands; the ranks agree on the verdict, and a bucket any rank finds
different stays with vLLM.

Fail-stop: an in-kernel wait gives up after 10 s, records where it waited and
sets a sticky FAILED word, so no rank hangs. The vLLM plugin gets AFTER_STEP,
a list of watches run after each execute_model on every rank; the op
registers one that every 16 steps has the ranks agree over the CPU group and
raises on all of them at the same step once any rank's wait gave up.

Switches: AKLR_VLLM_MOE_TAIL=0 hands every call back to vLLM;
AKLR_VLLM_MOE_TAIL_CHECK=0 skips the first-call check.

The kernel requires flydsl>=0.3.2, as CI runs; it has been compiled and run on
FlyDSL 0.4.0 only.

Measured on 8 MI355X in the vLLM 0.32.1rc1.dev276 image: 92 layers in one
CUDA graph, cold weights, the slowest rank, us a layer:

    M    B0      vLLM
    1    9.78    40.92
    2    10.40   42.63
    4    11.66   45.25
    5    12.21   44.25
    8    14.26   43.67
    10   16.30   45.85
    16   19.65   45.00
    20   22.99   45.10
    24   25.46   45.35
    32   28.70   46.07
    40   29.93   48.81
    60   35.28   53.06
    64   35.76   53.38
    80   42.10   56.48
    120  49.80   63.69
    128  51.76   64.07

At each M every harness check passes: the same bits on all ranks, within the
contract's bound of the reference, the first-call check against vLLM, AKLR's
dispatch serving the same bits, 100 graph replays each the eager bits, and no
wait gave up. M=24 has no workload in this schema, so here it stays with vLLM.

* feat(fastkey): rows of one page grid that never meet are not an overlap

vLLM keeps a Mamba layer's convolution state and recurrent state in the same
pages: a slot's convolution state, then its recurrent state. Their spans
interleave, so the fast key's overlap test declined every call that writes one
of them in place and reads the other.

Two tensors whose spans meet are now apart when they have the same row stride
in bytes, each row is dense, and the other's row lies, in every page, between
the end of the written one's and the start of the next page. Rows that meet,
or of another stride, still decline.

This changes aklr/core, so validation re-benches every schema.

* feat(plugins): kimi_k3_kda_spec_stage_c, Kimi-K3's KDA layer in a speculative verify step as one FlyDSL launch

In a pure speculative verify step, vLLM's Kimi-K3 runs each KDA layer between
in_proj and o_proj as three kernels: a copy of f_a, the f_b GEMM, and aiter's
fused short convolution + recurrence + gated norm. The new contract
[email protected] states that stage on vLLM's tensors (views of the
in-projection's rows, the conv and recurrent states in their shared Mamba
pages); its baseline is vLLM's f_b GEMM dispatch and aiter's fused kernel.

The route at KimiDecoderLayer._run_self_attn (vLLM 0.34.0 and
0.32.1rc1.dev276) runs vLLM's in_proj, the op, then vLLM's o_proj. Everything
else goes back to vLLM before anything runs: MLA layers, prefill, mixed and
plain decode steps, ragged windows, breakable graphs, and a layer or cache
outside the contract, such as a recurrent state that is not float32 (vLLM
0.34's mamba_ssm_cache_dtype). AKLR_VLLM_KDA_STAGE_C=0 hands every call back.

One FlyDSL kernel (gfx950, 12 heads a rank, DSpark's window of 5), one
schema with a workload at every count of 1-32 sequences, unmeasured. On
MI355X, graph replay, us per layer:

  n_seqs              1     2     4     8    16    24
  stage C          10.6  11.6  12.6  14.1  20.5  30.5
  vLLM f_b + aiter 19.9  18.6  19.6  20.5  24.8  35.5

Against the contract's reference it passes on mixed, padded and chained
windows, and two launches are bitwise equal.

Needs the fast key to take the two caches' interleaved page rows (previous
commit).

* refactor(plugins/vllm): the latent-MoE tail and KDA stage C references in float32, called without decode

#293's contract on main: no decode argument, operands read through to_float32. Stage C's tests' Points carry each
operand's logical dtype.

* feat(plugins/vllm): Kimi-K3's attention residual with an fp8 out, and the K3 attn_res and GEMM points main misses

vLLM's _apply_attn_res asks attn_res for a per-token fp8 out (quant_dtype float8_e4m3fn, with its scale) where the
linear after it takes fp8: about half of Kimi-K3's attention-residual calls. The new contract [email protected]
states that out beside [email protected]'s (its reference in float32, as #293's); the route hands those calls to it
(fnuz fp8 stays with vLLM) and also declares vLLM 0.32.1rc1.dev276, the K3 AgentX image.

124 schemas (unmeasured; CI measures) at the points of the Kimi-K3 AgentX trace that main does not serve, each kept
only where an 11-20 validate on MI355X (vLLM 0.34.0 image, graph mode, paired against the baseline) passed accuracy
and ran >= 1.05x with its lower bound >= 1.0 (310 points measured twice keep the worse):
  kimi_k3_attn_res      74 schemas, 1736 points, 1.05-2.09x
  kimi_k3_attn_res_fp8  44 schemas,  546 points, 1.06-2.20x
  gemm n2112/n6288 k7168 1.14-1.64x, n3584 k7168 1.20x, n20480 k7168 1.13x, n2304 k1536 1.06x, n3072 k512 1.05x

* fix(fastkey): compare the written tensor's storage extent with the others', not their logical sizes

A strided view reaches past its nbytes: a state view one page after its convolution view lands on the
later pages' convolution rows, though the two views' logical sizes end before it. The overlap guard
now compares the extents from the first element to the end of the last (_span) before it asks whether
the two are rows of one page grid apart in every page.

* fix(plugins/vllm): KDA stage C opt-in, tensor-dependent declines asked again, the baseline's float32 scale and staged conv weight

- The route runs only with AKLR_VLLM_KDA_STAGE_C=1, read at each call: over three chained steps of two
  sequences the op and vLLM's served aiter chain are not yet shown to agree.
- The route keeps a shape's verdict only: OUT_OF_CONTRACT, which can come from the step's own tensors (a slot
  table off the fast key's 16-byte alignment), is asked again at the next step, as NOT_WARMED was.
- The baseline compares scale with head_dim ** -0.5 as float32s: the workloads record 0.0883883461356163.
- The baseline's width-major conv weight belongs to the weight tensor, freed with it, and is staged again from
  the weight's values at every call outside a graph capture (validation reloads weights in place); a capture,
  what bench times, reads the copy of the eager call before it.
- state_indices: positive slots distinct, 0 and -1 repeated in vLLM's padding windows; the schema re-rendered
  (uuid unchanged, unmeasured). The drawn distribution stays positive and distinct.
- Tests: the switch, the recheck, the scale, the in-place reload and the staged copy's lifetime; on a GPU, the
  capture, and on gfx950 the kernel on padding windows of 0 and of -1 and a padding row against the reference.

* fix(plugins/vllm): the latent-MoE tail's ranks agree before every collective path; shared written in place; a failed step reported at that step without a host wait

- The route hands the dispatcher aligned, non-overlapping operands and agrees serve or fall back over the TP CPU
  group on each (rows, eps, capture) key's first call; setup agrees after each step that can fail on one rank
  (GPU check, allocation and export, mapping) before the next collective, and releases what it made.
- shared is written in place, as vLLM's addmm_ does: the contract makes it mutable, the reference returns it, and
  both kernels write their own columns in the up stage's epilogue, after the flags.
- Fail-stop: a wait that gives up writes FAILED into every rank's peer buffer; each step copies its rank's word to
  pinned memory on a side stream and the step's output leaves the worker only after that copy is checked in vLLM's
  output thread (no collective, no host wait, nothing inside a capture). PP falls back.
- n_tokens covers the op's own range; the kernel's 128-row cap lives in its workloads and the route's guard.
- Failure-injection tests on spawned gloo ranks.

On 8 MI355X (vLLM 0.34.0 image): within the bound, shared's own columns in place and the others untouched, the
same bits on every rank and over 100 graph replays; a stalled rank's step raises on all 8; setup and alignment
faults agree on all 8; after_step 36 us CPU with the step's GPU work still running (49 of 50 steps), 12.8 us on
the step's stream; 0.5-0.8 us a layer over the head's kernel at M >= 40.

* fix(plugins/vllm): Kimi-K3 attention-residual kernels zero their claim counter in the call, mask with -inf, mix without overflow

In the 12 kernel sources the review found (94 schemas, re-rendered and unmeasured):
- the claim counter is torch.zeros in the call, only where a token past the statically assigned ones can be
  claimed; the rows5 split zeroes its slots' 8-byte tags and reads a partial only under its tag;
- masked lanes score -inf;
- the exponentials are scaled by 2**-4 (exact) instead of left unnormalized, so the mix and its sum of squares
  never exceed the normalized ones; outputs match the previous kernels bit for bit wherever their mix did not
  overflow.

On MI355X: 1348 checks of the review's inputs (claims under a poisoned allocator, 20 eager calls and 20 graph
replays; rows scoring -3.35e38; rows of 2**57) and 50 gfx950 cases pass. Paired with the head's kernels over 120
workloads, graph mode: geomean 0.998, the same bits; the rows5 split at 513-560 tokens is 1.14-1.16x for its
per-call zeroing.

* fix(plugins/vllm): the latent-MoE tail serves vLLM 0.34.0's unpadded calls, whose trunc_size is the hidden width

vLLM 0.34.0 passes a latent MoE with shared experts the shared experts' width as the tail's trunc_size, padded or
not, and keeps states[..., :trunc_size]. The route took any trunc_size as a padded hidden dim, so on Kimi-K3 it
declined every call (seen serving the AgentX recipe on 8 MI355X). Only a size below the hidden width strips columns
now; the test that called HIDDEN padded uses a real truncation, and a new one has None and HIDDEN reach the
dispatcher.

* refactor(plugins/vllm): the latent-MoE tail, KDA stage C and fp8 attention residual on #322's references, baselines and bounds

- [email protected]: KimiK3LatentMoeTailReference (a DistOpReference, every rank's call
  and the rank) and KimiK3LatentMoeTailBaseline (a DistOpBaseline); group.py goes, its peer memory
  set up by the baseline's setup over the default group. No teardown: the buffers live until the
  process ends, as in vLLM, since a rank cannot free its buffer before its peers stop writing to it
  without a collective that a peer stopped at a finding would never join.
- [email protected]: KimiK3KdaSpecStageCReference and KimiK3KdaSpecStageCBaseline on the
  call's keywords; L2_NORM_EPS moves to the reference, which alone reads it. max_violation_fraction
  goes: on MI355X (11-23, before the reference rounded its out) the committed kernel's state_cache
  peaked at 0.19 of its bound and out at 0.34, no element past either.
- The references return their outputs in the declared dtypes, so the bf16 and fp8 outputs' bounds
  add one rounding of the output's dtype (2**-7, 2**-3), as #322 did for the bounds that relied on
  the compare's own allowance: the latent-MoE tail's out and shared, stage C's out and
  kimi_k3_attn_res_fp8's quantized. Float32 and exact bounds are unchanged.
- The tests call the classes and read check()'s failures.
- The 126 schema files of these contracts and of gemm drop max_violation_fraction and
  element_order, rendered by schema_text; their kernels and workloads are unchanged.

* refactor(plugins/vllm): the latent-MoE tail's kernels import their runtime from aklr.core.jit (SA5)

SA5 lets a kernel import nothing of aklr but aklr.core.jit; the tail's kernel.py and
kernel_small.py imported the plugin's runtime module, the per-rank state they run with
(the peer buffers, launch counters and health words) and its constants. The module moves,
unchanged but for one thing, to aklr/core/jit/kimi_k3_latent_moe_tail.py, and the kernels'
one import line follows; the schema file takes its new uuid. The kernels' code and the
workloads are as they were.

The one thing: setup no longer adds the fail-stop watch to the vLLM plugin's AFTER_STEP
(core imports no plugin); the route adds it once its group is set up, as setup did there.

* revert(plugins/vllm): KDA stage C and its fast key change leave this PR

[email protected] is a route without end-to-end evidence: its one schema
holds windows of 5 tokens, and the deployment verifies windows of 8, so the route never
served a step there. Its contract, reference, baseline, route, schema, tests, small
Point and names go, with the AKLR_VLLM_KDA_STAGE_C switch.

The fast key's storage-extent and page-grid overlap tests were added for stage C's
interleaved Mamba pages; they go with it, and aklr/core/contract/fastkey and its test
are main's again. The latent-MoE tail and the attention residual pass their tests
without them.

* refactor(plugins/vllm): the latent-MoE tail's group state lives in its kernel's sources, not in aklr/core

The per-rank state the tail kernel runs with (the peer buffers every rank maps, the launch
counters, the health words and their setup) was aklr/core/jit/kimi_k3_latent_moe_tail.py, one
op's code in the core. It is now runtime.py of the kernel's own sources, as mega_moe keeps its
buffers in its sources, and the kernels import it relatively (SA5):

- The vLLM route sets the group up through the module of the kernel the dispatcher serves the
  call with (api.serving's metadata names the kernel's module; runtime is a module of its
  package), over vLLM's TP group, before that kernel's first call. Where no caller set one up
  (validation's ranks), the kernel's first call sets it up over torch.distributed's default
  group, in a compile function (runtime.default_group). The CPU barrier after a build's first,
  compiling launch is a compile function too (runtime.every_rank_compiled).
- The fail-stop watch, the vLLM plugin's step hook, is the plugin's (failstop.py); it copies
  the group's FAILED word with the runtime's HIP calls. TailGroup keeps only what launches read;
  its unused failed, clear_failed, given_up_waits and close go, with Hip.zero.
- The baseline sets nothing up: vLLM's tail sets its TP group up at its first call.

The route:
- Shapes, dtypes, layouts and the TP size are the op's to judge: the route no longer checks
  them against 8 / 7168 / 3584, and hands vLLM's TP size over. It declines before the
  dispatcher only what vLLM's tail computes otherwise (padded columns stripped, a reduced
  routed output, no latent norm, pipeline stages) and, new, a skipped final all-reduce
  (moe_config.skip_final_all_reduce). Row counts past every committed schema's go back before
  the dispatcher's verdict, which costs a collective at each new count.
- AKLR_VLLM_MOE_TAIL and AKLR_VLLM_MOE_TAIL_CHECK go: [email protected]
  hands every call to vLLM; the first eager call of a row bucket is always checked.
- versions: 0.34.0, the release it was run on.

The kernel's sources otherwise: run_traced (no caller) goes, run returns nothing, the entry
docstring holds no measurement or commit, and requires FlyDSL >= 0.4.2, the version it was
developed and run on. The kernels' device code is unchanged.

* fix(plugins/vllm): the latent-MoE tail's contract states the op, not the kernel; common SQNR bounds

- tp_size takes 2 and 4 too: vLLM runs the tail at any TP size that divides the hidden width.
  latent_size % tp_size goes: vLLM requires no such split; the kernel's own is its schema's.
- out and shared take the GEMM's common bf16 bound (45 dB). The tolerance's absolute part held
  only for partials below 16 in magnitude, the workloads' draws: where a rank's own column cancels
  in the sum over ranks, the kernel's one rounding against vLLM's two (out), or a normalized
  latent rounded apart at a tie (shared), shows in full. The CPU model of the committed kernel's
  layout is at 55 dB (out) and 83 dB or more (shared) from 1 to 128 rows.

* fix(gemm): Kimi-K3's n 2112 / 6288 kernel zeroes the scratch words a launch compares with its tag

The kernel's split launches (tiled.py's two-way K split, which serves its m 600 and 1030
workloads, kernel.py's split-K and skw.py's folds) tell which split folds by comparing scratch
words with the launch's tag (dispatch id and queue), and the call handed them torch.empty
scratch: a word an earlier tensor left there could hold the tag, and a split would fold before
the others wrote their planes. As the attention residual's kernels now do, the call zeroes those
words (aklr/ops/README.md: scratch is written before it is read): the tiles' fold counters after
the partial planes (_scratch; the builders report where they start), and skw.py's scratch whole.
The planes, which every launch writes before it reads them, are not zeroed. The device code is
unchanged; each call with split scratch runs one small fill before the launch.

The schemas require FlyDSL 0.4.2, the version the kernel is run on.

* fix(plugins/vllm): the rows5 attention residual's split build takes the mix's sum of squares from the mix

Past 512 tokens the rows5 kernel spreads each leftover token over 14 column shares, which
exchanged the rows' dots, sums of squares and cross products and took the mix's sum of squares
from those Gram partials, sum w_r^2 |x_r|^2 + 2 sum w_r w_s x_r.x_s. Where rows cancel the terms
are far larger than the result: in a float32 model of the merge, bank rows x and -x at 1024
times the others put 7140 of 7168 columns past the contract's bound, and at 4096 the sum is
negative and the out NaN (the reference, vLLM and the other kernels sum the mix's squares).

The shares now exchange twice: the dots and sums of squares (the scores; the cross products go),
then each share's sum of squares of its own columns of the mix, summed over the token's shares
in slot order; a partner late on either is recomputed from its rows, and p is stored into the
prefix only after both exchanges. The call zeroes both tags of a slot. The float32 model of the
new merge passes the bound at every ratio up to 2**20; a gfx950 test runs the committed kernel at
its split workloads (520, 550) on such rows. The second exchange lengthens the share wave's merge,
which the token waves' second barrier waits for: the split workloads are expected somewhat slower.

* fix(plugins/vllm): the Kimi-K3 attention residual's fp8 bound, overflow-safe reference, export and requires

- kimi_k3_attn_res_fp8's quantized bound is one fp8 code again (2**-3 of the value, 2**-9 below
  the normals): both sides are fp8 values, so the output's own rounding adds nothing.
- The reference takes each mean square of a row scaled down by a power of two first: rows near
  2**58 with a norm passed float32 in their squares and gave 0 where the normalized mix is the norm
  weight. Its results elsewhere are bit for bit the former ones.
- The package exports kimi_k3_attn_res_fp8; the baseline's copy of vLLM's launcher is checked
  against vLLM's in fp8 too (gfx950).
- The contract no longer comments on how a kernel or dispatch serves its tokens.
- One schema of the rows5 kernel goes: it repeated another file's kernel at a subset of its
  workloads.
- The 117 schemas this PR adds require FlyDSL 0.4.2, the version their kernels were developed and
  run on.

* test(plugins/vllm): the latent-MoE tail's committed kernel on 8 gfx950 GPUs

The GPU checks of the tail, run on 8 MI355X by hand so far, as gfx950 tests that spawn 8 ranks of
one torch.distributed group (skipped on fewer than 8 GPUs):

- the kernel computes the op on every rank, at every row count of both builds: the same bits on
  every rank, out and the shared partial's own columns within their bounds of the reference, the
  other columns untouched, 100 graph replays the eager bits, no wait given up; its first call sets
  its group up over the default group, as validation's ranks do;
- through the route and the committed schema every rank serves, and the group the route set up
  through the serving kernel's runtime is the one the kernel reads (the kernel set none up), with
  the fail-stop watching it;
- a rank late past the kernel's (2 s) wait: every rank finishes, the step's output and the next's
  raise on every rank, through the plugin's step hooks and the group word the kernel wrote; late
  below it, the exact out, the output handed over;
- HIP's allocation, export or mapping failing on one rank: setup is None on every rank, nothing
  left, a clean setup after;
- one rank's operand off alignment or aliased, or its dispatcher without the schema: the group
  serves (or declines) together.

* docs(vllm): the plugin tutorial's fp8 output is kimi_k3_attn_res_fp8's; an op whose ranks call it together

The tutorial said the attention residual's fp8 output was in no contract and _triton.py had no fp8
launcher; this PR adds both. A section on the latent-MoE tail states the rules of an op whose ranks
call it together: the same path on every rank, the kernel's state in its own sources set up by
the route (or by its first call over the default group), the in-kernel 10 s wait that fails the
group, the plugin's AFTER_STEP step watch that stops the step, and AKLR_DISABLE to turn it off.

* test(plugins/vllm): the tail's setup-failure test measures what a failed setup leaves, not the process's first tensors

On 8 MI355X the mapping case failed on every run: it is the first case that gets as far as the group's tensors, and a
process's first GPU tensors cost it 2 MiB of the device once (measured per rank: 2.0 MiB on the 7 ranks that mapped,
at the first such case only; 0 at every later one, mapping failures included). The test makes such tensors before it
measures, and the ranks meet at a CPU collective between the release and the measurement, as a peer that still maps a
rank's buffer keeps its memory.

* fix(plugins/vllm): the latent-MoE tail's baseline sets vLLM's TP group up where its sockets' paths fit

CI's vllm-test aborted the tail's schema: every workload's baseline failed with "ZMQError: ipc path ... is longer
than ...". vLLM's TP group binds its message queue's ZMQ sockets at <VLLM_RPC_BASE_PATH>/<uuid4>, the base by default
the temp directory, and validation gives each task a TMPDIR nested deep enough that the path passes the 107 bytes a
Unix socket path holds. The baseline now sets the group up with VLLM_RPC_BASE_PATH at /tmp (vLLM's default without
TMPDIR) where the temp directory is too long, keeps a base the caller set, and puts the variable back afterwards. A
CPU test sets up a stand-in vLLM under validation's nested TMPDIR, a short one, and a preset base; it fails without
the fix.

* docs(tests): the attention residual's scratch test names aklr/plugins/aiter's README, where #327 moved it

* fix(plugins/vllm): the latent-MoE tail's baseline times its graphs inside vLLM's graph_capture

vLLM's TP all-reduce (aiter's custom all-reduce on ROCm) registers the
buffers a CUDA graph reads as vLLM's graph_capture ends, after the capture
and before any replay. The bench captured the baseline's graph outside it
and replayed it at once, so the replays read unregistered peer addresses:
a GPU memory fault at a null address on all 8 ranks, every workload
candidate_crash in CI's vllm-test. The baseline's profile (the candidate's
clock too) now captures each graph inside graph_capture, on the timing's own
stream; its eager calls stay outside, and with no vLLM TP group yet nothing
changes.

* perf(plugins/vllm): the latent-MoE tail's workloads are the rows it wins at in serving, 6 to 14

validate times the kernel alone, and there it is 1.5 to 4.3 times vLLM's tail at every row count to 128. A served
decode step says otherwise past a few rows. Kimi-K3 on 8 MI355X, vLLM 0.34.0, the daily 8K/1K flow, CUDA graphs
replayed on the eight ranks, each step timed alone, AKLR on with the tail served against the tail left to vLLM:

  rows of the step      6      10     16     20     30     40     80
  step, tail served   16.82  17.39    -    21.53  24.45  26.57  34.08 ms
  step, tail vLLM's   16.56  18.04    -    21.02  22.93  25.41  33.18 ms
  the kernel saves    -0.26  +0.65  -0.15  -0.51  -1.52  -1.16  -0.90 ms

(two servers, one prompt a concurrency: about 0.5 ms of resolution). vLLM's two all-reduces, its norm and its addmm
are not slow when eight ranks step together, and the waits of the kernel's hand-offs outweigh the launches it
saves; the kernel's own time shows none of that.

The schema, the same kernel in one file, now holds 6, 8, 10, 12 and 14 rows: the even graph sizes around the one
where the step gains, all in the kernel's small launch (under 28 rows); 8, 12 and 14 were not timed in serving on
their own. The route's guard is the largest committed row count, so it follows to 14. The tests that drove the
route at 15 to 40 rows use rows up to 14.

* fix(plugins/vllm): the latent-MoE tail's contract names out_dtype as its output's dtype param

Since #352 a contract's api takes an out_dtype only where an output's dtype names it; the tail's route and
kernel take one, so its contract names it (the kernel and its schema file are unchanged).

* test(plugins/vllm): the tail's graph-capture test stands in for the timing module

It imported aklr.core.utils.testing inside the test. Importing that module registers AKLR's profiler with
rocprofiler-sdk, which the vLLM image's SDK refuses once the GPU is up: in vllm-test, where the tests before it
have used the GPU, both cases failed on the import (8 MI355X, tests/plugins/vllm in one process). The test only
needs the two names the baseline reads, which it replaced anyway: it now puts a module holding them in
sys.modules and on aklr.core.utils (the baseline's 'from aklr.core.utils import testing' reads the package's
attribute first), and both are put back afterwards.

* test(plugins/vllm): the tail's route tests ask for the row counts its schema holds

Two of the 8-GPU tests went through the route at 1 to 128 rows, and at 10 and 40. Since the schema kept the
rows the kernel wins at in serving (6 to 14), the route serves no other count, and both failed on a GPU
(served: False at the others). They now ask for the schema's own counts; the test of the kernel itself keeps
1 to 128 rows.

* test(plugins/aiter): the K3 GEMM kernel test tells its kernel by the scratch it hands out, not by sizes

The test picked, in gemm_n2112_k7168 and gemm_n6288_k7168, the schema files with skw.py whose smallest m is past
128 rows, to leave out main's sibling kernel (skw.py too, small m, no _scratch). A schema may hold any m: a file
giving the sibling larger sizes (#276 adds one at 148 to 380 rows) was taken for the K3 kernel and failed on
_scratch. It now picks the files whose sources define _scratch, which is what it tests.

---------

Co-authored-by: kyle-256 <[email protected]>
ChengYao-amd added a commit that referenced this pull request Nov 27, 2026
Follows main's moves: the ops now live under aklr/plugins/aiter/provider (#327, #366), so the route
imports flash_mla_with_kvcache from aklr.plugins.aiter.provider.mla and the K3 DCP verify schema moves
there. The schema now carries #339's kernel (the same FlyDSL dense fp8 MLA decode, whose chunk partials
are f16 and normalized by the probabilities the value GEMM reads), so its uuid is 6c9983e6c91c4680;
workloads unchanged (rows 5-40 at the three pool sizes, table width 131073), measurements dropped for
the bot.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants