Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ShieldGemma notebooks #502

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Add ShieldGemma notebooks #502

merged 2 commits into from
Jul 31, 2024

Conversation

RyanMullins
Copy link
Contributor

Description of the change

Adds Colab notebooks demonstrating ShieldGemma's use in KerasNLP and Hugging Face Transformers.

Motivation

Adds the Colab notebooks that document example usage of ShieldGemma. See launch announcement: https://developers.googleblog.com/en/smaller-safer-more-transparent-advancing-responsible-ai-with-gemma/

Type of change

Choose one: Documentation

Checklist

  • I have performed a self-review of my code.
  • I have added detailed comments to my code where applicable.
  • I have verified that my change does not break existing code.
  • [ x My PR is based on the latest changes of the main branch (if unsure, please run git pull --rebase upstream main).
  • I am familiar with the Google Style Guide for the language I have coded in.
  • I have read through the Contributing Guide and signed the Contributor License Agreement.

@RyanMullins RyanMullins requested a review from a team as a code owner July 31, 2024 17:07
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:documentation Update docs labels Jul 31, 2024
@RyanMullins
Copy link
Contributor Author

FYI: The linter check is going to fails because it's finding instance of "we" in a Python string. The uses of "we" in these notebooks is required per the safety policy definitions used by this model.

@joefernandez joefernandez merged commit dc46014 into google:main Jul 31, 2024
4 of 5 checks passed
@github-actions github-actions bot removed the status:awaiting review PR awaiting review from a maintainer label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants