Skip to content

a4w4 improve - #4801

Merged
yadaish merged 5 commits into
dev/yadai_cluster_exp_v2_rebasefrom
dev/yadai_cluster_exp_v2_a4w4
Aug 17, 2026
Merged

a4w4 improve#4801
yadaish merged 5 commits into
dev/yadai_cluster_exp_v2_rebasefrom
dev/yadai_cluster_exp_v2_a4w4

Conversation

@yadaish

@yadaish yadaish commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

# The dedicated FP4 instruction consumes two adjacent 16-column weight
# fragments and produces a 32-column result. Keep the epilogue's existing
# 16-column view by splitting each vec16 accumulator after the K loop.
mma_n_rep = wmma_n_rep // 2 if a_is_fp4 else wmma_n_rep

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

bad code, we should use right WMMA_N instead of hacking

a_off0 = blk_m64 * A_KROW
b_off0 = b_outer_row * Kp16
sb_off0 = (blk_n64 // 32) * SB_OUTER_STRIDE + sb_batch_off

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

trim empty line

@yadaish
yadaish merged commit 2964856 into dev/yadai_cluster_exp_v2_rebase Aug 17, 2026
2 checks passed
@yadaish
yadaish deleted the dev/yadai_cluster_exp_v2_a4w4 branch August 17, 2026 12:44
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.

1 participant