Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions aiter/jit/optCompilerConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,22 @@
"f'{CK_DIR}/example/ck_tile/50_sparse_attn/generate.py -d fwd_vsa --receipt 600 --output_dir {{}}'"
]
},
"module_pa_mqa_logits_mxfp4_opus": {
"srcs": [
"f'{AITER_CSRC_DIR}/py_itfs_cu/pa_mqa_logits_mxfp4_kernels.cu'",
"f'{AITER_CSRC_DIR}/pybind/pa_mqa_logits_mxfp4_pybind.cu'"
],
"flags_extra_cc": [],
"flags_extra_hip": [
"'-ffast-math'",
"'-fno-finite-math-only'",
"'-mllvm -enable-post-misched=1'"
],
"extra_ldflags": "None",
"extra_include": [],
"verbose": "False",
"blob_gen_cmd": "''"
},
"module_mha_fwd": {
"srcs": [
"f'{AITER_CSRC_DIR}/kernels/mha_common.cu'",
Expand Down
33 changes: 33 additions & 0 deletions aiter/ops/opus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ def _stub(*_args, **_kwargs):
opus_gemm_workspace_release_all,
)

# gfx950-only, unlike the gemm entries above: _SUPPORTED is wider than this
# kernel, so the wrappers re-check at call time rather than at import.
from .pa_mqa_logits_opus import (
compute_prefill_windows,
pa_mqa_logits_mxfp4_decode,
pa_mqa_logits_mxfp4_fwd_decode,
pa_mqa_logits_mxfp4_fwd_prefill,
Comment thread
junhaha666 marked this conversation as resolved.
Resolved
pa_mqa_logits_mxfp4_prefill,
pa_mqa_logits_mxfp4_prefill_windows,
)

def opus_gemm_a8w8_blockscale_bpreshuffle_tune(*args, **kwargs):
from .gemm_op_a8w8 import (
opus_gemm_a8w8_blockscale_bpreshuffle_tune as _impl,
Expand All @@ -69,14 +80,36 @@ def opus_gemm_a8w8_blockscale_bpreshuffle_tune(*args, **kwargs):
opus_gemm_workspace_release_all = _make_unsupported_arch_stub(
"opus_gemm_workspace_release_all"
)
compute_prefill_windows = _make_unsupported_arch_stub("compute_prefill_windows")
pa_mqa_logits_mxfp4_decode = _make_unsupported_arch_stub(
"pa_mqa_logits_mxfp4_decode"
)
pa_mqa_logits_mxfp4_fwd_decode = _make_unsupported_arch_stub(
"pa_mqa_logits_mxfp4_fwd_decode"
)
pa_mqa_logits_mxfp4_fwd_prefill = _make_unsupported_arch_stub(
"pa_mqa_logits_mxfp4_fwd_prefill"
)
pa_mqa_logits_mxfp4_prefill = _make_unsupported_arch_stub(
"pa_mqa_logits_mxfp4_prefill"
)
pa_mqa_logits_mxfp4_prefill_windows = _make_unsupported_arch_stub(
"pa_mqa_logits_mxfp4_prefill_windows"
)


__all__ = [
"bmm_a8w8_mxscale_opus",
"compute_prefill_windows",
"gemm_a16w16_opus",
"opus_gemm_a8w8_blockscale_bpreshuffle_tune",
"opus_gemm_a16w16_tune",
"opus_gemm_workspace_init",
"opus_gemm_workspace_release",
"opus_gemm_workspace_release_all",
"pa_mqa_logits_mxfp4_decode",
"pa_mqa_logits_mxfp4_fwd_decode",
"pa_mqa_logits_mxfp4_fwd_prefill",
"pa_mqa_logits_mxfp4_prefill",
"pa_mqa_logits_mxfp4_prefill_windows",
]
Loading
Loading