Skip to content

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
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