* chore: restructures according to template, contracts text and cells, organizes headings
* refactor: removes the IS_TESTING conditions for steps involving redis instance
* chore: addresses review comments
* fix: adds back the IS_TESTING conditions for redis commands to skip in the test environment
* chore: removes duplicate comment
---------
Co-authored-by: krishr2d2 <krishna.movva@egen.ai>
* Did required changes in notebook template
* Service account permission changed as we don't need admin level access for this notebook
* Fixed issue based on PR feedback
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Some minor updates to the SD2.1 deployment notebook.
* Minor update the `sd-xl` deployment notebook, based on the QA feedback.
* Add a few community models to the Gradio workshop.
* Switch `mediapipe-train` docker container from `vertex-ai-restricted` to `vertex-ai`, in the `mediapipe-train` notebooks.
* Create a notebook for model `instantx/instantid`.
* Update Gradio notebook to use the latest Gradio version and fix some bugs.
1. Update Gradio version to 4.29.0, as it complains 3.50.0 is too old.
2. Uninstall nest-asyncio and uvloop as a workaround to b/339301920 and https://github.com/gradio-app/gradio/issues/8238#issuecomment-2101066984.
* Resolve merge conflict.
* minor updates.
* minor updates.
* Merge some SD notebook in g3 and github.
* Remove the unused variable in the controlnet notebook.
* minor updates.
* include the SD1.5 dreambooth notebook.
* Include the sd1.5 dreambooth notebook.
* Improve the stable diffusion dreambooth tuning CUJ in the Gradio notebook.
* minor update.
* Add dreambooth-lora-sdxl task for SDXL base model in the dreambooth finetune Gradio notebook.
* <refactor>: refactored code according to notebook template
* <refactor>: refactored code according to notebook template
* <refactor>: refactored code according to notebook template
* <refactor,chore> refactored notebook according to template
* <refactor,chore> refactored notebook according to template
* fix for docker repository creation in PR test environment
* <included IS_TESTING condition for docker repository
* lint fix
* Apply suggested edits from @kittyabs review
---------
Co-authored-by: SumanthKasula99 <sumanth.kasula@egen.ai>
* Create a Gradio notebook for the new InstantId model.
* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.
* Update the image generation Gradio notebook to support Dreambooth finetuning.
* linter update
* linter update
* minor fix to the instant-id notebook.
* Minor fix to the stable diffusion gradio notebook.
* Split the 'instant-id' deployment notebook prediction into two sections.
* add `deployment_source` to the notebook.
* Switch to `pytorch-diffusers-serve-opt` container to for diffusion lora serving.
* add the dreambooth_lora notebook.
* minor update.
* Parameterize the "show_debug_logs" to facilitate automatic test of the Gradio notebooks.
* Lint format.
* minor updates
* Delete the two deprecated SD1.5 and 2.1 notebooks, as they were no longer referenced on any model cards.
* Sync Colab notebooks between g3 and github.
* format changes
* format update.
* Improve the SDXL-dreambooth-lora finetune notebook CUJ.
* Update the diffusers serving docker image version to `20240605_1400_RC00` to resolve vulnerabilities.
* Add dreambooth-lora-sdxl task for SDXL base model in the dreambooth finetune Gradio notebook.
* Add dreambooth-lora-sdxl task for SDXL base model in the dreambooth finetune Gradio notebook.
* Add dreambooth-lora-sdxl task for SDXL base model in the dreambooth finetune Gradio notebook.
* chore: updates copyright text, adds colab enterprise and for
* chore: removes boilerplate and changes colab authentication and get started section
* refactor: removes IS_TESTING and other test code
* refactor: removes IS_TESTING and other test code
* chore: clear all outputs and linter reformatting
* chore: removes code added for testing and other fixes
* chore: runs lint
* fix: fixes testing induced bug
* chore: review comments with header and copyright changes addressed
* chore, fix: restructures as per template, rewords some sentences, removes sudo in the option docker run
* feat: adds clean up step for local files
* chore: reverts lowercase to camelcase for artifact registry and other review comments
---------
Co-authored-by: krishr2d2 <krishna.movva@egen.ai>
* chore: updates the license
* chore: formats run in buttons and adds colab enterprise link
* chore: removes code font for names of products
* refactor: removes boilerplate and edits aiplatform initialization cell order
* fix: changes naming of app to deal with setup changing tar.gz file to canonical name and gsutil command not able to find it
* chore: linter run
* chore: edit all the future tense sentences
* chore: updates review comments
* refactor: Refactored custom-tabular-bq-managed-dataset code according to the template notebook
* refactor: Included markdown code in the beginning of the license cell to make it collapsible
* chore: linter test
* refactor, chore: Updated markdown according to the updated notebook template and performed linter test
* chore: Grouped all the imports present in the notebook
* chore: linter test
* refactor, chore(egen): REGION is replaced with LOCATION, linter test
* chore: updates license information, adds colab enterprise, and reformats run buttons
* chore: 'will' replaced appropriately
* chore: updates region and removes boilerplate
* fix: corrects the argument at pip install
* refactor: refactoring the cells for end to end functionality
* chore: changes verbiage in bucket creation
* chore: linter test done
* refactor: rearrage cell order for aiplatform initialization
* chore: review comments addressed
* chore: review comments addressed
* refactor: Refactored custom_batch_prediction_feature_filter code according to the template notebook
* refactor: Updated markdown according to the updated notebook template and did linter test
* chore: Modified code according to updated template
* chore: linter test
* refactor, chore(egen): REGION is replaced with LOCATION, linter test
* refactor: Updated markdown according to the updated notebook template
* refactor, chore: Added colab enterprise logo url and performed linter test
* refactor, chore: Reverted back the max trail count and parallel trail count values, performed linter test
* refactor, chore: Updated markdown according to the updated notebook template and performed linter test
* Revert "refactor, chore: Updated markdown according to the updated notebook template and performed linter test"
This reverts commit c91fa09431.
* refactor, chore: Updated markdown according to the updated notebook template and performed linter test
* Did all the required changes in notebook
* Added below comments:
# @title Copyright & License (click to expand)
* Upadated the template of notebook
* Fixed issue based on the feedback given on PR
* refactor, chore(egen): Removes boilerplate, heading fixes, and other corrections from template
* Added Below line in comments:
# @title Copyright & License (click to expand)
* Fixed issue in notebook based on feedback given by reviewer in PR
* Fixed issue based on feedback given on PR
* chore: replaces K80 with T4, Cloud ML with Vertex AI, REGION with LOCATION, restructures from template, & removes future tense
* fix: fixes the docker tag command for colab
* chore, fix: addresses the review comments, tf is pinned to 2.15.1 as the latest tf causes issues
* chore: replaces of with or
* chore: removes the collapsed license comment
* fix: removes the test env specific package update step and contracts the installations into one step to keep tf as 2.15
---------
Co-authored-by: krishr2d2 <krishna.movva@egen.ai>
* chore: restructures according to the template, removes future tense, removes IS_TESTING, unused imports
* chore, fix: addresses the review comments, converts npy array to list for running in py-3.9
* chore: adds --it's-- in the sentence
* chore: Getting started --> Get started
* chore: removes the collapsed license comment
* fix: extracts list from numpy objects instead of Dataset object
---------
Co-authored-by: krishr2d2 <krishna.movva@egen.ai>
* Completed code fixing for file prediction/pytorch_image_classification_with_prebuilt_serving_containers.ipynb. Please note that we need to execute file end to end.
* Added Colab Enterprice link and testead once again with different environment as previously it was throwing an expecption of libraries
* Added below comment:
# @title Copyright & License (click to expand)
* Fixed issue in notebook based on feedback given by reviewer in PR
* Fixed issue based on feedback give on PR
* Fix code of file prediction/get_started_with_raw_predict.ipynb
* Added link of Colab Enterprise
* Updated create bucket command because it requried those changes to execute in google colab notebook
* Removed IS_TESTING environment variable
* Added below comment in notebook:
# @title Copyright & License (click to expand)
* Fixed issue in notebook based on feedback given by reviewer in PR
* Fixed issue based on the feedback given on PR
* Create a Gradio notebook for the new InstantId model.
* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.
* Update the image generation Gradio notebook to support Dreambooth finetuning.
* linter update
* linter update
* minor fix to the instant-id notebook.
* Minor fix to the stable diffusion gradio notebook.
* Split the 'instant-id' deployment notebook prediction into two sections.
* add `deployment_source` to the notebook.
* Switch to `pytorch-diffusers-serve-opt` container to for diffusion lora serving.
* add the dreambooth_lora notebook.
* minor update.
* Parameterize the "show_debug_logs" to facilitate automatic test of the Gradio notebooks.
* Lint format.
* minor updates
* Delete the two deprecated SD1.5 and 2.1 notebooks, as they were no longer referenced on any model cards.
* Sync Colab notebooks between g3 and github.
* format changes
* format update.
* Improve the SDXL-dreambooth-lora finetune notebook CUJ.
* <refactor> refactored notebook according to template
* <refactor> refactored notebook according to template
* <refactor> refactored notebook according to template
* <refactor>: refactored notebook according to new notebook template
* <refactor>: refactored notebook according to new notebook template
* <refactor>: refactored notebook according to new notebook template
---------
Co-authored-by: SumanthKasula99 <sumanth.kasula@egen.ai>
* <refactor>: refactored code according to notebook template
* <refactor>: refactored code according to notebook template
* <refactor>: refactored code according to notebook template
* <refactor>: refactored code according to notebook template
* <refactor>: refactored code according to new notebook template
* <refactor>: refactored code according to new notebook template
* <refactor>: refactored code according to new notebook template
* <refactor>: refactored notebook according to new notebook template
* <refactor>: refactored notebook according to new notebook template
---------
Co-authored-by: SumanthKasula99 <sumanth.kasula@egen.ai>
* <refactor>: Refactored text_embedding_api_semantic_search_with_scann code according to the notebook template
* chore: linter test
* refactor: Modified colab enterprise logo url and made necessary changes according to the updated notebook template
* chore: linter test
* refactor, chore, fix: replaces K80 with T4, fixes to follow the template, fixes to utilize the defined accelerators while training
* chore: addresses the review comments
---------
Co-authored-by: krishr2d2 <krishna.movva@egen.ai>
* refactor: Refactored text_embedding_new_api code according to the template notebook
* refactor: Modified colab enterprise logo url and made necessary changes according to the updated notebook template
* Update build_model_experimentation_lineage_with_prebuild_code.ipynb
added colab enterprise logo and link
* Update build_model_experimentation_lineage_with_prebuild_code.ipynb
hope I fixed the JSON issue
* Update notebook_template.ipynb
- changed "Getting Started" to "Get started" to be in compliance with style guide
- added "for Python" to "Vertex AI SDK" to be in compliance with product guidelines
* fix: reset changes
---------
Co-authored-by: Katie Nguyen <21978337+katiemn@users.noreply.github.com>
* <refactor>: refactored code according to notebook template
* <refactor> refactored notebook according to template
---------
Co-authored-by: SumanthKasula99 <sumanth.kasula@egen.ai>
* refactor: removes boilerplate code, future tenses, and fixes heading styles
* chore: replaces REGION with LOCATION to match the notebook template
* chore: markdown heading fixes according to guidelines
---------
Co-authored-by: rohith-egen <rohith.alla@egen.ai>
Co-authored-by: krishr2d2 <krishna.movva@egen.ai>
* chore: updates the notebook according to the latest template
* chore: linter test
* refactor: removes IS_TESTING, and os import
* ran linter test using linter.sh
---------
Co-authored-by: rohith-egen <rohith.alla@egen.ai>
Co-authored-by: krishr2d2 <krishna.movva@egen.ai>
* Update ray_cluster_management.ipynb
Updated logo for Colab Enterprise
* fix: change accelerator type
* fix: alter accelerator type
---------
Co-authored-by: Katie Nguyen <21978337+katiemn@users.noreply.github.com>
* fix: n1-standard-8 changed to n1-standard-16 and Tesla K80 changed to Tesla T4 + refactored code according to the template
* refactor: keeping the machine types same. Original issue with the K80 accelerators as they're no longer supported
---------
Co-authored-by: rohith-egen <rohith.alla@egen.ai>
Co-authored-by: krishr2d2 <krishna.movva@egen.ai>
* Update tensorboard_custom_training_with_custom_container.ipynb
added colab enterprise link and logo
* Update comparing_local_trained_models.ipynb
Added colab enterprise logo and link. Also made some edits.
* Update delete_outdated_tensorboard_experiments.ipynb
Updated Colab Enterprise logo
* Update get_started_with_model_registry.ipynb
add colabe enterprise link
* fix: remove extra line break elements
---------
Co-authored-by: Katie Nguyen <21978337+katiemn@users.noreply.github.com>
* Upgrade to v1 API in feature store llm grounding tutorial.
* Sleep for 5min before starting serving to wait for DNS to be ready.
* use data_key in fetch request
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Some minor updates to the SD2.1 deployment notebook.
* Minor update the `sd-xl` deployment notebook, based on the QA feedback.
* Add a few community models to the Gradio workshop.
* Switch `mediapipe-train` docker container from `vertex-ai-restricted` to `vertex-ai`, in the `mediapipe-train` notebooks.
* Create a notebook for model `instantx/instantid`.
* Update Gradio notebook to use the latest Gradio version and fix some bugs.
1. Update Gradio version to 4.29.0, as it complains 3.50.0 is too old.
2. Uninstall nest-asyncio and uvloop as a workaround to b/339301920 and https://github.com/gradio-app/gradio/issues/8238#issuecomment-2101066984.
* Resolve merge conflict.
* minor updates.
* minor updates.
* Merge some SD notebook in g3 and github.
* Remove the unused variable in the controlnet notebook.
* minor updates.
* include the SD1.5 dreambooth notebook.
* Include the sd1.5 dreambooth notebook.
* Improve the stable diffusion dreambooth tuning CUJ in the Gradio notebook.
* minor update.
* Create a Gradio notebook for the new InstantId model.
* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.
* Update the image generation Gradio notebook to support Dreambooth finetuning.
* linter update
* linter update
* minor fix to the instant-id notebook.
* Minor fix to the stable diffusion gradio notebook.
* Split the 'instant-id' deployment notebook prediction into two sections.
* add `deployment_source` to the notebook.
* Switch to `pytorch-diffusers-serve-opt` container to for diffusion lora serving.
* add the dreambooth_lora notebook.
* minor update.
* Parameterize the "show_debug_logs" to facilitate automatic test of the Gradio notebooks.
* Lint format.
* minor updates
* Delete the two deprecated SD1.5 and 2.1 notebooks, as they were no longer referenced on any model cards.
* Sync Colab notebooks between g3 and github.
* format changes
* format update.
* Update get_started_with_pytorch_rov.ipynb
This is a test
* updated URL to point to tensorboard-introduction (and not "overview")
* change URL to /tensorboard-introduction
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Some minor updates to the SD2.1 deployment notebook.
* Minor update the `sd-xl` deployment notebook, based on the QA feedback.
* Add a few community models to the Gradio workshop.
* Switch `mediapipe-train` docker container from `vertex-ai-restricted` to `vertex-ai`, in the `mediapipe-train` notebooks.
* Create a notebook for model `instantx/instantid`.
* Update Gradio notebook to use the latest Gradio version and fix some bugs.
1. Update Gradio version to 4.29.0, as it complains 3.50.0 is too old.
2. Uninstall nest-asyncio and uvloop as a workaround to b/339301920 and https://github.com/gradio-app/gradio/issues/8238#issuecomment-2101066984.
* Resolve merge conflict.
* minor updates.
* minor updates.
* Merge some SD notebook in g3 and github.
* Remove the unused variable in the controlnet notebook.
* minor updates.
* include the SD1.5 dreambooth notebook.
* Include the sd1.5 dreambooth notebook.
* Create a Gradio notebook for the new InstantId model.
* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.
* Update the image generation Gradio notebook to support Dreambooth finetuning.
* linter update
* linter update
* minor fix to the instant-id notebook.
* Minor fix to the stable diffusion gradio notebook.
* Split the 'instant-id' deployment notebook prediction into two sections.
* add `deployment_source` to the notebook.
* Switch to `pytorch-diffusers-serve-opt` container to for diffusion lora serving.
* add the dreambooth_lora notebook.
* minor update.
* Parameterize the "show_debug_logs" to facilitate automatic test of the Gradio notebooks.
* Lint format.
* minor updates
* Delete the two deprecated SD1.5 and 2.1 notebooks, as they were no longer referenced on any model cards.
Fx colab parameter usage - the linting/auto-format placed some variables
across multiple lines which doesn't work in colab. Make the FOS ID names
shorter to avoid this issue.
Also fix some usage for getting FOS - this can be done directly using
SDK constructor.
Set PSC allow list project to current project.
Increase sleep for DNS propagation to pass CI.
* Create a Gradio notebook for the new InstantId model.
* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.
* Update the image generation Gradio notebook to support Dreambooth finetuning.
* linter update
* linter update
* minor fix to the instant-id notebook.
* Minor fix to the stable diffusion gradio notebook.
* Split the 'instant-id' deployment notebook prediction into two sections.
* add `deployment_source` to the notebook.
* Switch to `pytorch-diffusers-serve-opt` container to for diffusion lora serving.
* add the dreambooth_lora notebook.
* minor update.
* Parameterize the "show_debug_logs" to facilitate automatic test of the Gradio notebooks.
* Lint format.
* minor updates
* feat: Add notebook for E5 text embedding models
* feat: Add notebook for E5 text embedding models
* fix: Broken 'processor' param due to linter
* fix: Update the dev TEI docker images to the public ones
* Create a Gradio notebook for the new InstantId model.
* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.
* Update the image generation Gradio notebook to support Dreambooth finetuning.
* linter update
* linter update
* minor fix to the instant-id notebook.
* Minor fix to the stable diffusion gradio notebook.
* Split the 'instant-id' deployment notebook prediction into two sections.
* add `deployment_source` to the notebook.
* Switch to `pytorch-diffusers-serve-opt` container to for diffusion lora serving.
* add the dreambooth_lora notebook.
* minor update.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Some minor updates to the SD2.1 deployment notebook.
* Minor update the `sd-xl` deployment notebook, based on the QA feedback.
* Add a few community models to the Gradio workshop.
* Switch `mediapipe-train` docker container from `vertex-ai-restricted` to `vertex-ai`, in the `mediapipe-train` notebooks.
* Create a notebook for model `instantx/instantid`.
* Create a Gradio notebook for the new InstantId model.
* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.
* Update the image generation Gradio notebook to support Dreambooth finetuning.
* linter update
* linter update
* minor fix to the instant-id notebook.
* Minor fix to the stable diffusion gradio notebook.
* Update Gradio notebook to use the latest Gradio version and fix some bugs.
1. Update Gradio version to 4.29.0, as it complains 3.50.0 is too old.
2. Uninstall nest-asyncio and uvloop as a workaround to b/339301920 and https://github.com/gradio-app/gradio/issues/8238#issuecomment-2101066984.
* Resolve merge conflict.
* minor updates.
* minor updates.
* Update the instant-id Gradio notebook to use the latest Gradio version and fix some bugs.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Some minor updates to the SD2.1 deployment notebook.
* Minor update the `sd-xl` deployment notebook, based on the QA feedback.
* Add a few community models to the Gradio workshop.
* Switch `mediapipe-train` docker container from `vertex-ai-restricted` to `vertex-ai`, in the `mediapipe-train` notebooks.
* Create a notebook for model `instantx/instantid`.
* Update Gradio notebook to use the latest Gradio version and fix some bugs.
1. Update Gradio version to 4.29.0, as it complains 3.50.0 is too old.
2. Uninstall nest-asyncio and uvloop as a workaround to b/339301920 and https://github.com/gradio-app/gradio/issues/8238#issuecomment-2101066984.
* Resolve merge conflict.
* minor updates.
* minor updates.
* Create a Gradio notebook for the new InstantId model.
* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.
* Update the image generation Gradio notebook to support Dreambooth finetuning.
* linter update
* linter update
* minor fix to the instant-id notebook.
* Minor fix to the stable diffusion gradio notebook.
* Split the 'instant-id' deployment notebook prediction into two sections.
* add `deployment_source` to the notebook.
* Create a Gradio notebook for the new InstantId model.
* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.
* Update the image generation Gradio notebook to support Dreambooth finetuning.
* linter update
* linter update
* minor fix to the instant-id notebook.
* Minor fix to the stable diffusion gradio notebook.
* Create a Gradio notebook for the new InstantId model.
* Add dreambooth finetune to the stable diffusion Gradio workshop notebook.
* Update the image generation Gradio notebook to support Dreambooth finetuning.
* linter update
* linter update
* minor fix to the instant-id notebook.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Some minor updates to the SD2.1 deployment notebook.
* Update the link of the reference images.
* Update feature store vector search notebook to use latest vertex SDK.
* Run lint to fix format issue
* Sleep for a few minutes to wait for DNS to be ready
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Some minor updates to the SD2.1 deployment notebook.
* Minor update the `sd-xl` deployment notebook, based on the QA feedback.
* Add a few community models to the Gradio workshop.
* Switch `mediapipe-train` docker container from `vertex-ai-restricted` to `vertex-ai`, in the `mediapipe-train` notebooks.
* Create a notebook for model `instantx/instantid`.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Some minor updates to the SD2.1 deployment notebook.
* Minor update the `sd-xl` deployment notebook, based on the QA feedback.
* Add a few community models to the Gradio workshop.
* Switch `mediapipe-train` docker container from `vertex-ai-restricted` to `vertex-ai`, in the `mediapipe-train` notebooks.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Some minor updates to the SD2.1 deployment notebook.
* Minor update the `sd-xl` deployment notebook, based on the QA feedback.
* Add a few community models to the Gradio workshop.
* Update get_started_with_pytorch_rov.ipynb
This is a test
* Added "Open in Colab Enterprise" link and made other edits
* Update ray_cluster_management.ipynb
---------
Co-authored-by: Katie Nguyen <21978337+katiemn@users.noreply.github.com>
* Update FeatureStore embedding notebook to use vertex SDK preview.
* Fix format issue.
* Comment deleting transfer config code
* Add Credentialed Accounts
ACTIVE ACCOUNT
* 141951627079-compute@developer.gserviceaccount.com to debug permission issue
* Fix bigquery transfer run issue.
* Initial commit of a Llama2 TPUv5e LoRA example
* Addressing issue of job failing at the end by adding sys.exit(0) after all steps complete
* Adding Llama2 LoRA tuning on TPUv5e notebook
* Create /tmp/modelfiles folder for downloading model files during training
* Updated to use gcloud storage instead of gsutil
* Removed step to clear folder in bucket, since that causes failure
* Added serving/deployment section.
* Fixed linting errors
* Default to 8 chip tuning for quota issue on automated tests
* Defaulting back to 16 chip fine-tuning and epochs to 200
* Set Accelerate library to 0.28.0, as newer version break TPU support
* Updated upload of tuned model files to happen for all workers - to avoid timeout errors
* Temp remove active endpoint, then retest
* Updating docker container to python 3.10
* Added wait to prevent job delete step happening too early
* Lint issue and remove temporary endpoint delete
* Lint issue
* Add 15 minute wait while model is setup on the endpoint, and readd temp delete of endpoint
* Make 15 minute wait optional and remove temporary endpoint delete
* Remove GCS path to model garden model for final commit
---------
Co-authored-by: Rob Vogelbacher <robv@google.com>
* Update FS optimized serving GA colab
* Fix import order
* Fix import format
* Fix format
* Fix test issue
* Fix format
* Add way to getFOS&FV for FR/FG
* Fix minor typo in accelerator selection.
* Fix minor typo in accelerator selection.
* Update eval dataset to hellaswag.
* Update eval dataset to hellaswag.
* feat: Update supported models table in RLHF notebooks.
* feat: Update image that shows how to locate output_model_path.
* feat: Update name of deploy model component.
---------
Co-authored-by: Ryan Latture <latture@google.com>
* Add Colab on how to use Claude 3 models on Vertex AI
* Add Colab on how to use Claude 3 models on Vertex AI
* add codeowner
* lint
* update model version
* update stream sdk to have more readable response
* add colab for claude 3
* lint
* update CODEOWNERS and file name
* remove claude 3 colab from model_garden folder
* update CODEOWNERS
* format
* fix intergration test failed
* fix markdown not showing up
* fix markdown not showing up
* update pip command
* update install command
* update restart kernel command
* fix restart kernel command
* clear cell output
* update select region command
* raise error if user doesn't update project_id
* update ordering and add preview image section
* update ordering and add preview image section
* fix httpx package not install
* fix httpx package not install
* fix httpx package not install
* fix lint
* add claude 3 opus model
* fix lint
---------
Co-authored-by: Huy Ngo <huyngo@google.com>
* Add Colab on how to use Claude 3 models on Vertex AI
* Add Colab on how to use Claude 3 models on Vertex AI
* add codeowner
* lint
* update model version
* update stream sdk to have more readable response
* add colab for claude 3
* lint
* update CODEOWNERS and file name
* remove claude 3 colab from model_garden folder
* update CODEOWNERS
* format
* fix intergration test failed
* fix markdown not showing up
* fix markdown not showing up
* update pip command
* update install command
* update restart kernel command
* fix restart kernel command
* clear cell output
* update select region command
* raise error if user doesn't update project_id
* update ordering and add preview image section
* update ordering and add preview image section
* fix httpx package not install
* fix httpx package not install
* fix httpx package not install
* fix lint
---------
Co-authored-by: Huy Ngo <huyngo@google.com>
* Some minor updates to the SD-XL model deployment notebook, based on the QA feedback.
* Updates to the `sd-xl-dreambooth-lora-finetune` notebook based on feedback.
* [Stable diffusion gradio] Add a few pre defined styles to the workshop, also some minor UX improvement.
* Update all the diffusion-serve containder URI to 20240403_0836_RC00 which includes the latest optimizations to the diffusion models.
* Some minor updates to the SD-XL model deployment notebook, based on the QA feedback.
* Updates to the `sd-xl-dreambooth-lora-finetune` notebook based on feedback.
* [Stable diffusion gradio] Add a few pre defined styles to the workshop, also some minor UX improvement.
* Some minor updates to the SD-XL model deployment notebook, based on the QA feedback.
* Updates to the `sd-xl-dreambooth-lora-finetune` notebook based on feedback.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Some minor updates to the SD2.1 deployment notebook.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Create a notebook to demonstrate dreambooth LoRA finetune for SD-XL model.
* minor updates
* add to the codeowner list.
* merge conflict.
* minor fix to the Gradio UI workshop notebook.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Some minor changes to the stable diffusion 2.1 and sd-xl notebooks.
* some additional minor fixes.
* additional fixes.
* Fix the minor bug associated with "bucket_name".
* Minor fixes for "BUCKET_NAME" for sd2_1 and sdxl deployment notebooks.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Rewrite the SD2.1 dreambooth finetune notebook.
* Add code owners.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Rewrite the stable diffusion 2.1 notebook: step #1 deployment.
* Add controlnet-canny to the Gradio playground, and some additional UX enhancement.
* Minor fixes.
* Minor fixes
* Add additional document regarding the list of supported models, and some UI enhancement.
* Minor update to the hyperlink.
* Add Colab on how to use Claude 3 models on Vertex AI
* Add Colab on how to use Claude 3 models on Vertex AI
* add codeowner
* lint
* update model version
* update stream sdk to have more readable response
* add colab for claude 3
* lint
* update CODEOWNERS and file name
* remove claude 3 colab from model_garden folder
* update CODEOWNERS
* format
* fix intergration test failed
* fix markdown not showing up
* fix markdown not showing up
* update pip command
* update install command
* update restart kernel command
* fix restart kernel command
* clear cell output
* update select region command
---------
Co-authored-by: Huy Ngo <huyngo@google.com>
* Publishing fine-tuning Gemma on TPUv5e notebook
* Update codeowners to add new TPUv5e notebook
* Fixed log link formatting, and added note to require Colab pro for converting to HF format
* Reran local pylint
* Updated python version to 3.10.13
* Pylint reran
* Remove python version note and run linter
* Add gcloud components update for automated tests
* Revert 'Add gcloud components update for automated tests'
This reverts commit a3e79d299b
* Added gcloud components update for automated testing
* Rerun linter
* Updates per nb review
* Changed default region to one where TPUv5e exists
* Update match case to if else for python 3.9
* Some minor fixed to the `stable-diffusion-gradio` notebook.
* Fix the deployment error of the `SDXL-REFINER` model in the notebook.
* Removed two unnecessary comments.
* Update the logic of cleaning up the `bucket-uri` in the SDXL deployment notebook.
* Add a stable diffusion playground based on Gradio UI.
* Add codeowner.
* Update the serving docker image to include the latest fixes for image-inpainting.
* switch llama2 deploymente notebook to lowcode version
* add moderate text link and lint
* lint
* Set gpu utilization
* Add --max-num-batched-tokens=4096
* Set max model len
* move prints in function
* lint
* Remove comment
* Fix link
* Pin the `pytorch-diffusers-serve-opt` docker image to `20231213_0836_RC00`.
* Update 4 stable diffusion notebooks to use the optimized serving container, including controlnet, instruct-pix2pix, text-to-video, text-to-video-zero-shot.
* Fix linter error.
* Update the docker image version to 20240223_1230_RC00 to fix the image quality issue associated with DPMSolverMultistepScheduler.
* Added missing link and made other edits to "Custom training with pre-built Google Cloud Pipeline Components". No impact on code
* Update custom_model_training_and_batch_prediction.ipynb
fixed typo
* Pin the `pytorch-diffusers-serve-opt` docker image to `20231213_0836_RC00`.
* Update 4 stable diffusion notebooks to use the optimized serving container, including controlnet, instruct-pix2pix, text-to-video, text-to-video-zero-shot.
* Fix linter error.
* feat: Replace evaluation pipeline with Vertex SDK evaluate function on automl_text_classification_model_evaluation.ipynb
* Add automl-text-classification-evaluation-image
* Manually change notebook to test lint locally
* Format lint
* Update get_started_with_vertex_experiments.ipynb
Fix several errors preventing notebook from being run out of the box, namely the custom job container image.
* Update get_started_with_vertex_experiments.ipynb
* Update get_started_with_vertex_experiments.ipynb
* Update get_started_with_vertex_experiments.ipynb
* Update get_started_with_vertex_experiments.ipynb
* Update CODEOWNERS
* Update get_started_with_vertex_experiments.ipynb
* Update the link of how to request TPU v5e quota in the notebook.
* Create a notebook to demonstrate how to load a thrid-party stable diffusion model, on Vertex AI for online prediction.
* Add codeowner.
* add code owner.
* Make stable_diffusion_xl_turbo a separate notebook.
* Update the `stable-diffusion-upscaler` notebook to use the optimized serving containder.
* Update the link of how to request TPU v5e quota in the notebook.
* Create a notebook to demonstrate how to load a thrid-party stable diffusion model, on Vertex AI for online prediction.
* Add codeowner.
* add code owner.
* Make stable_diffusion_xl_turbo a separate notebook.
* Update the link of how to request TPU v5e quota in the notebook.
* Create a notebook to demonstrate how to load a thrid-party stable diffusion model, on Vertex AI for online prediction.
* Add codeowner.
* add code owner.
* Update the link of how to request TPU v5e quota in the notebook.
* Create a notebook to demonstrate how to load a thrid-party stable diffusion model, on Vertex AI for online prediction.
* Delete notebooks/community/model_garden/model_garden_pytorch_stable_diffusion_custom.ipynb
move it to a separate commit
* Made edits to "Vertex AI TensorBoard custom training with custom container". Fixed typos and cleaned up content. No impact on code
* Update tensorboard_custom_training_with_custom_container.ipynb
Deleted empty cell.
We temporarily disabled this parameter for first-party models, so this will avoid validation errors when running the RLHF tuning notebook in the meantime.
Co-authored-by: Ryan Latture <latture@google.com>
* Numerous edits to "Vertex AI SDK: AutoML training video classification model for batch prediction". Does not impact code.
* Update sdk_automl_video_classification_batch.ipynb
deleted "a"
* Mistral 7B Finetuning with QLora
Need to fix the PEFT Train docker image for the finetuning step.
Merging works correctly with the docker image, You might face an error when merging if the peft version used for merging is different from the one used for finetuning (new field added in the config_adapter file)
* Update peft docker train image to 20240126_0936_RC00
* Linter OK
* updated the notebook with pull requests comments
* Remove HPT and updated the bucket URI
* Linter update
* Made edits to "Vertex AI TensorBoard integration with Vertex AI Pipelines". I also updated the section on viewing and comparing pipeline runs to point to new documentation.
* Update tensorboard_vertex_ai_pipelines_integration.ipynb
A few more small fixes. Trying to find source of lint error
* Update tensorboard_vertex_ai_pipelines_integration.ipynb
removed empty cells
* Replace evaluation pipeline with evaluate function
* Replace evaluation pipeline with evaluate function on automl_tabular_regression_model_evaluation.ipynb
* Replace evaluation pipeline with evaluate function on custom_tabular_classification_model_evaluation.ipynb
* Replace evaluation pipeline with evaluate function on custom_tabular_regression_model_evaluation.ipynb
* Replace evaluation pipeline with evaluate function on automl_video_classification_model_evaluation.ipynb
* Format automl_tabular_classification_model_evaluation.ipynb
* Format automl_tabular_regression_model_evaluation.ipynb
* Format automl_video_classification_model_evaluation.ipynb
* Format custom_tabular_classification_model_evaluation.ipynb
* Format custom_tabular_regression_model_evaluation.ipynb
* Add files via upload
* Update screenshot for notebooks with evaluate function usage
* Revert custom_tabular_classification_model_evaluation.ipynb
* Format lint
* manual fix lint
* Update get_started_with_vertex_experiments_autologging.ipynb
Added link in "Learn more about..." to the Vertex AI Experiments intro page. Currently, this notebook is not showing up properly in the Jupyter SDK Tutorial page.
* Update get_started_with_vertex_experiments_autologging.ipynb
* Update notebook_template_review.py
Missing left curly bracket/brace 2xs
(Note, commented out, but still fixing)
#'AutoML Vision': '{automl_vision_name}}',
#'AutoML Image': '{automl_vision_name}}',
* Update get_started_with_vertex_experiments_autologging.ipynb
Needed to add a period.
* fix: update spacing
---------
Co-authored-by: Katie Nguyen <katiemn@gmail.com>
* Search for the MODEL_ID env and set it in the deployment function for all model garden notebooks for pre-trained and tuned models.
* Fix model_garden_pytorch_stable_video_diffusion_img2vid_xt notebook linter issue with load_image and HTML.
* Fix model_garden_pytorch_stable_video_diffusion_img2vid_xt notebook linter issue with load_image and HTML.
* Fix missing MODEL_ID in model_garden_mediapipe_image_generation.ipynb.
* Update comparing_pipeline_runs.ipynb
Needed edits for the page. Does not impact code.
* Update comparing_pipeline_runs.ipynb
responded to katie's feedback.
* feat: Vertex AI Feature Store Based LLM Grounding Tutorial
* fix: fix the feature store based llm grounding tutorial based on a few comments
* fix: fix the feature store based llm grounding tutorial based on a few comments
* fix: move the fs grounding notebook to official
* fix: comment colab only code
* fix: fix pipeline prefix
* fix: resolve several comments
* fix: resolve several comments
* fix: a quick fix for type
* fix: a quick fix for import
* fix: a quick fix for colab
* Add a section documenting the one-click finetuning
button in the Model Card UI.
The section explains how to use the button,
what the pipeline does and some troubleshooting
tips.
* Edit one-click finetuning instructions for clarity
and syntax.
* Correct 'Tensorboard' to 'TensorBoard'
* Updated finetuning pipeline instructions to
include steps on launching the pipeline via the
Vertex SDK.
* Added more parameters to the pipeline command
example. Moved the section down.
* Remove unintentional character interpolation
* Removed changes
* Undo formatting
* Remove old version of finetuning pipeline section
* Only allow huggingface datasets with the
finetuning pipeline.
* Fix linter issues
* Add a section documenting the one-click finetuning
button in the Model Card UI.
The section explains how to use the button,
what the pipeline does and some troubleshooting
tips.
* Edit one-click finetuning instructions for clarity
and syntax.
* Correct 'Tensorboard' to 'TensorBoard'
* Update staable-diffusion 1.5 and XL notebooks to deploy with default GPU as L4, instead of A100.
* Update the SD notebooks using the new container.
* Delete notebooks/community/model_garden/model_garden_pytorch_stable_diffusion_xl_1_0.ipynb
Resolve the merge conflict.
* Resolve the merge conflict.
This adds `chat-bison@001` to the table of supported models and documents chat dataset formats for relevant input parameters.
Co-authored-by: Ryan Latture <latture@google.com>
* Add SDXL-turbo as a separate section in the SDXL notebook.
* Add SDXL-turbo as a separate section in the SDXL notebook.
* Add a new notebook for sdxl LCM
* Add ViT benchmarking report.
* Add ViT benchmarking report.
* Add ViT benchmarking report.
* Add ViT benchmarking report.
* Add ViT benchmarking report.
* Add ViT benchmarking report.
* Rephrase optimized notebook
* Update format issue and change region
* Update format issue and change region2
* Fix import format
* Apply format
* Change region
* Create new colab for FS optimized serving
* Address comments
* Fix allowlist syntax error with param
* Change default region to trigger test in clean env
* Comment expect to fail cells
* Change default region to trigger test
* Update stable diffusion XL notebook to use the optimized serving docker.
* Update model_garden_pytorch_stable_diffusion_xl_1_0.ipynb
minor update
* Update model_garden_pytorch_stable_diffusion_xl_1_0.ipynb
minor update
* Add a notebook example for the NLLB model in model garden
* Add a notebook example for the NLLB model in model garden
* Update an incorrect hyperlink in the NLLB notebook.
* Miscellaneous editorial fixes and rebranding to "Vertex AI Feature Store (Legacy)"
* chore: rebrand Legacy Feature Store product
* chore: Rebrand to "Vertex AI Feature Store (Legacy)" and change "ingest" to "import".
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@google.com>
* rebrand and clean
* fix: Added better type checking and fixed misspelling of _GCP_VPC_NETWORK_NAME
---------
Co-authored-by: ivanmkc@google.com <ivanmkc@google.com>
* Clean up SDK2 Bigframes notebooks
* Debug ci dependency error
* Remove cell output
* Remove local overrides
* Additional debug
* Re-trigger CI test
* Rerun CI tests
* Rerun CI tests
* Rerun CI tests
* Add tensorflow-io-gcs-filesystem pin
* Fix version pin
* Fix other version pin
* PyTorch efficient training - refcator code
* Revert "PyTorch efficient training - refcator code"
This reverts commit 90b563a7697b15b4154ac76236b894253dd58f3c.
* Add notebook to deploy Mistral models on Vertex AI
* Add notebook to deploy Mistral models on Vertex AI
* Add notebook to deploy Mistral models on Vertex AI
* Updated notebook to deploy Mistral models on Vertex AI
* Linting fixes
* Adding endpoint cleanup and machine spec
* Updating CODEOWNERS file
* Update linting fixes
* feat: feature store 2.0 tutorial (goku)
* Complying with the template
* Complying with the template 2
* clarify the notebook description
* clarify the notebook description 2
* address review comments and rename file
* add known issue and change install package
* wait for the sync job to complete, and fix resource conflicts
* address review comments
* address review comments 2
* add a delay for the endpoint to start properly
* Update automl_tabular_classification_beans.ipynb, add REGION to pipeline init and validate BQ REGION
- Add REGION to pipeline init
- Add validation to BQ REGION against pipeline REGION
* Update automl_tabular_classification_beans.ipynb: Add region to the region validation message to print
* Update automl_tabular_classification_beans.ipynb
* Update automl_tabular_classification_beans.ipynb
* Update automl_tabular_classification_beans.ipynb
* Update automl_tabular_classification_beans.ipynb
Fix lint error: white space around =, order of import
* Add missing 'import os' for Colab
The module is imported, but the Colab instructions restart the kernel
losing the import. Make sure `os` is imported on use.
* Remove redundant import
* Demo colab for the embedding model
* Update text_embedding_api_cloud_next_new_models.ipynb
* Update the demo. Update the CODEOWNER.
* Update the links.
* Remove the quiet tag of the pip command
* Demo colab for the embedding model
* Update text_embedding_api_cloud_next_new_models.ipynb
* Update the demo. Update the CODEOWNER.
* Update the links.
* feat: boilerplate reduction 59
* fix: bucket
* spark runtime
* dataproc runtine -> 1.1.20
* updates the build steps + clean up steps
* ran linter test
* adds gcloud components update step for test env + adds needed services in before you begin section
* ran linter test
* moves the gcloud components update to the start + updates experiment fetching
* ran linter test
* updates the aiplatform sdk to the latest
* ran linter test
* removes gcloud components update and adds try except at get_dataframe() method
* ran linter test
* initializes experiment + adds gcloud update + removes try catch
* ran linter test
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@google.com>
* fix: boilerplate reduction 41
* fix: install
* fix: TFDV version
* fix: increase wait time
* increase wait time
* replace INPUT_GS_PATH with TRAINING_DATASET while copying data in GCS + removes future tense + clean up step for batch job + moves the learn more section above clean up section
* ran linter test
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@google.com>
* Add batch prediction examples to the ICN/IOD proprietary models in Model Garden
* Update teh IOD documentation to allow users to use up to 8 GPUs in training.
* Resolved comments
* fix: boilerplate reduction 88
* fix: install
* fix: reduce dataset size
* fix: > 24hrs
* fix: reduce dataset for testing
* fix: reduce dataset for testing
* updates sklearn and fixes the version, elaborates some existing descriptions and adds updates based on the template
* ran linter test
* changes FILE_NAME to LOCAL_FILE_NAME and adds a clean up step for the local saved model
* ran linter test
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@google.com>
* fix: issue 2125
* removes duplicate parameters, reduces max_steps to 100, fixes grammar and updates realted to the writing guidelines
* removes f from the string parameter
* ran linter test
* sets max_steps to 20 and adds lines in the cleanup step to remove the pipeline jobs
* ran linter test
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@google.com>
* adds the preprocessing steps on the original dataset + updates for boiler plate reduction
* ran linter test
* adds project-id and ticks in the sql queries
* ran linter test
* upgrade: boilerplate reduction 38
* fixes the pipeline-root-path typo, adds dataflow api dependency in the before-you-begin section, restructures the sections according to the template, fixes grammar and headings
* ran linter test
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@google.com>
* Added Pic2Word notebook to Vertex AI Model Garden.
* Added jismailyan to pic2word notebook codeowners
* Pic2Word update.
* Formatted notebook using lint script.
* Add Pic2Word serving dockerfile and handler.
* Add jismailyan to CODEOWNERS for model OSS pic2word
* Fix filename typo
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@google.com>
* Adding video object tracking with Vertex AI IOD endpoint and Bytetrack to model garden.
* Run vot container locally.
* fix: typo in license
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@gmail.com>
* Add workaround to import BigQuery table for predictions_bigquery_source parameter
* Fix format after running lint
* Comment out optional code block for reference
* Comment out optional code block for reference
* Change env variables
* Added Pic2Word notebook to Vertex AI Model Garden.
* Added jismailyan to pic2word notebook codeowners
* Pic2Word update.
* Formatted notebook using lint script.
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@google.com>
* debug: check if passes 30
* fix: service account
* fix: pin protobuff version for dependency compatibility (#2097)
---------
Co-authored-by: Eric Dong <itseric@google.com>
* Add diffusers train/serve docker files.
* Add two notebook examples for model garden google proprietary ICN/IOD models.
* Reformat the icn/iod notebooks.
* Format the notebook files.
* Remove VIT from the list since it is not supported yet.
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@google.com>
* Cleanup SAM notebook to:
- run endpoint/model deployment in separate cell and results visualization in another.
- add show_predictions function to show overlayed masks.
* Fix typo in SAM model garden notebook.
* Fix typo and cleanup SAM notebook with linter.
* Add diffusers train/serve docker files.
* Add two notebook examples for model garden google proprietary ICN/IOD models.
* Reformat the icn/iod notebooks.
* Format the notebook files.
* Add the first util class to the vertex-vision-model-garden repo
* Updated file names.
* Delete the 1st incorrect file set.
* Add the codeowners
* Revised the file folder structures.
* Add two additional files to the util directory.
* Add the first util class to the vertex-vision-model-garden repo
* Updated file names.
* Delete the 1st incorrect file set.
* Add the codeowners
* Revised the file folder structures.
* fix: pin protobuf version to address a dependency compability issue
* removed --user install
* update protobuf version
* workaround an artifact registry
* feat: add build to generate web index of official notebooks
* fix: review comments
* fix: store results
* fix: store results
* fix: --steps
* fix: --steps
* fix: moved to its own dir
* Add notebook for local inferences for models on huggingface
* lint
* add notebook to CODEOWNERS
* update link
* Add objective section. Add brief description of each code block.
* Update stable_diffusion notebook with steps for local inference.
* Lint
* Move comments to top and shorten line.
* Lint
* Make code comment titles, add print statements, and update Objective
* change print to display
* lint
* change training dockers to serving dockers
* Add local inferences instructions for stable diffusion inpainting.
* Lint
* remove extra libraries and add GPU
* remove re-imports
* Added new bq_ml_with_vision_translation_nlp notebook. Added README. Updated community CODEOWNERS file
* review comment changes - renamed folder, updated headers, reformatted to be more in line with template
* review comment changes - renamed folder, updated headers, reformatted to be more in line with template
* lint formatting fixes
---------
Co-authored-by: Andrew Ferlitsch <aferlitsch@google.com>
* Add Keras stable diffusion notebook for model garden
* Fix minor typos in Keras Stable Diffusion
* Fix format after minor typo fixes
* Update the objective structure
* update minor comments
* Add text_embedding_api_semantic_search_with_scann notebook.
* Linted version.
* Updating the cell moving the pip install to the top
* Adding shapely<2.0.0.
@@ -6,14 +6,21 @@ READ FIRST BEFORE MAKING CHANGES
- Add --dry-run option to the clean-up script. This option will just output the list of resources the script will delete instead of actually deleting the resources.
- Have a larger conversation in DEE before touching any resources that were not created as part of vertex-ai-samples
Welcome to the Google Cloud [Vertex AI](https://cloud.google.com/vertex-ai/docs/) sample repository.
This repository contains notebooks, code samples, sample apps, and other resources that demonstrate how to use, develop and manage machine learning and generative AI workflows using Google Cloud Vertex AI.
## Overview
The repository contains [notebooks](https://github.com/GoogleCloudPlatform/vertex-ai-samples/tree/master/notebooks) and [community content](https://github.com/GoogleCloudPlatform/vertex-ai-samples/tree/master/community-content) that demonstrate how to develop and manage ML workflows using Google Cloud Vertex AI.
[Vertex AI](https://cloud.google.com/vertex-ai) is a fully-managed, unified AI development platform for building and using generative AI. This repository is designed to help you get started with Vertex AI. Whether you're new to Vertex AI or an experienced ML practitioner, you'll find valuable resources here.
For more Vertex AI Generative AI notebook samples, please visit the Vertex AI [Generative AI](https://github.com/GoogleCloudPlatform/generative-ai) GitHub repository.
## Explore and learn
You can explore, learn, and contribute to this repository to unleash the full potential of machine learning on Vertex AI! You can follow the links in the header section of each of the notebooks to -
 Open and run the notebook in [Colab](https://colab.google/)\
 Open and run the notebook in [Colab Enterprise](https://cloud.google.com/colab/docs/introduction)\
 Open and run the notebook in [Vertex AI Workbench](https://cloud.google.com/vertex-ai/docs/workbench/introduction)\
 View the notebook on Github
## Get started
To get started using Vertex AI, you must have a Google Cloud project.
- If you don't have a Google Cloud project, you can learn and build on GCP for free using [Free Trail](https://cloud.google.com/free).
- Once you have a Google Cloud project, you can learn more about [setting up a project and a development environment](https://cloud.google.com/vertex-ai/docs/start/cloud-environment).
## Repository structure
```bash
├── community-content - Sample code and tutorials contributed by the community
├── notebooks
│ ├── community - Notebooks contributed by the community
│ ├── official - Notebooks demonstrating use of each Vertex AI service
│ │ ├── automl
│ │ ├── custom
│ │ ├── ...
│ ├── community - Notebooks contributed by the community
│ │ ├── model_garden
│ │ ├── ...
├── community-content - Sample code and tutorials contributed by the community
```
## Contributing
@@ -35,3 +56,6 @@ This is not an officially supported Google product. The code in this repository
## Feedback
Please feel free to fill out our [survey](https://bit.ly/vertex-ai-samples-survey) to give us feedback on the repo and its content.
## References
- [Vertex AI Jupyter Notebook tutorials](https://cloud.google.com/vertex-ai/docs/tutorials/jupyter-notebooks)
# Benchmark report on hyperparameter tuning the OpenLLaMA models on Google Cloud Vertex Model Garden
Changyu Zhu, Software Engineer, Google Cloud
Dustin Luong, Software Engineer, Google Cloud
Gary Wei, Software Engineer, Google Cloud
Genquan Duan, Software Engineer, Google Cloud
## Introduction
Fine-tuning of LLMs can be non-trivial to find an optimal configuration of
machine types, training parameters, and other hyperparameters that achieves a
good balance between cost efficiency and model performance. To facilitate users
in conducting tuning experiments, this report benchmarks fine-tuning OpenLLaMA
models with [Vertex AI Hyperparameter Tuning Service](https://cloud.google.com/vertex-ai/docs/training/hyperparameter-tuning-overview), demonstrating both efficiency
and effectiveness. Similar hyperparameter tuning techniques can apply to other models as well.
## Key takeaways
- **The hyperparameter tuning service finds good parameters**: The best model found by the hyperparameter tuning service has an average improvement of around 4% in accuracy in *ARC*, *HellaSwag*, and *TruthfulQA* datasets, while only tuning the learning rate.
- **Hyperparameter tuning works with QLoRA on limited resources**: 4bit QLoRA is sufficient for hyperparameter tuning to find a set of good parameters. In this way, all OpenLLaMA models can run on 1 single `NVIDIA_L4` GPU. It is also possible to train for more steps on the good parameters discovered by hyperparameter tuning, avoiding the waste of computing resources on fine-tuning with suboptimal hyperparameters.
- **Hyperparameter tuning is cost-effective**: While `NVIDIA_L4` is slower than `NVIDIA_TESLA_V100`, it costs less and avoids the overhead of multi-GPU training since it has more GPU memory. Finding a good 3B/7B/13B OpenLLaMA model costs $28.5671, $47.8016, and $87.9208, respectively.
## Benchmarking setup
This section describes the experiment setup of the hyperparameter tuning experiments. The default tuning parameters are:
We use the Huggingface [PEFT](https://github.com/huggingface/peft) library for fine-tuning.
### Training dataset
We use the dataset [timdettmers/openassistant-guanaco](https://huggingface.co/datasets/timdettmers/openassistant-guanaco) loaded directly via Huggingface.
### Training parameters
The set of training parameters used during benchmarking:
- Batch size: 4
- Precision mode: 4bit QLoRA
- LoRA rank: 32
- LoRA alpha: 64
- Max sequence length: 512
- Max train steps: 1000
### Evaluation dataset
We use the [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) library injected into the training loop for evaluation. The hyperparameter tuning job will pick the model according to the evaluation metrics.
We only tune the learning rate hyperparameter. It is considered a floating point value in the continuous range [1e-5, 1e-4]. We run 8 trials in total, with a parallelism of 1 or 2.
### Code example
The following code example launches an example hyperparameter tuning job of OpenLLaMA 7B model.
Here are the evaluation results of the best model found by hyperparameter tuning, compared with the baseline model. The column `Eval acc_norm` is calculated during training, which is always lower than that during standalone evaluation, because the model is loaded and evaluated at a lower precision (4bit during training / float16 during standalone evaluation).
# Benchmark Stable Diffusion v1-5 Fine Tuning and Serving With Google Cloud Vertex Model Garden
Dustin Luong, Software Engineer, Google Cloud
Gary Wei, Software Engineer, Google Cloud
Changyu Zhu, Software Engineer, Google Cloud
Genquan Duan, Software Engineer, Google Cloud
## Introduction
[The public notebook][1] shows the full examples of fine tuning and serving of Stable diffusion v1-5. [The github repo][2] contains examples of building training and serving dockers for Google Cloud Vertex Model Garden. This report benchmarks Stable diffusion v1-5 fine tuning and serving in Google Cloud Vertex AI, showing both efficiencies and effectiveness.
### Benchmark Highlights
- Fine tuning
- Stable diffusion v1-5 with LoRA and Gradient checkpointing only requires ~10G GPU memory. Larger batch sizes, or larger resolutions require more GPU memories, but not does not change much for different LoRA ranks.
- The fine tuning speed is fast in ~11 minutes for 1k steps, and costs less than $1 in 1 A100. The fine tuning speed increases with batch sizes, decreases with resolution, but is not affected much by LoRA ranks.
- LoRA tunes a few percent (only 0.1% with LoRA rank=8) of all parameters, and the tuned models are very small (only 3.1MB with LoRA rank=8).
- Dreambooth+LoRA and Dreambooth can achieve similar performances, but Dreambooth LoRA can require much less GPU.
- Increasing batch size, reducing training steps, and increasing learning rate can result in models with the same performance for less cost.
- Inference
- The optimized serving docker pytorch-peft-serve can speed up inference by 2x than current pytorch-diffuser-serve, and support both base models and fine tuned lora models.
- The optimized serving docker pytorch-peft-serve can generate 4 512*512 images in 4.1 seconds on 1 V100 and 1.7 seconds on 1 A100.
Benchmark details are below.
## Fine Tuning Benchmarks
### Experiment Setup
We mainly compare two tuning algorithms:
- parameter efficient finetuning based on [dreambooth][3] and [LoRA][4] (shorten as Dreambooth+LoRA below)
- full parameter fine tuning based on [dreambooth][3] (shorten as Dreambooth below)
And then report benchmark results on GPU memories, tuning parameters, tuning speeds, costs and accuracy, using the public oxford flowers dataset: [train][5] and [test][6], where the column blip_caption as texts, and column image as images. We also benchmark subject and prompt fidelity using the [dataset][7] from the Dreambooth paper.
The default tuning parameters during benchmark are:
Many various factors will impact GPU memory usages. In this benchmark, we mainly benchmark with different finetuning algorithms, batch sizes, lora rank, resolution, and then recommended max batch size on different GPUs.
- LoRA tuning reduced about 47% peak RAM and 42% peak VRAM for GPU memory, compared to full parameter fine tuning.
- Gradient checkpointing decreases about 1% peak RAM and 31% peak VRAM for GPU memory further, compared without gradient checkpointing.
- The GPU memory does not change much for different LoRA ranks.
- Larger batch sizes require more GPU memories.
- Larger resolutions require more GPU memories.
- Dreambooth+LoRA+Gradient_Checkpointing can support max batch size as 32, or max resolution as 2048, but Dreambooth can only support max batch size as 8, or max resolution as 1024.
### Fine Tuning Parameters
This section shows the percentage of trainable parameters, and tuned model sizes.
- LoRA tunes quite a few percent (only 0.1% with LoRA rank=8) of all parameters, and the tuned models are very small (only 3.1MB with LoRA rank=8).
| LoRA Rank | Trainable parameters | Total parameters | Trainable Parameter Percentage | Fine tuned model size (MB) |
|---|---|---|---|---|
| 4 | 398592 | 859919556 | 0.05% | 1.57 |
|8 | 797184 | 860318148 | 0.09% | 3.09 |
| 16 | 1594368| 861115332| 0.19%| 6.13|
| 32| 3188736| 862709700| 0.37%| 12.21|
### Fine Tuning Speed And Costs
Fine tuning speeds and costs are affected by many different factors, such as batch size, tuning parameters, image resolutions, GPUs, and datasets. In order to make the report easy to understand, we set the following values in this section:
- The fine tuning speed increases with batch sizes, decreases with resolution, but is not affected much by LoRA ranks.
- The fine tuning speed is about 11 minutes for 1k steps, and costs less than $1 in 1 A100.
### Fine Tuning Quality
In this benchmark, we mainly benchmark Dreambooth and Dreambooth+LoRA to compare fine tuning quality. We compare [subject fidelity scored (DINO)][8], how well the subject is represented in the generated images, and [prompt fidelity scores (CoCa)][9], how well the generated images match the given prompt, for a single subject, a [dog][10] from the dataset released with the original Dreambooth paper. In practice, we recommend saving checkpoints periodically and inspecting validation prompts visually. We fine tuned the unet without fine tuning the text encoder and used the following hyperparameters:
- Fine tuning with Dreambooth or Dreambooth+LoRA can result in models with comparable performance. The base model produced images of the class rather than the instance.
- Dreambooth+LoRA is able to achieve the same subject fidelity score as Dreambooth if trained for more epochs.
- Increasing the number of training steps results in better subject fidelity but at the cost of prompt fidelity.
### Suggested Max Batch Sizes By Resolutions
We benchmarked and suggested max batch sizes by resolutions on 1 A100 and 1 V100 as below. This is with LoRA and gradient checkpointing enabled.
Increasing batch size allows for more images to be considered at each training step for fine tuning. This allows models to be trained in fewer training steps. In this benchmark, we aim to show how batch size can be increased to reduce training costs while still preserving subject and prompt fidelity.
Since the training dataset consists of 5 images, we train with a batch size of 5 and reduce the number of training steps from 400 to 80. Doing so results in a model that has not learned the subject since we’ve decreased the number of training steps. Conceptually, the model is taking a more precise step at each iteration, but it is taking fewer steps. To compensate for this, we increased the learning rate from 5e-6 and observed the best results at 1e-5 for full parameter finetuning.
- Although V100 has a lower $/hr cost than an A100, the same training setup takes longer. Even given the longer training time, the cost on V100 is still lower.
- Dreambooth+LoRA enables training with larger batch sizes, however, larger batch sizes will not necessarily mean faster training time.
- It is possible to fine tune with 1 V100 on 512 resolution with Dreambooth+LoRA.
- Dreambooth fine tuning must be run on 1 A100 at 512 resolution.
## Inference Benchmarks
We provide two serving dockers in vertex model garden for stable diffusion:
- This serving docker can serve base stable diffusion models, and base stable diffusion models with fine tuned lora models, and contains optimization for serving.
We run the two serving dockers on T4/V100/A100 to generate 4 512*512 images, and compare the inference speed without network considerations as:
"""Adds additional model-garden related arguments."""
parser.add_argument(
"--train_dataset_name",
required=False,
default="",
type=str,
help=(
"The training dataset name for registration. "
"For example: 'balloon_train'."
),
)
parser.add_argument(
"--train_coco_json_file",
required=False,
default="",
type=str,
help="The path to the training coco-json format file.",
)
parser.add_argument(
"--train_image_root",
required=False,
default="",
type=str,
help="The path to the root folder containing the training images.",
)
parser.add_argument(
"--val_dataset_name",
required=False,
default="",
type=str,
help=(
"The validation dataset name for registration. "
"For example: 'balloon_val'."
),
)
parser.add_argument(
"--val_coco_json_file",
required=False,
default="",
type=str,
help="The path to the validation coco-json format file.",
)
parser.add_argument(
"--val_image_root",
required=False,
default="",
type=str,
help="The path to the root folder containing the validation images.",
)
parser.add_argument(
"--output_dir",
required=True,
type=str,
help="The path to the output directory.",
)
# Add hyper-parameter tuning related variables.
parser.add_argument(
"--lr",
type=float,
default=0.00025,
help="The learning rate to be tuned.",
)
parser.add_argument(
"--hp_eval_task",
type=str,
choices=["bbox","segm"],
default="bbox",
help="The task choice for HP tuning.",
)
returnparser
defregister_dataset(args:argparse.Namespace):
"""Register the input dataset in Detectron2 Coco format."""
ifargs.train_dataset_name:
register_coco_instances(
name=args.train_dataset_name,
metadata={},
json_file=args.train_coco_json_file,
image_root=args.train_image_root,
)
ifargs.val_dataset_name:
register_coco_instances(
name=args.val_dataset_name,
metadata={},
json_file=args.val_coco_json_file,
image_root=args.val_image_root,
)
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.