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 PaliGemma 2 examples #133

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Add PaliGemma 2 examples #133

wants to merge 13 commits into from

Conversation

alvarobartt
Copy link
Member

@alvarobartt alvarobartt commented Dec 13, 2024

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:

  • PaliGemma 2 3B 224px deployment on GKE, including how to run inference and some use-cases / scenarios for PaliGemma 2
  • PaliGemma 2 on Vertex AI / Cloud Run (WIP)

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.

@HuggingFaceDocBuilderDev
Copy link
Collaborator

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.

Copy link

@merveenoyan merveenoyan left a comment

Choose a reason for hiding this comment

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

very nice!

examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
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",

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@pcuenca pcuenca left a 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.

examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
examples/gke/deploy-paligemma-2-with-tgi/README.md Outdated Show resolved Hide resolved
@alvarobartt alvarobartt changed the title Add PaliGemma2 examples Add PaliGemma 2 examples Dec 18, 2024
alvarobartt and others added 2 commits December 18, 2024 08:25
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants