Skip to content

onnx: add com.microsoft SkipLayerNormalization handler#2289

Merged
kali merged 1 commit into
sonos:mainfrom
czoli1976:feature/onnx-skiplayernorm
May 28, 2026
Merged

onnx: add com.microsoft SkipLayerNormalization handler#2289
kali merged 1 commit into
sonos:mainfrom
czoli1976:feature/onnx-skiplayernorm

Conversation

@czoli1976
Copy link
Copy Markdown
Contributor

SkipLayerNormalization: residual (input+skip+bias) then LayerNormalization over the last axis scaled by gamma (+beta), computed in f32, with optional mean/inv_std_var/input_skip_bias_sum outputs. Validated bit-close vs onnxruntime across beta/bias/present-output combinations and shapes; no node-suite regression; clippy+fmt clean. Part of com.microsoft contrib-op coverage for ORT-exported LLMs.

@czoli1976 czoli1976 force-pushed the feature/onnx-skiplayernorm branch from 834ba9f to 388d890 Compare May 26, 2026 12:35
kali
kali previously approved these changes May 27, 2026
@kali
Copy link
Copy Markdown
Collaborator

kali commented May 27, 2026

need a rebase here...

Residual (input + skip + bias) followed by LayerNormalization over the
last axis scaled by gamma (+ beta), computed in f32. Optionally emits
mean / inv_std_var / input_skip_bias_sum outputs.

Validated bit-close against onnxruntime (output + input_skip_bias_sum).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@czoli1976
Copy link
Copy Markdown
Contributor Author

done, rebased

@kali kali merged commit a79bca9 into sonos:main May 28, 2026
55 checks passed
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.

2 participants