Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you restart it, you'll have to start from the beginning.
- On the top left of your screen, click Start lab to begin
Explore model garden
/ 50
Explore model types
/ 50
Model Garden on Vertex AI provides a single place to search, discover, and interact with a wide variety of models from Google and Google partners. Model Garden is available on Vertex AI and can be accessed from the Google Cloud console. This lab provides a use case for you to explore Model Garden and then use Vertex AI Studio to create and experiment with prompts.
Model Garden on Vertex AI is a collection of pre-trained machine learning models and tools that are designed to simplify the process of building and deploying machine learning models.
These models could be in a wide variety of model types and sizes. Model Garden offers first-party models such as multimodal models from Google across vision, dialog, code generation, and code completion; or a wide variety of enterprise-ready open source models.
Model Garden also provides a variety of tools to help you use these models, including:
One of the models available through Model Garden is the Cloud Natural Language API. The Cloud Natural Language API lets you extract entities from text, perform sentiment and syntactic analysis, and classify text into categories.
Vertex AI Studio is a Google Cloud console tool for rapidly prototyping and testing generative AI models. You can test sample prompts, design your own prompts, and customize foundation models to handle tasks that meet your application's needs. You can perform the following:
In this lab, you explore the following:
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources will be made available to you.
This hands-on lab lets you do the lab activities yourself in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials that you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
Click the Start Lab button. If you need to pay for the lab, a pop-up opens for you to select your payment method. On the left is the Lab Details panel with the following:
Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).
The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Arrange the tabs in separate windows, side-by-side.
If necessary, copy the Username below and paste it into the Sign in dialog.
You can also find the Username in the Lab Details panel.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
You can also find the Password in the Lab Details panel.
Click Next.
Click through the subsequent pages:
After a few moments, the Google Cloud console opens in this tab.
You work for a real estate firm as a marketing analyst. Your company is interested in using large language models (LLMs) to return brief text descriptions of homes they are interested in and mortgage information. You have been tasked with creating prompts that will summarize text from very long home descriptions on your real estate site. The home descriptions are stored in a file in a Google Cloud Storage bucket. You will begin by using Model Garden to explore available pre-built models to save time, and then you will implement a solution to use a model to summarize the text.
In the Google Cloud console, from the Navigation menu (), select Vertex AI > Dashboard.
From the Vertex AI Dashboard, click Enable all Recommended APIs.
To view the list of available Vertex AI and open source foundation, tunable, and task-specific models, you can use Model Garden.
The model categories available in Model Garden are:
Category | Description |
---|---|
Foundation models | Pre-trained multitask large models that can be tuned or customized for specific tasks using AI Studio, Vertex AI API, and the Vertex AI SDK for Python. |
Fine-tunable models | Models that you can fine-tune using a custom notebook or pipeline. |
Task-specific solutions | Most of these pre-built models are ready to use. Many can be customized using your own data. |
From the Vertex AI Dashboard, in the Tools pane on the left, click Model Garden to return to the Model Garden main page.
In the Foundation Models section click Show All and then click on the Gemini 1.5 Pro model card.
The details page provides an overview of the Gemini 1.5 Pro for Text model, including a description of what it is, an introduction to potential use cases, and documentation for the model.
Notice the Open in Vertex AI Studio button, which opens the AI Studio Language interface where you can interact with and experiment with the model. AI Studio is a feature of Vertex AI. It makes writing and tuning prompts for text, chats, and code generation simple and intuitive.
You can now explore this model to see how it responds to prompts.
Click Check my progress to verify your performed task.
Model Garden is a single place to discover and interact with foundation models and popular open source models. With all of different enterprise-ready models you could use, Model Garden allows you to choose the right model for your use case, ML expertise, and budget.
With Model Garden, you can use a variety of workflows, including:
In this lab, you will explore some of these workflows.
In the Tools pane on the left, click Model Garden to return to the Vertex AI Model Garden page.
On the side of the Foundation Models section, click Show All to expand the full list of foundation models.
You can see quite a few model group types in the left pane, which allows you to filter for models that meet your specific needs. Display only those models related to vision and detection:
Under Modalities click Vision.
Under Tasks click Detection.
Notice that there are now a few models for your selected use-case. The Owl ViT model is a zero-shot, text-conditioned, object detection model that can query an image with one or multiple text queries.
Notice that the Vertex AI OWL-ViT page has an Open Notebook link to open a JupyterLab Notebook.
Review the Colab notebook but you do not need to run it. This Colab notebook demonstrates how to deploy the pre-trained OWL-ViT model on Vertex AI for online prediction. To learn more about Colab notebooks, visit the homepage for Google Colaboratory.
For the models you want to fine-tune, Model Garden on Vertex AI provides you an easy way to get started.
In the Tools pane on the left, click Model Garden to return to the Vertex AI Model Garden page.
Clear the filter selections under Modalities and Tasks if it is not cleared already.
Type "bert" in the Search Models search bar and select BERT model from the search list.
Click Fine-Tune to open the bert-finetuning Vertex AI pipeline.
Review the pipeline but you do not need to run it.
Click Check my progress to verify your performed task.
This brings you to a template that you can use to fine tune and deploy this model. You can see the various components of this pipeline that this template would execute.
In your own production environment, you would click Create Pipeline, fill in or confirm the required information, and then click Submit. This deploys a pipeline without you ever having to write code.
You have used Model Garden and AI Studio to create and experiment with prompts for various generative AI use cases. You also explored the Vertex AI Studio UI.
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated October 14, 2024
Lab Last Tested October 14, 2024
Copyright 2024 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one