Skip to content

[SDY] Add versioned serialization support for SDY dialect in PJRT.#1190

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_899101032
Open

[SDY] Add versioned serialization support for SDY dialect in PJRT.#1190
copybara-service[bot] wants to merge 1 commit intomainfrom
test_899101032

Conversation

@copybara-service
Copy link
Copy Markdown

[SDY] Add versioned serialization support for SDY dialect in PJRT.

This change introduces versioning utilities to the SDY dialect, including minimum supported versions and compatibility requirements, similar to StableHlo. Unlike StableHlo, SDY does not track the MLIR Bytecode Format.

PjRt SerializeUsingVersionedStablehlo() function is updated to accept an optional SDY dialect version, allowing for the downgrading of SDY ops/attrs (if needed) during mixed StableHLO/SDY serialization. A new test case runs smoke testing as there are currently no SDY ops/attrs that have downgrade options.

IfrtAtomProgramsToVhloPass is also updated to optionally downgrade the module for a lower target SDY version.

Includes minor code cleanups to follow the Google C++ code style.

@copybara-service copybara-service bot force-pushed the test_899101032 branch 6 times, most recently from 82fb06e to fd2da21 Compare April 16, 2026 23:14
This change introduces versioning utilities to the SDY dialect, including minimum supported versions and compatibility requirements, similar to StableHlo. Unlike StableHlo, SDY does not track the MLIR Bytecode Format.

PjRt `SerializeUsingVersionedStablehlo()` function is updated to accept an optional SDY dialect version, allowing for the downgrading of SDY ops/attrs (if needed) during mixed StableHLO/SDY serialization. A new test case runs smoke testing as there are currently no SDY ops/attrs that have downgrade options.

`IfrtAtomProgramsToVhloPass` is also updated to optionally downgrade the module for a lower target SDY version.

Includes minor code cleanups to follow the Google C++ code style.

PiperOrigin-RevId: 899101032
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