-
Notifications
You must be signed in to change notification settings - Fork 20
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 PaliGemma 2 examples #133
base: main
Are you sure you want to change the base?
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice!
client = InferenceClient("http://localhost:8080", api_key="-") | ||
|
||
generation = client.text_generation( | ||
prompt="![](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/rabbit.png)caption en", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are missing newline here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed after digging the text-generation-inference
code I realised that's automatically injected, see https://github.com/huggingface/text-generation-inference/blob/bb9095aae339579fbf3b4e7be3909932de26a7ee/server/text_generation_server/models/pali_gemma.py#L31
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, suggested some optional nits.
Co-authored-by: Pedro Cuenca <[email protected]> Co-authored-by: Merve Noyan <[email protected]>
Co-authored-by: Pedro Cuenca <[email protected]> Co-authored-by: Merve Noyan <[email protected]>
Description
This PR adds some PaliGemma 2 examples along with the Hugging Face DLC for TGI (3.0.1) release on Google Cloud!
The examples cover the following:
Note
Note that the example structure has changed a bit to make it more readable, easy to follow, and adding or removing information when needed and when not needed, respectively.