fix(pipelines): update keras_nlp to 0.31.1 and tensorflow to 2.20.0 - #220
Merged
iht merged 1 commit intoAug 23, 2026
Merged
Conversation
- Update keras_nlp to 0.31.1 in anomaly_detection and ml_ai_python - Update tensorflow to 2.20.0 in requirements-dev.txt for compatibility with keras-hub/tensorflow-text - Fix GemmaCausalLM import path to use public keras_nlp.models module - Fixes GoogleCloudPlatform#211
iht
force-pushed
the
fix/keras-nlp-tensorflow-compat
branch
from
August 23, 2026 18:10
465efa0 to
502dac1
Compare
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.
Summary
This PR resolves the dependency resolution failure seen in #211 by upgrading
keras_nlpand aligningtensorflowin development requirements, alongside fixing the public import path forGemmaCausalLM.Changes
keras_nlpto0.31.1inpipelines/anomaly_detection/requirements.txtandpipelines/ml_ai_python/requirements.txt.tensorflowto2.20.0inpipelines/anomaly_detection/requirements-dev.txtandpipelines/ml_ai_python/requirements-dev.txtto resolve the transitive dependency requirement fromkeras-hub/tensorflow-text.pipelines/ml_ai_python/ml_ai_pipeline/model_handlers.pyto importGemmaCausalLMfrom the publickeras_nlp.modelsmodule rather than internalkeras_nlp.src.modelswhich changed in 0.31.1.Closes #211