Skip to content

Reduce TF-Text wheel size by filtering ICU 77 data - #1540

Merged
cantonios merged 1 commit into
tensorflow:2.21from
gasanov-netizen:2.21
Aug 20, 2026
Merged

Reduce TF-Text wheel size by filtering ICU 77 data#1540
cantonios merged 1 commit into
tensorflow:2.21from
gasanov-netizen:2.21

Conversation

@gasanov-netizen

Copy link
Copy Markdown
  • Regenerate normalization_data.c.oss using ICU 77.1 with filters.json enabled ("normalization": "include") rather than bundling the entire unfiltered ICU data archive
@google-cla

google-cla Bot commented Aug 20, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…ries.

- Regenerate `normalization_data.c.oss` using ICU 77.1 with `filters.json` enabled ("normalization": "include") rather than bundling the entire unfiltered ICU data archive. This reduces the source data file from ~91 MB to ~616 KB (and compiled in-binary `.rodata` from ~32 MB to ~220 KB across dependent shared libraries).
- Add shared library symbol stripping (`strip -x` on macOS, `strip --strip-unneeded` on Linux) in `build_pip_package.py` to eliminate unnecessary DWARF debug sections and local symbol tables from wheels.
- Drops the final `.whl` package size from ~60-95 MB down to ~5-7 MB, resolving PyPI upload limits.

PiperOrigin-RevId: 967966028
@cantonios
cantonios merged commit 8c9b386 into tensorflow:2.21 Aug 20, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants