Skip to content

Conversation

@renovate-bot
Copy link
Contributor

This PR contains the following updates:

Package Change Age Confidence
sentencepiece ==0.2.0==0.2.1 age confidence

Release Notes

google/sentencepiece (sentencepiece)

v0.2.1

Compare Source

Major changes

New features

  • [ALL]: Added new build mode to prevent the precompiled normalization rules being embedded in *.so and *.a. (-DSPM_DISABLE_EMBEDDED_DATA=ON). This reduces the runtime size by approximately 1-2 MB. This mode is enabled to build python wheels. The rules are loaded as the data package.

Bug fixes & minor changes

  • [ALL]: Security fix to address a heap overflow issue that could occur when using a model containing an invalid precompiled normalization model.
  • [Python]: Deprecates the wheel package for Linux i686.
  • [Python]: Supported wheel for Windows Arm64. #​1114
  • [Python]: Fixed the crash issue on batch decoding #​1051
  • [ALL]: Updated the Unicode normalization rule with the latest ICU/Unicode rules.
  • [ALL]: Unused code and build mode cleanup.

Configuration

📅 Schedule: Branch creation - On day 1 of the month, every 3 months ( * * 1 */3 * ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested review from a team as code owners January 1, 2026 23:07
@trusted-contributions-gcf trusted-contributions-gcf bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jan 1, 2026
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jan 1, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @renovate-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request automates the update of the sentencepiece dependency to version 0.2.1 across multiple requirements.txt files within the generative_ai directory. This minor version upgrade brings significant improvements, including expanded Python compatibility for newer versions, a crucial security patch, and performance enhancements through a new build configuration.

Highlights

  • Dependency Update: The sentencepiece library has been updated from version 0.2.0 to 0.2.1.
  • Python Compatibility: The new sentencepiece version adds support for Python 3.13 and 3.14(rc1), and updates the minimum supported Python version to 3.9.
  • Security Fix: This update includes a security fix that addresses a heap overflow issue when using models with invalid precompiled normalization rules.
  • Performance Improvement: A new build mode (-DSPM_DISABLE_EMBEDDED_DATA=ON) is introduced to reduce the runtime size of sentencepiece by 1-2 MB by preventing precompiled normalization rules from being embedded.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 1, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the sentencepiece dependency from v0.2.0 to v0.2.1. While this new version includes a security fix for a heap overflow vulnerability, it also drops support for Python versions older than 3.9. Your project currently supports Python 3.7 and 3.8, which will cause build failures with this update. I have provided suggestions in all relevant requirements.txt files to apply version constraints, ensuring compatibility across all supported Python versions.

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.84.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The updated sentencepiece version 0.2.1 drops support for Python versions older than 3.9, as stated in the release notes. This project appears to support Python 3.7 and 3.8 (based on other dependencies like pandas and pillow in this file), which will cause installation failures for those environments. To maintain compatibility with older Python versions while using the latest sentencepiece for supported versions, you should specify version constraints.

sentencepiece==0.2.0; python_version < '3.9'
sentencepiece==0.2.1; python_version >= '3.9'

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The updated sentencepiece version 0.2.1 drops support for Python versions older than 3.9, as stated in the release notes. This project appears to support Python 3.7 and 3.8 (based on other dependencies like pandas and pillow in this file), which will cause installation failures for those environments. To maintain compatibility with older Python versions while using the latest sentencepiece for supported versions, you should specify version constraints.

sentencepiece==0.2.0; python_version < '3.9'
sentencepiece==0.2.1; python_version >= '3.9'

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The updated sentencepiece version 0.2.1 drops support for Python versions older than 3.9, as stated in the release notes. This project appears to support Python 3.7 and 3.8 (based on other dependencies like pandas and pillow in this file), which will cause installation failures for those environments. To maintain compatibility with older Python versions while using the latest sentencepiece for supported versions, you should specify version constraints.

sentencepiece==0.2.0; python_version < '3.9'
sentencepiece==0.2.1; python_version >= '3.9'

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The updated sentencepiece version 0.2.1 drops support for Python versions older than 3.9, as stated in the release notes. This project appears to support Python 3.7 and 3.8 (based on other dependencies like pandas and pillow in this file), which will cause installation failures for those environments. To maintain compatibility with older Python versions while using the latest sentencepiece for supported versions, you should specify version constraints.

sentencepiece==0.2.0; python_version < '3.9'
sentencepiece==0.2.1; python_version >= '3.9'

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The updated sentencepiece version 0.2.1 drops support for Python versions older than 3.9, as stated in the release notes. This project appears to support Python 3.7 and 3.8 (based on other dependencies like pandas and pillow in this file), which will cause installation failures for those environments. To maintain compatibility with older Python versions while using the latest sentencepiece for supported versions, you should specify version constraints.

sentencepiece==0.2.0; python_version < '3.9'
sentencepiece==0.2.1; python_version >= '3.9'

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The updated sentencepiece version 0.2.1 drops support for Python versions older than 3.9, as stated in the release notes. This project appears to support Python 3.7 and 3.8 (based on other dependencies like pandas and pillow in this file), which will cause installation failures for those environments. To maintain compatibility with older Python versions while using the latest sentencepiece for supported versions, you should specify version constraints.

sentencepiece==0.2.0; python_version < '3.9'
sentencepiece==0.2.1; python_version >= '3.9'

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.74.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The updated sentencepiece version 0.2.1 drops support for Python versions older than 3.9, as stated in the release notes. This project appears to support Python 3.7 and 3.8 (based on other dependencies like pandas and pillow in this file), which will cause installation failures for those environments. To maintain compatibility with older Python versions while using the latest sentencepiece for supported versions, you should specify version constraints.

sentencepiece==0.2.0; python_version < '3.9'
sentencepiece==0.2.1; python_version >= '3.9'

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The updated sentencepiece version 0.2.1 drops support for Python versions older than 3.9, as stated in the release notes. This project appears to support Python 3.7 and 3.8 (based on other dependencies like pandas and pillow in this file), which will cause installation failures for those environments. To maintain compatibility with older Python versions while using the latest sentencepiece for supported versions, you should specify version constraints.

sentencepiece==0.2.0; python_version < '3.9'
sentencepiece==0.2.1; python_version >= '3.9'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

owlbot:run Add this label to trigger the Owlbot post processor. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants