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 include rescaling to the pali gemma backbone #1650

Merged
merged 1 commit into from
May 23, 2024

Conversation

mattdangerw
Copy link
Member

@mattdangerw mattdangerw commented May 23, 2024

This will break compat on pali gemma, but bring us in line with other models, so we are doing this quickly as a patch release. To disable this option, pass an override when constructing the backbone.

keras_nlp.models.PaliGemmaBackbone.from_preset(
    "pali_gemma_3b_224",
    include_rescaling=False,
)

Allow inputs to be the more standard range 0, 255.

https://colab.sandbox.google.com/gist/mattdangerw/5e32eb90cccc69cfd0cd410cd935315a/rescaling-test.ipynb

To disable this option, pass

```
keras_nlp.models.PaliGemma.from_preset(
    "pali_gemma_3b_224",
    include_rescaling=False,
)
```

Allow inputs to be the more standard range 0, 255
@github-actions github-actions bot added the Gemma Gemma model specific issues label May 23, 2024
@mattdangerw mattdangerw merged commit 12e3e99 into keras-team:master May 23, 2024
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gemma Gemma model specific issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants