Send feedback
Hello text data: Deploy model to an endpoint and send a prediction
Stay organized with collections
Save and categorize content based on your preferences.
Starting on September 15, 2024, you can only customize
classification, entity extraction,
and sentiment analysis objectives by moving to Vertex AI Gemini prompts and tuning. Training or
updating models for Vertex AI AutoML for Text classification, entity extraction, and sentiment
analysis objectives will no longer be available. You can continue using existing Vertex AI AutoML
Text models until June 15, 2025. For a comparison of AutoML text and Gemini, see Gemini for AutoML text users . For more information about how Gemini
offers enhanced user experience through improved prompting capabilities, see Introduction to tuning .
To get started with tuning, see Model tuning for Gemini text models
After your AutoML text classification model is done training, use the
Vertex AI console to create an endpoint and deploy your model to
the endpoint. After your model is deployed to the endpoint, send a document
to the model for label prediction.
This tutorial has several pages:
Setting up your project and environment.
Creating a text classification dataset .
Training an AutoML text classification
model.
Deploy model to an endpoint and send a
prediction.
Cleaning up your project.
Each page assumes that you have already performed the instructions from the
previous pages of the tutorial.
Deploy your model to an endpoint
Access your trained model to deploy it to a new endpoint from the Model
Registry page.
In the Google Cloud console, go to the Model Registry page.
Go to the Model Registry page
For Region , select us-central1 (Iowa) .
Click the name and version number of your trained AutoML model to
view details about your model.
For example, in the Evaluate tab, you can view your model's performance
metrics.
Select the Deploy & test tab to create an endpoint.
Click Deploy to endpoint .
In the Deploy to endpoint window, complete the following steps:
Choose
radio_button_checked Create new
endpoint and enter a name for the endpoint such as hello_automl_text
.
Accept the Traffic split of 100% , and click Deploy .
It takes several minutes to create the endpoint and deploy the AutoML
model to the new endpoint.
Send a prediction to your model
After the endpoint is created, you can send text predictions from the
Vertex AI console.
In the Google Cloud console, go to the Model Registry page.
Go to the Model Registry page
For Region , select us-central1 (Iowa) .
Click your trained AutoML model.
Select the Deploy & test tab
In the Test your model section, enter text for prediction.
Click Predict to view the model's predicted label and confidence score.
What's next
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-03 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-03 UTC."],[],[]]