fix: update pinned dependency versions for RHOAI 3.4 compatibility#134
Open
adamrdrew wants to merge 1 commit intorh-aiservices-bu:mainfrom
Open
fix: update pinned dependency versions for RHOAI 3.4 compatibility#134adamrdrew wants to merge 1 commit intorh-aiservices-bu:mainfrom
adamrdrew wants to merge 1 commit intorh-aiservices-bu:mainfrom
Conversation
The RHOAI 3.4 pypi index no longer carries onnx 1.17.0, onnxruntime
1.19.2, protobuf 5.28.3, boto3 1.35.55, or botocore 1.35.55. tf2onnx
is not in the RHOAI index at all. Since the RHOAI workbench images use
index-url (not extra-index-url), packages not in the index cannot be
installed.
1_experiment_train.ipynb:
- onnx 1.17.0 → 1.20.0
- onnxruntime 1.19.2 → 1.24.4
- Replace tf2onnx conversion with manual ONNX graph construction
using onnx.helper (available in the index). This produces an
identical model — verified on a RHOAI 3.4 TensorFlow workbench.
- Remove protobuf==5.28.3 pin (6.31.1 ships in the image)
2_save_model.ipynb:
- boto3 1.35.55 → 1.42.84
- botocore 1.35.55 → 1.42.84
Tested: all imports and ONNX conversion verified on RHOAI 3.4
TensorFlow notebook image (keras 3.14, tensorflow 2.21.0+redhat).
ONNX model passes onnx.checker and produces identical predictions
to the Keras model via onnxruntime inference.
Collaborator
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.

The RHOAI 3.4 pypi index no longer carries onnx 1.17.0, onnxruntime 1.19.2, protobuf 5.28.3, boto3 1.35.55, or botocore 1.35.55. Update pins to versions available in the RHOAI 3.4 index. tf2onnx is not in the RHOAI index at all, so install it from PyPI via --extra-index-url.
Tested on a RHOAI 3.4 TensorFlow workbench image — all imports succeed.
1_experiment_train.ipynb:
2_save_model.ipynb: