Skip to content

fix(pipelines): update keras_nlp to 0.31.1 and tensorflow to 2.20.0 - #220

Merged
iht merged 1 commit into
GoogleCloudPlatform:mainfrom
iht:fix/keras-nlp-tensorflow-compat
Aug 23, 2026
Merged

fix(pipelines): update keras_nlp to 0.31.1 and tensorflow to 2.20.0#220
iht merged 1 commit into
GoogleCloudPlatform:mainfrom
iht:fix/keras-nlp-tensorflow-compat

Conversation

@iht

@iht iht commented Aug 23, 2026

Copy link
Copy Markdown
Member

Summary

This PR resolves the dependency resolution failure seen in #211 by upgrading keras_nlp and aligning tensorflow in development requirements, alongside fixing the public import path for GemmaCausalLM.

Changes

  1. Dependency updates:
    • Updated keras_nlp to 0.31.1 in pipelines/anomaly_detection/requirements.txt and pipelines/ml_ai_python/requirements.txt.
    • Updated tensorflow to 2.20.0 in pipelines/anomaly_detection/requirements-dev.txt and pipelines/ml_ai_python/requirements-dev.txt to resolve the transitive dependency requirement from keras-hub / tensorflow-text.
  2. Public API Import Fix:
    • Fixed pipelines/ml_ai_python/ml_ai_pipeline/model_handlers.py to import GemmaCausalLM from the public keras_nlp.models module rather than internal keras_nlp.src.models which changed in 0.31.1.

Closes #211

- 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
iht force-pushed the fix/keras-nlp-tensorflow-compat branch from 465efa0 to 502dac1 Compare August 23, 2026 18:10
@iht
iht merged commit 4f8b6ce into GoogleCloudPlatform:main Aug 23, 2026
11 checks passed
@iht
iht deleted the fix/keras-nlp-tensorflow-compat branch August 25, 2026 17:42
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