Repository navigation
Disable opset lowering by default - #281
Merged
Merged
Conversation
ORT now has kernel registrations for opset 24 standard ops, so the workaround of lowering the opset declaration to 23 is no longer needed by default. Users on older ORT builds can re-enable it with MOBIUS_ORT_LOWER_OPSET_FOR_EP=1. Co-authored-by: Copilot <[email protected]> Signed-off-by: Justin Chu <[email protected]>
🏗️ Architecture Diff
gemma4 (gemma4) / vision_encoder — 52 change(s)Op summary: 176 → 190 nodes --- base
+++ head
@@ -33,12 +33,18 @@
Where
Unsqueeze
RMSNormalization
+Clip
Transpose
MatMul
+Clip
+Clip
Transpose
MatMul
+Clip
+Clip
Transpose
MatMul
+Clip
Reshape
Reshape
Reshape
@@ -106,19 +112,27 @@
MatMul
Transpose
Reshape
+Clip
Transpose
MatMul
+Clip
RMSNormalization
Add
RMSNormalization
+Clip
Transpose
MatMul
+Clip
Gelu
+Clip
Transpose
MatMul
+Clip
Mul
+Clip
Transpose
MatMul
+Clip
RMSNormalization
Add
UnsqueezeAdded nodes:
Modified attributes:
Connectivity changes:
Initializer changes:
Legend: ⚪ No change · 🔵 Minor (attrs/inits) · 🟡 Moderate (nodes added/removed) · 🔴 Major (interface changed) |
Performance Comparison
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates Mobius’ runtime flag defaults to stop automatically lowering the ONNX default-domain opset to 23 for non-CPU ORT execution providers, reflecting that newer ORT builds now register opset 24 kernels for standard ops.
Changes:
- Changed
ort_lower_opset_for_epdefault fromTruetoFalse. - Updated the flag’s documentation to describe the new default and how to re-enable it via
MOBIUS_ORT_LOWER_OPSET_FOR_EP=1.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Change
ort_lower_opset_for_epdefault fromTruetoFalse.ORT now has kernel registrations for opset 24 standard ops, so the workaround of lowering the opset declaration to 23 is no longer needed by default. Users on older ORT builds can re-enable with
MOBIUS_ORT_LOWER_OPSET_FOR_EP=1.Changes
_flags.py: DefaultFalse, updated docstring to reflect new default and how to re-enableTesting
All 1202 tests pass.