Skip to content

[wip] POC for Root Mean Square (RMS) layer normalization support #3068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mzhukova
Copy link
Contributor

@mzhukova mzhukova commented Apr 10, 2025

RFC: #3147

@mzhukova mzhukova self-assigned this Apr 10, 2025
@github-actions github-actions bot added documentation A request to change/fix/improve the documentation. Codeowner: @oneapi-src/onednn-doc platform:cpu-x64 Intel64/AMD64 processors. Codeowner: @oneapi-src/onednn-cpu-x64 component:api Codeowner: @oneapi-src/onednn-arch component:tests Codeowner: @oneapi-src/onednn-arch labels Apr 10, 2025
@@ -640,7 +641,7 @@ std::vector<data_kind_t> get_kinds_to_check(const prb_t *prb) {
// even if the normalization layer worked correctly
#if !(DNNL_AARCH64_USE_ACL)
if (!(prb->flags & GLOB_STATS) && !(prb->dir & FLAG_INF)) {
check_kinds.push_back(MEAN);
if (!prb->use_rms_norm()) check_kinds.push_back(MEAN);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just an anchor comment that decision must be made based on the outcome whether mean remains an output memory or not.

@mzhukova mzhukova force-pushed the mzhukova/main/rms-lnorm-as-flag branch from 0531ca3 to 5d96baa Compare April 25, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:api Codeowner: @oneapi-src/onednn-arch component:common component:tests Codeowner: @oneapi-src/onednn-arch documentation A request to change/fix/improve the documentation. Codeowner: @oneapi-src/onednn-doc platform:cpu-x64 Intel64/AMD64 processors. Codeowner: @oneapi-src/onednn-cpu-x64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants