Repository navigation
feat(gemm_fusion): route sp_qkv_fused v1; keep a reference native, implementation moves to a provider - #6689
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
ruff
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/catalog.py
Line 19 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/catalog.py
Line 21 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/catalog.py
Line 28 in 7d52b20
typing.FrozenSet is deprecated, use frozenset instead
aiter/aiter/gemm_fusion/match.py
Line 13 in 7d52b20
typing.Tuple is deprecated, use tuple instead
aiter/aiter/gemm_fusion/match.py
Line 13 in 7d52b20
Use frozenset instead of FrozenSet for type annotation
aiter/aiter/gemm_fusion/match.py
Line 32 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/match.py
Line 73 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/match.py
Line 74 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/match.py
Line 74 in 7d52b20
typing.Dict is deprecated, use dict instead
aiter/aiter/gemm_fusion/plan.py
Line 8 in 7d52b20
typing.List is deprecated, use list instead
aiter/aiter/gemm_fusion/plan.py
Line 8 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/plan.py
Line 21 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/plan.py
Line 22 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/plan.py
Line 29 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/plan.py
Line 32 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/plan.py
Line 32 in 7d52b20
Import from collections.abc instead: Callable, Sequence
aiter/aiter/gemm_fusion/prebuild.py
Line 28 in 7d52b20
typing.Dict is deprecated, use dict instead
aiter/aiter/gemm_fusion/prebuild.py
Line 28 in 7d52b20
typing.List is deprecated, use list instead
aiter/aiter/gemm_fusion/prebuild.py
Line 28 in 7d52b20
typing.Tuple is deprecated, use tuple instead
aiter/aiter/gemm_fusion/prebuild.py
Line 28 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 49 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 62 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/prebuild.py
Line 64 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 64 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 76 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 78 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 78 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 83 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 111 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 112 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 114 in 7d52b20
Unparenthesized implicit string concatenation in collection
aiter/aiter/gemm_fusion/prebuild.py
Lines 121 to 122 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/prebuild.py
Line 227 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 228 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 231 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 233 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/prebuild.py
Line 239 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/prebuild.py
Line 239 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 251 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 251 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/prebuild.py
Line 252 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 280 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 280 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 399 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 399 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 399 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 411 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 414 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 414 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 415 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/prebuild.py
Line 431 in 7d52b20
typing.Dict is deprecated, use dict instead
aiter/aiter/gemm_fusion/profile.py
Line 19 in 7d52b20
typing.Tuple is deprecated, use tuple instead
aiter/aiter/gemm_fusion/profile.py
Line 19 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/profile.py
Line 41 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/profile.py
Line 41 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/profile.py
Line 47 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/profile.py
Line 70 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/profile.py
Line 70 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/profile.py
Line 86 in 7d52b20
Remove quotes from type annotation
aiter/aiter/gemm_fusion/profile.py
Line 89 in 7d52b20
Remove quotes from type annotation
aiter/aiter/gemm_fusion/profile.py
Line 94 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/profile.py
Line 103 in 7d52b20
Import from collections.abc instead: Callable
aiter/aiter/gemm_fusion/resources.py
Line 32 in 7d52b20
typing.Dict is deprecated, use dict instead
aiter/aiter/gemm_fusion/resources.py
Line 32 in 7d52b20
typing.List is deprecated, use list instead
aiter/aiter/gemm_fusion/resources.py
Line 32 in 7d52b20
typing.Tuple is deprecated, use tuple instead
aiter/aiter/gemm_fusion/resources.py
Line 32 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/resources.py
Line 82 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/resources.py
Line 88 in 7d52b20
Unused noqa directive (non-enabled: E731)
aiter/aiter/gemm_fusion/resources.py
Line 137 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 190 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/resources.py
Line 224 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/resources.py
Line 225 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/resources.py
Line 235 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 244 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 244 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 245 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 246 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/resources.py
Line 248 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 251 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 252 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 256 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 256 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 257 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 258 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 259 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 260 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 261 in 7d52b20
try-except-pass detected, consider logging the exception
aiter/aiter/gemm_fusion/resources.py
Lines 278 to 279 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/resources.py
Line 464 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 482 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 508 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 508 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 515 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/gemm_fusion/resources.py
Line 547 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/resources.py
Line 596 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/resources.py
Line 596 in 7d52b20
typing.Tuple is deprecated, use tuple instead
aiter/aiter/gemm_fusion/spec.py
Line 26 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/spec.py
Line 60 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/spec.py
Line 61 in 7d52b20
Use X | None for type annotations
aiter/aiter/gemm_fusion/spec.py
Line 79 in 7d52b20
Use X | Y for type annotations
aiter/aiter/gemm_fusion/spec.py
Line 82 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/gemm_fusion/spec.py
Line 110 in 7d52b20
Remove quotes from type annotation
aiter/aiter/gemm_fusion/spec.py
Line 112 in 7d52b20
Import block is un-sorted or un-formatted
aiter/aiter/ops/gemm_fusion/sp_qkv/gen_profile.py
Lines 42 to 43 in 7d52b20
typing.Dict is deprecated, use dict instead
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 33 in 7d52b20
typing.List is deprecated, use list instead
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 33 in 7d52b20
typing.Tuple is deprecated, use tuple instead
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 33 in 7d52b20
Import block is un-sorted or un-formatted
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 49 in 7d52b20
Unused noqa directive (non-enabled: E402)
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 49 in 7d52b20
Use tuple instead of Tuple for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 62 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 62 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 62 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 109 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 109 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 109 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 118 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 139 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 139 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 139 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 152 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 152 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 152 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 152 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 159 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 159 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 170 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 170 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 170 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 170 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 183 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 183 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 183 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 194 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 194 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 198 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 198 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 198 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 215 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 215 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 222 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 222 in 7d52b20
subprocess.run without explicit check argument
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 224 in 7d52b20
PEP 484 prohibits implicit Optional
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 239 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 239 in 7d52b20
PEP 484 prohibits implicit Optional
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 239 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 257 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 285 in 7d52b20
PEP 484 prohibits implicit Optional
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 289 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 289 in 7d52b20
PEP 484 prohibits implicit Optional
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 289 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 332 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 352 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 352 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 360 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 360 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 360 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 371 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 371 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 371 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 380 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 380 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 380 in 7d52b20
PEP 484 prohibits implicit Optional
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 384 in 7d52b20
Use dict instead of Dict for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 384 in 7d52b20
PEP 484 prohibits implicit Optional
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 384 in 7d52b20
Unused noqa directive (non-enabled: E731)
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 395 in 7d52b20
Use list instead of List for type annotation
aiter/aiter/ops/gemm_fusion/sp_qkv/jit.py
Line 401 in 7d52b20
Unused noqa directive (non-enabled: E731)
Import from collections.abc instead: Sequence
typing.Dict is deprecated, use dict instead
typing.List is deprecated, use list instead
typing.Tuple is deprecated, use tuple instead
Use X | None for type annotations
Use dict instead of Dict for type annotation
Use list instead of List for type annotation
Use dict instead of Dict for type annotation
Use dict instead of Dict for type annotation
Use X | None for type annotations
Use X | None for type annotations
Use dict instead of Dict for type annotation
Use tuple instead of Tuple for type annotation
Use list instead of List for type annotation
Use list instead of List for type annotation
Use dict instead of Dict for type annotation
Use list instead of List for type annotation
Use a context manager for opening files
Use dict instead of Dict for type annotation
Use tuple instead of Tuple for type annotation
Use dict instead of Dict for type annotation
Unused noqa directive (non-enabled: E731)
Unused noqa directive (non-enabled: E731)
Local variable u64 is assigned to but never used
Import block is un-sorted or un-formatted
aiter/aiter/ops/gemm_fusion/sp_qkv/specs.py
Lines 10 to 12 in 7d52b20
Import from collections.abc instead: Callable
typing.List is deprecated, use list instead
typing.Tuple is deprecated, use tuple instead
typing.Callable imported but unused
typing.Optional imported but unused
Import block is un-sorted or un-formatted
aiter/aiter/ops/gemm_fusion/sp_qkv/test_utils.py
Lines 189 to 190 in 7d52b20
Use list instead of List for type annotation
Use tuple instead of Tuple for type annotation
Use list instead of List for type annotation
Use list instead of List for type annotation
Use list instead of List for type annotation
try-except-pass detected, consider logging the exception
aiter/aiter/ops/gemm_fusion/sp_qkv/test_utils.py
Lines 334 to 335 in 7d52b20
try-except-pass detected, consider logging the exception
aiter/aiter/ops/gemm_fusion/sp_qkv/test_utils.py
Lines 338 to 339 in 7d52b20
try-except-pass detected, consider logging the exception
aiter/aiter/ops/gemm_fusion/sp_qkv/test_utils.py
Lines 387 to 388 in 7d52b20
try-except-pass detected, consider logging the exception
aiter/aiter/ops/gemm_fusion/sp_qkv/test_utils.py
Lines 394 to 395 in 7d52b20
typing.Dict is deprecated, use dict instead
typing.List is deprecated, use list instead
Import block is un-sorted or un-formatted
aiter/aiter/ops/gemm_fusion/sp_qkv/variants.py
Lines 32 to 35 in 7d52b20
Unused noqa directive (non-enabled: E402)
Use dict instead of Dict for type annotation
Use list instead of List for type annotation
Use dict instead of Dict for type annotation
Use dict instead of Dict for type annotation
Use list instead of List for type annotation
Unused noqa directive (non-enabled: E402)
typing.Dict is deprecated, use dict instead
typing.List is deprecated, use list instead
typing.Dict imported but unused
Use a context manager for opening files
Use list instead of List for type annotation
Use a context manager for opening files
Unnecessary dict() call (rewrite as a literal)
aiter/aiter/ops/gemm_fusion/sp_qkv/variants_large.py
Lines 180 to 182 in 7d52b20
Import block is un-sorted or un-formatted
aiter/aiter/ops/gemm_fusion/sp_qkv/variants_large.py
Lines 212 to 214 in 7d52b20
Do not catch blind exception: Exception
aiter/op_tests/gen_gemm_fusion_profile.py
Line 12 in 7d52b20
Unused noqa directive (non-enabled: E402)
aiter/op_tests/gen_gemm_fusion_profile.py
Line 18 in 7d52b20
Import block is un-sorted or un-formatted
aiter/op_tests/test_gemm_fusion_framework.py
Lines 5 to 15 in 7d52b20
Unused noqa directive (unused: F401)
Do not catch blind exception: Exception
Import block is un-sorted or un-formatted
aiter/op_tests/test_gemm_fusion_framework.py
Lines 28 to 32 in 7d52b20
aiter.gemm_fusion.Field imported but unused
aiter.gemm_fusion.WindowReq imported but unused
Import block is un-sorted or un-formatted
aiter/op_tests/test_gemm_fusion_framework.py
Line 100 in 7d52b20
Unused noqa directive (non-enabled: E731)
aiter/op_tests/test_gemm_fusion_framework.py
Line 108 in 7d52b20
Unused noqa directive (unused: F401)
Do not catch blind exception: Exception
Unused noqa directive (unused: F401)
Import block is un-sorted or un-formatted
aiter/op_tests/test_gemm_fusion_prebuild.py
Lines 31 to 32 in 7d52b20
aiter.ops.gemm_fusion.sp_qkv.specs imported but unused
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_prebuild.py
Line 201 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_prebuild.py
Line 204 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_prebuild.py
Line 205 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_prebuild.py
Line 239 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_prebuild.py
Line 240 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_prebuild.py
Line 377 in 7d52b20
Do not catch blind exception: Exception
Import block is un-sorted or un-formatted
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Lines 22 to 28 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
Unused noqa directive (non-enabled: E402)
aiter.ops.gemm_fusion.sp_qkv.test_utils.make_profile imported but unused
Use a context manager for opening files
Use a context manager for opening files
Use a context manager for opening files
Use a context manager for opening files
Unused noqa directive (unused: F401)
Use a context manager for opening files
Use a context manager for opening files
Import block is un-sorted or un-formatted
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Lines 438 to 441 in 7d52b20
Local variable blk is assigned to but never used
Use a context manager for opening files
aiter.gemm_fusion.catalog imported but unused
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter.gemm_fusion.resources.FusionResources imported but unused
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter.gemm_fusion.resources.FusionResources imported but unused
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter.gemm_fusion.resources.FusionResources imported but unused
Import block is un-sorted or un-formatted
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Lines 674 to 675 in 7d52b20
Use a context manager for opening files
Unnecessary dict() call (rewrite as a literal)
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter.gemm_fusion.resources.FusionResources imported but unused
Use a context manager for opening files
Use a context manager for opening files
Unnecessary dict() call (rewrite as a literal)
Unpacked variable binds is never used
Use a context manager for opening files
Use a context manager for opening files
Unpacked variable binds is never used
types imported but unused
Unpacked variable blk is never used
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1016 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1027 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1027 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1058 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1058 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1077 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1077 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1087 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1087 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1097 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1097 in 7d52b20
Local variable r2 is assigned to but never used
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1113 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1123 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1123 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1142 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1148 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1167 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1167 in 7d52b20
Import block is un-sorted or un-formatted
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Lines 1196 to 1197 in 7d52b20
Unused noqa directive (non-enabled: E731)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1206 in 7d52b20
Use of regular expression alias re.M
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1230 in 7d52b20
Use of regular expression alias re.I
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1231 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1293 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1293 in 7d52b20
Unpacked variable binds is never used
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1311 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1328 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1333 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1333 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1376 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1376 in 7d52b20
Prefer itertools.pairwise() over zip() when iterating over successive pairs
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1404 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1435 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1436 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1443 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1443 in 7d52b20
Unpacked variable r is never used
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1468 in 7d52b20
Import block is un-sorted or un-formatted
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1477 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1477 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1477 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1549 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1549 in 7d52b20
Prefer next(m for m in pm if "owner=L" in m) over single element slice
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1580 in 7d52b20
Prefer next(m for m in pm if "owner=S" in m) over single element slice
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1582 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1613 in 7d52b20
Import block is un-sorted or un-formatted
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1697 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1697 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1697 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1731 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1731 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1779 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1779 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1825 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1825 in 7d52b20
Lambda expression called directly. Execute the expression inline instead.
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1834 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1844 in 7d52b20
Redefinition of unused FusionResources from line 24: FusionResources redefined here
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1849 in 7d52b20
aiter.gemm_fusion.resources.FusionResources imported but unused
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1849 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 1871 in 7d52b20
Mutable default value for class attribute
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2028 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2087 in 7d52b20
Use of regular expression alias re.M
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2090 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2131 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2135 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2199 in 7d52b20
Unpacked variable binds is never used
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2205 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2212 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2222 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2223 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2224 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2225 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2226 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2227 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2228 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2229 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2230 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2231 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2232 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2233 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2234 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2235 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2237 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2238 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2239 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2240 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2241 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2242 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2254 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2255 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2256 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2257 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2258 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2259 in 7d52b20
Unpacked variable launches is never used
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2273 in 7d52b20
Unpacked variable l2 is never used
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2280 in 7d52b20
Unpacked variable launches is never used
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2292 in 7d52b20
Unpacked variable binds is never used
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2292 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2319 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2324 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2340 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2341 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2342 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2343 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2344 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2345 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2346 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2347 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2348 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2349 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2350 in 7d52b20
Unnecessary dict() call (rewrite as a literal)
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2351 in 7d52b20
Unpacked variable launches is never used
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2366 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2387 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2401 in 7d52b20
Unpacked variable binds is never used
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2418 in 7d52b20
Use a context manager for opening files
aiter/op_tests/test_gemm_fusion_sp_qkv_small.py
Line 2433 in 7d52b20
db62318 to
f89b496
Compare
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
ruff
Shebang is present but file is not executable
Import block is un-sorted or un-formatted
itertools imported but unused
Use format specifiers instead of percent format
Function definition does not bind loop variable UNITS
Function definition does not bind loop variable push
Use format specifiers instead of percent format
Function definition does not bind loop variable g0
Function definition does not bind loop variable upd
Function definition does not bind loop variable g0
Function definition does not bind loop variable upd
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Shebang is present but file is not executable
Import block is un-sorted or un-formatted
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Import block is un-sorted or un-formatted
re imported but unused
Use a context manager for opening files
Use a context manager for opening files
Use format specifiers instead of percent format
Import block is un-sorted or un-formatted
re imported but unused
Use a context manager for opening files
Use a context manager for opening files
Use format specifiers instead of percent format
Import block is un-sorted or un-formatted
Use a context manager for opening files
Use format specifiers instead of percent format
Use a context manager for opening files
Shebang is present but file is not executable
Import block is un-sorted or un-formatted
itertools imported but unused
Use format specifiers instead of percent format
Function definition does not bind loop variable UNITS
Function definition does not bind loop variable UNIT
Function definition does not bind loop variable u0
Function definition does not bind loop variable UNIT
Use format specifiers instead of percent format
Function definition does not bind loop variable g0
Function definition does not bind loop variable upd
Function definition does not bind loop variable u0
Function definition does not bind loop variable UNIT
Function definition does not bind loop variable upd
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Shebang is present but file is not executable
Import block is un-sorted or un-formatted
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Use format specifiers instead of percent format
Import block is un-sorted or un-formatted
Use a context manager for opening files
Use a context manager for opening files
Use format specifiers instead of percent format
Use a context manager for opening files
Import block is un-sorted or un-formatted
Use a context manager for opening files
Use a context manager for opening files
Import block is un-sorted or un-formatted
Use a context manager for opening files
Use a context manager for opening files
Use a context manager for opening files
Use a context manager for opening files
75dabb5 to
36256e5
Compare
WAITING ON AUTHORPR Self-ReviewRevision Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision. Questions to answer in the PR description
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
`aiter/ops/gemm_fusion/sp_qkv/runtime.py` is the AITER-owned native implementation behind the P0 op contract (`op.py` / `CONTRACT.md`, `sp_qkv_fused` v1). The op hands over one flat dict of contract tensors and the runtime owns every policy that used to be caller state in the gemm_fusion framework: - profile selection: env AITER_GEMM_FUSION_PROFILE (name under aiter/configs/gemm_fusion/ or a path; default minimax_m3_sp4_gfx950_v1). The r19/16K alternate profile is reachable only this way, never as an op argument. - one FusionResources session per (device, rank, world, group id), created on the first eager call or by open_session(); released by close_session(). - plan selection via match_padded(); the matched plan is prepared/bound once per bucket outside graph capture; a first call inside capture is refused, replays run the prepared binding. Bound pointers are checked for moves. - R16 pad-M: a padded call (real local M below the matched bucket) binds bucket-sized staging outputs once and copies the real `T = 4*real M` rows back to the caller's public tensors after every launch (device-side, capturable). - rank-uniform per-process call_ids: monotonic counter masked to the 18 low bits the R12 tag carries (non-zero); documented "all ranks issue the same call sequence" assumption. - R12 ERR-page readback: one async readback per launch, a non-zero word raises a typed GemmFusionDeviceError instead of silently succeeding; check_errors() and close_session() surface the last step's error. - optional native_stage callback on open_session(): the caller's post-prologue attention tail (the framework's stages_native.attend_after_prologue consumption of q/k/v/index_q + the caches the prologue wrote). No ATOM import ever; default None means the caller runs its tail after the op returns. Coverage: coverage-limited native path (CONTRACT.md §8 option B). The runtime serves the fused *prologue* cells: the two-stage plans that write q/k/v/index_q and the KV/index caches (small band; exact buckets and the pad hits that the framework's pad-M selection resolves into them). There is no unfused fallback: uncovered calls raise match.ContractError listing profile/mode/M/arch/cu/world/capabilities. OPEN ITEM with the contract owner: CONTRACT.md §8 also lists the one-stage large band (M 512..16384) as "fused native", but one-stage plans cover only GEMM + SP exchange -- this payload contract carries prologue outputs, so the large band needs a native post-exchange prologue stage (a new aiter kernel/op that #6689 does not have) and currently raises the coverage error. Resolve by narrowing §8 to the prologue cells (large band = provider/option-A follow-up) or by scheduling that extra native stage as new scope. CPU gate (this commit): - op_tests/test_gemm_fusion_sp_qkv_runtime.py: 20 passed (payload validation, coverage errors, session cache/lifecycle, prepare-before-capture + replay, pad-bucket staging + copy-back, exact-bucket direct binding, call-id counter, profile env selection, ERR readback, native-stage callback, lazy imports). - op_tests/test_gemm_fusion_sp_qkv_op.py: 14 passed. - op_tests/test_gemm_fusion_profile_rules.py: 52 passed. - black/ruff clean on both new files. GPU-unverified (CPU-only implementation): real CCO comm/arena/ERR-page creation, plan.prepare/run with the compiled r19 kernels, graph-capture replay, the alternate r19 profile selection on GPU, brute-force byte equality against the #6689 golden cells (including the pad-copy path), the ERR-page fail-stop path, and the ATOM-parity native stage (the callback is exercised only with fakes here).
Adds `runtime.sp_qkv_covers(payload) -> bool`, the session-independent static
coverage query the neutral op re-exports: the same payload validation, spec,
MatchCtx, profile and match_padded rule the native planner uses, but with **no
resource creation, no allocation, no build and no launch**, and without touching
the session cache. It never raises: an invalid payload, unavailable
framework/MORI/profile, world != 4 or an uncovered call returns False; True means
the planner would match a fused prologue plan (padded buckets included). It is
safe on a consumer's __init__ and cheap enough per call.
Wording follows the Lead decision (option (a)): the module doc and the
one-stage coverage error now state that CONTRACT.md §8 narrows fused-native
coverage to the prologue cells and that the one-stage large/r19 band is
**Phase-2** -- an aiter-owned native post-exchange prologue op (or a contract
split), not part of this runtime and not to be added here.
The optional `open_session(native_stage=...)` callback is documented as an
explicitly optional **consumer continuation, not part of the op contract**
(ATOM runs its attention tail after the op; default None; no ATOM import).
Tests: `op_tests/test_gemm_fusion_sp_qkv_runtime.py` grows to 23 (the new ones
assert `sp_qkv_covers` is True for the prologue cells m in {1,2,16,128,256} x
mode, False for the one-stage band (512/600/1024/8192/9216) and on unavailable
profile/bad payload, that no session/resource/allocation happens, and that the
one-stage ContractError names the Phase-2 reason).
Combined-tree gate: runtime tests 23, op tests 19 (integrator's new coverage
tests), profile_rules 52, black/ruff clean.
GPU-unverified (CPU-only implementation): real CCO comm/arena/ERR-page creation,
plan.prepare/run with the compiled r19 kernels, graph-capture replay, the
alternate r19 profile selection on GPU, byte-exactness against the #6689 golden
cells (incl. the pad-copy path and the coverage predicate's device-side
behaviour), the ERR-page fail-stop path, and the ATOM-parity consumer
continuation (faked only in CPU tests).
…e irrelevant Output-binding rule change driven by the ATOM integration questions: - `_prepare_bucket` now always binds bucket-sized **runtime staging outputs** and never the caller's tensors (`_ptr_tuple(include_outputs=False)`), so caller output buffers, slice views and per-layer row ranges no longer participate in the binding. The runtime then copies the real `T = 4*real local M` rows back into whatever output tensors the current call passed (same stream, capturable, captures fine). Exact buckets and pad hits share one binding per `(mode, bucket M)` per session, which is what lets ATOM share one bucket-sized output buffer across layers (or pass disjoint row-range views). - The copy-back row count is now computed **per call** from the current payload's `x.shape[0]` instead of the prepare-time m; previously a second call hitting the same bucket with a different real m copied the wrong number of rows (and the first call's output tensors were stickily reused). - Add `w_scale` to the bound-pointer check: the plan binds it by pointer (the kernels' Wscale); a moved `w_scale` was invisible to the runtime before. - `sp_qkv_covers` doc: tensor payload only needs to be structurally valid (shape/dtype/numel and `w.is_contiguous` are read; no data/device/pointer access), so per-call tensors may be meta/empty placeholders while the bound weights/norm-weights/caches are real; a live GPU/ROCm/MORI context and a real SP group are required, and the answer is for `x.shape[0]` (a 0-row placeholder is rejected; a max-row placeholder answers only that max M). - Tests: 25 (always-staging for exact + pad buckets, shared output buffer across layers, same bucket with different real m copying per call, moved bound pointer rejected, staging handed to the optional consumer continuation). Combined-tree gate: runtime 25, op 19, profile_rules 52, black/ruff clean. GPU-unverified (CPU-only implementation): real CCO/arena/ERR-page creation, plan.prepare/run with the compiled r19 kernels (including the new always-staging binding and copy-back path), graph-capture replay, alternate r19 profile selection on GPU, byte-exactness against the #6689 golden cells, the ERR-page fail-stop path, and the ATOM-parity consumer continuation.
a3cf250 to
6eb97bb
Compare
sp_qkv_fused v1 contract; the fusion implementation moves to an out-of-tree AITER provider
62d6ac0 to
49a3205
Compare
sp_qkv_fused v1 contract; the fusion implementation moves to an out-of-tree AITER provider00f3425 to
2a4bbaf
Compare
|
Heads-up on the Why it conflicts. Not with any particular PR — with Do not resolve it by hand. The baseline is a sorted JSON object and new entries land on adjacent lines, so the conflict markers cut through object bodies — each side ends up holding half a brace. Keeping both sides yields a file that fails Regenerate instead. The gate ships its own scanner, so the baseline can be rebuilt from whatever the merged tree actually contains: python -c "import sys, json, pathlib; sys.path.insert(0, \"tests\");
from test_plugin_contracts import routed_contracts, _BASELINE;
_BASELINE.write_text(json.dumps(routed_contracts(pathlib.Path(\".\")), indent=1, sort_keys=True) + chr(10))"Then One more thing worth knowing: #7728 also touches this file (it routes seven DeepSeek V4.1 contracts). Whichever of the two lands second will hit this again — same fix. Nothing needs coordinating beyond that; the code files do not overlap at all. Unrelated to the conflict, two observations from reading the diff, both offered as information rather than review asks:
|
… an out-of-tree provider AITER keeps the op contract and the aiter.plugin routing surface; the gemm_fusion framework, kernels, configs, runtime and evidence move to the plugin_poc provider. The plugin interface is staged byte-identically from PR #7484 so this branch is testable before #7484 lands. - aiter/plugin/: staged #7484 interface. - aiter/ops/gemm_fusion/sp_qkv: route-only neutral op (route(op=..., version=1)) on the existing flat 15-arg signature; native body raises NoKernelProviderError; CONTRACT.md rewritten for the contract/provider model. - aiter/__init__.py: lazy sp_qkv_fused export; sp_qkv_covers removed. - op_tests/test_gemm_fusion_sp_qkv_op.py: CPU-only registration/no-provider/fake- provider/kill-switch/contract-mismatch/decline tests. - Removed from aiter (now in plugin_poc feat/sp-qkv-aiter-provider): aiter/gemm_fusion, aiter/ops/gemm_fusion/sp_qkv implementation, csrc/gemm_fusion, configs and the implementation docs/tools/tests. CPU gate: pytest op_tests/test_gemm_fusion_sp_qkv_op.py -q -> 7 passed.
2a4bbaf to
bdd5c68
Compare
|
Rebased onto current Understood on #7728 -- whichever of the two lands second will hit the same divergence, and the same scanner regeneration applies. Thanks also for the CONTRACT.md observation; if it works out here, I may propose it as the recommended shape in a follow-up. |
|
@aiter-bot review |
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
|
aiter-bot — queued behind 2 review(s); expect to start in about 57 min. The box reviews one PR at a time. |
@yhl-amd — please take a look. Triage: if GLM serves but its output is malformed it may be the ATOM framework (@valarLip); if the box, GPU, disk or network is unhealthy it may be the machine (@gyohuangxin). Re-comment |
#6689 added the sp_qkv_fused contract. Clean merge; verified rather than assumed -- 16 contracts with none added or lost by this branch, both the eager snapshot and _as_custom_op intact, and the registered op still an OpOverloadPacket. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
#6689 added sp_qkv_fused to the baseline. Clean merge -- the two entries are far enough apart in a sorted file not to collide this time. Verified: 17 contracts, main's 16 plus mla_sparse_prefill, none lost. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
… an out-of-tree provider (#6689) AITER keeps the op contract and the aiter.plugin routing surface; the gemm_fusion framework, kernels, configs, runtime and evidence move to the plugin_poc provider. The plugin interface is staged byte-identically from PR #7484 so this branch is testable before #7484 lands. - aiter/plugin/: staged #7484 interface. - aiter/ops/gemm_fusion/sp_qkv: route-only neutral op (route(op=..., version=1)) on the existing flat 15-arg signature; native body raises NoKernelProviderError; CONTRACT.md rewritten for the contract/provider model. - aiter/__init__.py: lazy sp_qkv_fused export; sp_qkv_covers removed. - op_tests/test_gemm_fusion_sp_qkv_op.py: CPU-only registration/no-provider/fake- provider/kill-switch/contract-mismatch/decline tests. - Removed from aiter (now in plugin_poc feat/sp-qkv-aiter-provider): aiter/gemm_fusion, aiter/ops/gemm_fusion/sp_qkv implementation, csrc/gemm_fusion, configs and the implementation docs/tools/tests. CPU gate: pytest op_tests/test_gemm_fusion_sp_qkv_op.py -q -> 7 passed.
Summary
This PR keeps the AITER-owned
sp_qkv_fusedv1 contract, routing and a slowreference native; the tuned
gemm_fusionframework, kernels, profile configs andevidence move to the out-of-tree plugin_poc provider. The reference native means a
call never becomes unroutable when no provider is installed; the provider is the fast
path. The reference models one rank's view: every source token block carries the
local rank's head shard, so with byte-identical inputs the blocks are value-neutral
(the invariant the node-58 GPU e2e compares).
What stays in AITER
aiter/ops/gemm_fusion/sp_qkv/op.py— the routed op on the existing flat15-positional + keyword-only signature:
@route(op="sp_qkv_fused", version=1).If no provider serves, the native body runs a pure-PyTorch reference: dequantise
x/w, undo the 16x16 weight preshuffle, GEMM, Gemma RMSNorm, partial NeoX RoPE, and
write
q/k/v(orindex_q) plus golden-shuffle KV/index caches. It is correctbut deliberately slow and models one rank's view (no SP exchange); it is not a tuned
kernel.
aiter/ops/gemm_fusion/__init__.py+sp_qkv/__init__.py— minimal export shims.aiter/ops/gemm_fusion/sp_qkv/CONTRACT.md— contract/provider model, nativereference semantics and limits.
aiter/__init__.py— lazysp_qkv_fusedexport.tests/plugin_contracts.json— records the routed v1 signature so the stock-maininterface contract test accepts the new route.
op_tests/test_gemm_fusion_sp_qkv_op.py— CPU torch tests: registration against themerged main interface, no provider runs native (q/caches written in place, pad
slots untouched), fake provider wins and native is not called, decline and kill
switch fall back native, wrong op version rejected, invalid mode/shape/dtype errors,
unsupported native case
NotImplementedError, determinism, indexer path, and ablock-invariance/local-shard test that fails on the old
block s -> shard smapping(15 CPU tests).
What was removed, and where it went
Removed from AITER:
aiter/gemm_fusion/**(tuned framework, profile/match/spec/plan/resources/prebuild);aiter/ops/gemm_fusion/sp_qkv/{runtime,jit,variants*,specs,inputs,small_rt,large_rt,r18_gemm,prebuild,gen_profile,p1_sweep,test_utils}.py;csrc/gemm_fusion/**;aiter/configs/gemm_fusion/**;They now live in the plugin_poc repository on branch
feat/sp-qkv-aiter-provider: provider PRhttps://github.com/coderfeli/plugin_poc/pull/1. GPU correctness/evidence and the tuned
kernels belong there; this repo keeps the contract and the reference fallback.
Provider interface
This PR relies on
aiter.pluginas merged on main (#7465 / #7466); no interfacefiles are added by this PR. The op uses the merged
route/configureAPI andregisters
sp_qkv_fusedv1 against it, so the contract is exercised on stock main.Native reference limits
T = 4*Mrows are four source token blocks;t // Mselectsthe source block,
t % Mthe local token row inxused to compute it. Every blockcarries the local rank's q/k/v/index head shard, and ik is replicated. The
reference performs no SP exchange; with byte-identical inputs across ranks all blocks
are value-identical, which is the property the GPU e2e compares.
matmul); the provider keeps the native fp8 kernels.
Revision matrix
023a9d147(currentorigin/main)bdd5c6816582d19d0(and refactora3cf2502f)feat/sp-qkv-aiter-provider@38fd0c11, PR https://github.com/coderfeli/plugin_poc/pull/1CPU-only verification
Local Windows CPU run:
The op tests exercise the native reference on ordinary torch CPU tensors; no GPU was
used. The block-invariance/local-shard test constructs distinct per-shard weights so
the old mapping would fail on CPU. Provider discovery uses a synthesized
.dist-infoplus the stock-maininterface's
_reset_for_testing(); no private interface records are injected.Not run
GPU smoke / known issue
Node-58 GPU e2e found two issues in the reference native and drove this correction:
_qv_rowsbuilt index tensors on CPU and indexed CUDAtensors; every index tensor in the native path now uses the input device (with a
strict fake-device regression test);
block s -> shard s, while the fused exchangegives every source token block the local rank's shard. The old mapping made the
own block match and peer blocks differ by the other q-head weights when compared with
the provider; the corrected reference is block-invariant for byte-identical inputs.
A CPU test with distinct per-shard weights covers the invariant.
Node-58 also ran the previous in-tree implementation on the same cases (Phase A/B
provenance) to confirm the provider comparison; full GPU native numerics/perf is still
not run/certified in this branch.
Risk
provider to be installed. AITER callers that relied on the removed in-tree kernels
must install the provider to keep their previous performance.
inputs across ranks; with rank-distinct inputs the provider's exchange is required
for correct cross-rank values.
backup/gemm-fusion-sp-qkv-fullon origin).CI note: huge deletion vs previous head
Against the previous tuned implementation head
582d19d0this is a large deletion(thousands of files, including
aiter/gemm_fusion,csrc/gemm_fusion, configs andtests). Against current
mainthe diff is:That deletion is intentional: no tuned in-tree implementation remains; only the
contract, route and reference native stay.
GPU functional verification (2026-11-10, node 58 / AAC16 job 9381, MI355X x4)
Revision matrix of the verified stack: ATOM
2004ba6b7(this PR), AITER e2e helpera6794ef4(= #7346 SP APIs + the #6689 routing commit2a4bbafb+ main'saiter.plugin) and the providercoderfeli/plugin_poc47c29e8einstalled editable (entry pointsp-qkv-provider = plugins.aiter:provider), imagerocm/atom-dev:vllm-latest@sha256:885d0611..., FlyDSL 0.5.0.last_decision=Noneand native-identical q/k; routing/decision evidence green.--enforce-eager --aiter-provider-enable sp-qkv-provider: server ready,enabled=('sp-qkv-provider',) routed=('sp_qkv_fused',), 472 rank-uniformprovider gate ... fused (all ranks)and 0 fallbacks, 236 provider-served site lines, 0 tracebacks; one benchmark request set completed 8/8 with non-empty output.--enforce-eagerthe capture path sees a different baked tensor set than the eager prepare:moved=[w_scale, q_norm_w, k_norm_w, k_cache, v_cache, k_scale, v_scale]; re-preparing with capture-time buffers is future work). Performance was not measured in this round (out of scope by request); the eager path shows 545,844 binding rebinds in the run (functional only, an efficiency risk to address later).Capture-mode GPU functional verification + one-round perf (2026-11-10, node 58)
Verified stack: ATOM
23a1520a(capture pre-bind at both seams), AITER e2ea6794ef4(= #7346 SP APIs + the #6689 routing commit2a4bbafb+ mainaiter.plugin), providerd4dbd6af(this PR / the provider PR #1 code + capture fixes), imagerocm/atom-dev:vllm-latest@sha256:885d0611....--enforce-eager) functional PASS: 4 ranks,routed=('sp_qkv_fused',),capture prepare=True; 3360provider capture ... fused (prepare)lines, 1680 rank-uniformprovider gate ... fused (all ranks)/ 0 fallback, 240 provider-served site lines, 0 binding rebinds / 0 moved / 0 traceback,SERVER_READY; one request set completed 8/8 with non-empty output.binding cache hit0 /binding rebind0 /cache evict0 over the whole phase (previously ~545k rebinds in the eager run); capture prepares each cell once.completed==requested): b32k out tok/s 49.90 -> 49.91 (+0.03%), TTFT -0.07%, TPOT +0.02%, E2EL -0.03%; c16 out tok/s 1373.4 -> 1363.3 (-0.73%), TTFT +22.7% (single-round noise at this run size), TPOT -1.66%, E2EL +0.74%. Effectively flat-to-noise; no perf claim is made (one round, no repeats).