Skip to content

Fix stale TopK availability checks - #5210

Merged
coderfeli merged 1 commit into
ROCm:mainfrom
vorapolsiloai:fix/topk-flydsl-availability-import
Sep 2, 2026
Merged

coderfeli merged 1 commit into
ROCm:mainfrom
vorapolsiloai:fix/topk-flydsl-availability-import

Conversation

@vorapolsiloai

Copy link
Copy Markdown
Contributor

Summary

  • remove stale references to the deleted aiter.ops.flydsl.utils module
  • restore FlyDSL decode TopK dispatch on supported gfx942/gfx950 systems
  • fix op_tests/test_topk_per_row.py collection in the standard-test suite

Context

#5116 removed the optional FlyDSL availability helper and made FlyDSL imports unconditional. #5011 landed later with two references to the removed helper:

  • the test imports it eagerly and fails collection with ModuleNotFoundError
  • the runtime dispatch catches the same import failure and silently disables the FlyDSL TopK path

This was observed in the MI35X standard-test failure on #4761. The failure occurs before any GPU kernel executes.

Test plan

  • PYTHONPYCACHEPREFIX=/tmp/aiter-topk-fix-pycache python3 -m py_compile aiter/ops/topk.py op_tests/test_topk_per_row.py
  • git diff --check
  • verify no Python references to aiter.ops.flydsl.utils or is_flydsl_available remain
  • upstream CI

Made with Cursor

FlyDSL is required after ROCm#5116, so the removed helper breaks test collection and silently disables decode dispatch.

Co-authored-by: Cursor <[email protected]>
@vorapolsiloai
vorapolsiloai requested a review from a team September 2, 2026 11:21
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
multigpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 5210 --add-label <label>

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to opt this PR out.

@github-actions github-actions Bot changed the title [FlyDSL] Fix stale TopK availability checks Fix stale TopK availability checks Sep 2, 2026
@zufayu
zufayu requested a review from junhaha666 September 2, 2026 12:22
@coderfeli
coderfeli merged commit f53e872 into ROCm:main Sep 2, 2026
46 of 49 checks passed
Fyzyukk pushed a commit to Fyzyukk/aiter that referenced this pull request Sep 3, 2026
FlyDSL is required after ROCm#5116, so the removed helper breaks test collection and silently disables decode dispatch.

Co-authored-by: Cursor <[email protected]>
yifehuan pushed a commit that referenced this pull request Sep 17, 2026
…4961)

* [OPUS] Reapply Task1 and Task2 on upstream/main

Reapply the final Task1 Torch-owned split-K workspace and Task2 caller-resolved exact-kid interface state on top of upstream/main@a43694f1.\n\nThis is a squashed final-state review commit; obsolete intermediate Task1/Task2 implementations are intentionally not replayed. The resulting task files match the validated merge candidate.

* [OPUS] Consolidate task documentation

* [OPUS] Document Task1 and Task2 validation workflow

* [OPUS] Preserve upstream MXScale tuned config

* [OPUS] Guard C ABI priming on tensor device

* [OPUS] Drop Task1 and Task2 validation docs

* [OPUS] Optimize Task2 Python dispatch hot paths

* [OPUS] Adapt upstream gfx1250 split-K fixes (#4246)

Reapply upstream commit 1b741c0 on top of the unified public API, canonical exact-kid registry, and caller-owned Torch workspace design.

Adopt the policy-tag N-D TDM API, clusterlaunch grid round-up, compile-time gfx1250 reducer dispatch, mixed-arch device guards, tuned configs, and the final decision to leave the fused family unregistered.

* [OPUS] Document gfx942 and gfx1250 validation plan

* [OPUS] Optimize A16 C ABI launch path

Reuse thread-local tensor descriptors and avoid redundant error calls so MI308 workspace performance stays within repeat noise. Record the full correctness and ABBA validation results.

Co-authored-by: Cursor <[email protected]>

* [OPUS] Isolate A16W16 caller policy

Move the architecture heuristics and tuned-candidate validation into a dedicated policy module while keeping exact execution in the family launcher. Preserve the upstream skinny-to-Torch fallback when no valid tuned row exists.

* [OPUS] Split public GEMM and BMM adapters

* [OPUS] Consolidate launch policy and repair tune routes

* Minimize OPUS integration changes

* Remove generated HTML reports

* Reconcile OPUS branch with latest upstream

* Trim redundant OPUS tests and benchmarks

* Focus OPUS tests on representative regressions

* Drop redundant OPUS interface tests

* Optimize A16 eager dispatch and remove legacy workspace registry

* Add OPUS validation coverage and update documentation

* Add MI308X gfx942 OPUS validation guide

* Remove MI308X OPUS validation guide

* Remove branch-only OPUS test files

* Fix OPUS lint failures

* Fix gfx950 MXFP8 split-K Cvoid compilation

* Format MXFP8 split-K regression test

* Fix no-argument OPUS A16W16 test entry

* Fix OPUS compatibility and tuning paths

* [OPUS] Integrate PR #4903 gfx1250 CO kernels with exact-kid dispatch

- port 219 prebuilt gfx1250 BF16 A16W16 CO kernels
- register CO kernels in the canonical exact-kid registry
- emit host launchers and load packaged CO images at runtime
- preserve caller-owned workspace and the current launch-plan architecture
- add CO manifest, builder, packaging support, tuning routes, and tests
- avoid restoring the legacy shape dispatcher and C++ workspace allocation

* [OPUS] Remove obsolete dsv4pro BF16 tuning config

Match PR #4903 by removing the complete duplicate dsv4pro table instead of retaining its unmatched Triton rows.

* [OPUS] Align BF16 tuning tables with PR #4903

Restore the remaining dsv3 and dsv4 tuning updates from PR #4903 so the shipped gfx1250 routes match the original CO integration results.

* [OPUS] Address PR 4961 must-fix review

Separate public exact-kid dispatch from GEMM and MoE family implementations, and restore the established general A8W8 API boundary.

Tighten fixed-contract attribute access while retaining the develop adapter required by the aiter_tensor_t ABI and HIP stream propagation. Add gfx1250 CO exact-kid numerical and loader-path coverage.

* [OPUS] Keep family modules in the flat package

Move the A16, A8, and MoE family implementations back beside dispatch.py and restore all callers to the original module paths. This avoids changing CK tuner and MoE imports solely for package nesting.

* [OPUS] Address PR 4961 should-fix review

Reuse shared architecture constants in launch planning and policy. Add deterministic source and artifact fingerprints for packaged gfx1250 CO kernels, with CPU verification in the integration suite and OPUS test entry point.

* [OPUS] Fix Python style checks

* Fix MXFP8 BMM policy review issues

* Address OPUS A16W16 review feedback

* Refresh OPUS CO source provenance

The opus.hpp update restores comment formatting only. Refresh the source fingerprint while keeping the verified artifact digest unchanged.

* Simplify OPUS tuned GEMM integration

* Remove OPUS A16W16 C ABI launch path

* [FlyDSL] Remove stale TopK availability checks (#5210)

FlyDSL is required after #5116, so the removed helper breaks test collection and silently disables decode dispatch.

Co-authored-by: Cursor <[email protected]>

* Drop unrelated setup.py comment change

* Revert "Drop unrelated setup.py comment change"

* Drop comment-only packaging diffs

* Remove SHA markers from OPUS policy parity test

* Fix gfx942 split-K launch validation for short K

* Size gfx942 workspace from converged split-K

* Add OPUS A8W8 tuning and exact BMM replay

* Gate OPUS A8W8 tuner to gfx950

* Keep OPUS CO build tooling and artifacts aligned with upstream

Restore gen_co files to the merged upstream version and remove the added
provenance check, CI invocation, and dedicated test. Keep the exact-kid
CO integration and its existing registry, loader, and contract coverage.

Validation: 7 CPU integration tests passed; all 219 CO records match the
current registry. GPU tests were not run for this tooling cleanup.

* Restore upstream OPUS JIT configuration

Reuse upstream cluster-launch handling and CO path define spelling.
The extra JSON escaping produced the same evaluated compiler flag.

Validation: 30 architecture/version gate comparisons and 7 CPU CO
integration tests passed; Ruff and Black passed. No GPU tests were run.

* [OPUS] Fix launch validation and compatibility follow-ups

- converge A16 split-K before workspace sizing across architectures\n- validate MXFP8 saved rows and prefetch constraints before launch\n- restore gfx942 compatibility redirects while keeping exact APIs strict\n- distinguish direct/workspace compiled-table availability\n- align gfx1250 cluster candidate and default-build coverage

* [OPUS] Consolidate redundant regression coverage

Keep exhaustive heuristic, shipped-config, artifact identity, and hardware launch coverage while collapsing duplicate planner, route, compatibility, and tuner cases into their maintained owners.

Validated with Black, Ruff, Python syntax checks, git diff --check, and 98 focused CPU/meta tests plus 22 subtests. GPU tests were not run locally.

* [OPUS] Simplify A16W16 merge resolution

Keep exact-kid launch validation isolated from main's production benchmark path and remove duplicate shape-driven wrappers.

* [OPUS] Remove A16 tuned sweep from test entry

* [CI] Retrigger failed workflows

* [OPUS] Simplify and activate test coverage

* [OPUS] Preserve A16 benchmark data initialization

---------

Co-authored-by: Cursor <[email protected]>
Co-authored-by: vorapolsiloai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants