-
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 Gemma2 9B on Cloud Run example #113
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rename required since most of the use-cases / examples are around the `tgi-deployment` so the naming can be vague, and instead we're following the same formatting for the naming as in `examples/vertex-ai/notebooks`
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. |
alvarobartt
commented
Oct 16, 2024
Automatically updated via `python scripts/internal/update_example_tables.py`
@alvarobartt can you make sure this publishes this week? I added the link https://huggingface.co/docs/google-cloud/examples/cloud-run-deploy-gemma-2-on-cloud-run to the video description |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds an example on serving Gemma2 9B with TGI DLC on Cloud Run, to be used for a video recording demo on Cloud Run. The idea of this example is similar if not the same as in the Llama 3.1 8B example already created i.e. serving an AWQ quantized model to optimize the cold start while still maintaining the accuracy of the original model.
The Gemma2 9B AWQ quantized model is available in
hugging-quants/gemma-2-9b-it-AWQ-INT4
, under thehugging-quants
organization which is managed by Hugging Face.Additionally, this PR also updates the naming convention for the Cloud Run examples, since the
tgi-deployment
naming is vague, and since from now we may ship more examples, using a format as the following may make the most senseexamples/cloud-run/deploy-<MODEL_ID>-on-cloud-run
(or we could just remove the ending-on-cloud-run
but that was for the sake of alignment with theexamples/vertex-ai/notebooks/...
.