Skip to content

Support TensorFlow 2.20 inference compatibility - #29

Merged
blagojce95 merged 2 commits into
google-research:mainfrom
CharlieLeee:fix/tf220-compat
Jul 29, 2026
Merged

Support TensorFlow 2.20 inference compatibility#29
blagojce95 merged 2 commits into
google-research:mainfrom
CharlieLeee:fix/tf220-compat

Conversation

@CharlieLeee

Copy link
Copy Markdown
Contributor

Summary

  • update the uv and Colab environments to TensorFlow 2.20.0 and TensorFlow Text 2.20.1
  • configure XLA before TensorFlow is imported so the released checkpoint retains its expected inference behavior
  • document the uv workflow and add a small TensorFlow import helper for Python scripts

Background

TensorFlow 2.18 and later enable XLA custom-kernel fusion passes that can change GEMM lowering for the released SavedModel. The resulting small numerical differences are amplified during autoregressive decoding and can change the generated ink.

This change disables the affected XLA passes and GPU autotuning before TensorFlow loads. It does not modify the model or checkpoint.

@blagojce95
blagojce95 merged commit 486d477 into google-research:main Jul 29, 2026
7 checks passed
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.

2 participants