Add weighted RMS normalization example#20
Merged
Conversation
Weighted RMS norm: y = x * rsqrt(mean(x^2) + eps) * w Extends rms_norm by multiplying each normalized element by a learned weight vector. Uses BLOCK_M=2 (2D tiling) with 3 memref arguments (X, W, Y) where W has broadcast indexing. The transform script relies on mlir-air PR #1412 (cross-op buffer sharing in linalg_promote) to share the X subview buffer across the squaring and output generics, keeping DMA count within AIE tile limits. Update mlir-air to 98f2fc3 which includes all necessary fixes: - PR #1407: broadcast operand promotion - PR #1408: dead memref.global cleanup - PR #1411: memory space comparison fix - PR #1412: cross-op promotedValueMap with DominanceInfo Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
reviewdog v0.20.3 (used by action-suggester v1.22) was removed from GitHub releases, causing both clang-format and black check steps to fail with "unable to find 'v0.20.3'". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
y = x * rsqrt(mean(x^2) + eps) * warith.divfwhich requires f32 vectors)98f2fc3(includes PR #1412 for cross-op buffer sharing)Test plan
🤖 Generated with Claude Code