Operation
What is Vertex AI? – Model Training, Features and More
When building machine learning (ML) models, significant input and expertise are required to navigate the entire journey from data management through to predictions. You need to handle data preparation, training the model based on your data, evaluating its efficiency, and ultimately deploying it for predictions. Since organisations typically have teams with varying levels of expertise, streamlining an ML workflow to create precise and efficient ML models can be challenging. Consequently, accelerating the deployment of ML models and applications in production becomes extremely difficult. Well, that is now a thing of the past, thanks to Vertex AI.
What is Vertex AI?
Vertex AI is Google Cloud's ML platform for building, evaluating, versioning, and deploying ML models in production environments. It is an end-to-end solution covering the entire machine learning workflow, from data preparation and model development to deployment and monitoring. Vertex AI brings all of this under one roof, allowing your data science, ML engineering, and data engineering teams to access a shared toolset throughout your entire ML workflow.
It offers a wide range of low-code tools that allow users to harness the power of AI for various use cases without compromising on capabilities. All of this runs on Google Cloud's fully managed infrastructure, enabling you to scale ML models seamlessly without having to worry about infrastructure provisioning. Vertex AI is one of the Google Cloud data services, and with its capabilities, organisations can build, deploy, and scale machine learning models more easily.
Features of Vertex AI
Vertex AI offers solutions for every step of the machine learning workflow, including:
Data preparation consolidated in one central place
You can use managed datasets within Vertex AI to prepare your data prior to training. In managed datasets, you can import, clean, and label data directly from the console or via the API. Once you have your data, you can explore it using either Vertex AI Workbench notebooks or Dataproc Serverless Spark, depending on its size.
Model training options for experts
There are two options here: AutoML or custom. AutoML is the best option for beginners, as it allows them to train models based on their data without needing to write code. It supports various data types, such as text, images, videos, and tabular data. With AutoML, Vertex AI takes care of finding the best model for the task at hand.
The custom option is the preferred ML framework for experts, offering them greater control over the model's architecture. So, if you want to design the architecture and write the training code yourself, this is the right option for you. With custom training, you can use a pre-built container image (PyTorch, TensorFlow, or XGBoost) or create a custom container image to prepare your training application. You can then configure the compute resources to run your custom model's training job.
Model evaluation for performance improvement
By leveraging Explainable AI in Vertex AI, you can evaluate your ML models and understand the signals behind how they work. Vertex AI provides various metrics such as confidence threshold, recall, precision, etc., to evaluate your model's performance. You can use this information to resolve issues and enhance your model's performance.
Model deployment
To deploy your models for predictions, Vertex AI enables you to create endpoints for deployment. A model can have multiple endpoints and scales based on traffic, provided you configure the compute resources accordingly. The best part about model deployment with Vertex AI is that you can import a model trained elsewhere and deploy it on Vertex AI. An ML model deployed on Vertex AI can serve online predictions (HTTP predictions) and batch predictions—based on batch data in Cloud Storage. Batch predictions do not require deployment to endpoints.
Integration with generative AI
Vertex AI's integration with generative AI provides users with access to Google's foundation models for generative AI. A wide variety of foundation models are available on Vertex AI, such as models for code, images, text, and chat, as well as text embedding models. These are grouped according to the type of content they are designed to generate.
Foundation models are designed for general use cases, but you can fine-tune them for specific tasks. You can achieve this using prompts (e.g. text commands), steering them to behave differently depending on how you structure your prompts. Once you are satisfied, you can deploy them to production. With limited ML knowledge and just a few lines of code, you can start building generative AI.
Vertex AI in MLOps
Vertex AI is excellent for organisations looking to streamline model development and deployment through MLOps. In addition to the features mentioned above, Vertex AI offers several other capabilities that help users implement and improve MLOps across the entire ML workflow. These include:
Vertex AI Pipelines – for creating machine learning pipelines that automate the orchestration of ML workflows, monitoring, and governance. This helps minimise errors and move ML models into production faster.
Vertex ML Metadata – for tracking ML metadata, artefacts, and parameters that are useful during model evaluation.
Vertex AI Experiments and Vertex AI TensorBoard – to identify the best model for a specific use case based on various factors such as architecture and performance.
Vertex AI Feature Store – for managing ML features and reusing them at scale to accelerate the development and deployment of new ML models.
Vertex AI Model Monitoring – for monitoring the quality of deployed models and sending alerts when predictions deviate significantly from the target.
With Vertex AI's MLOps tools, AI teams (data scientists, ML engineers, and IT staff) can collaborate effectively and improve their ML models through predictive monitoring and proactive maintenance.
Training a custom model with Vertex AI
If your machine learning use cases cannot be met by Vertex AI's AutoML offering, training a custom model is the best approach for you. This provides you with greater control and flexibility throughout the entire model development process. If you want to do this at scale, Vertex AI addresses the common challenges of scaling custom models through enterprise-grade infrastructure management and security.
NOTE: This method is more complex than using AutoML and requires you to write your own training code.
So, to train a custom model with Vertex AI, you need to do the following:
1: Load and prepare training data
First, create your dataset based on the prediction task and the type of data you wish to use. All created datasets are available to you in the Vertex AI dashboard. To ensure optimal performance and support, we recommend using either Cloud Storage, BigQuery, or NFS shares on Google Cloud as your data source, or Vertex AI Managed Datasets if you want to use training pipelines.
2: Prepare the training application
Training a custom model in Vertex AI takes place in Docker containers, so you will need to create a container for your training application. Before doing so, ensure that you select the Custom training option in the Training tab of your Vertex AI dashboard.
With the custom training option, Vertex AI allows you to train models built with any framework using pre-built or custom containers. For pre-built containers, the supported frameworks are: PyTorch, TensorFlow, XGBoost, and scikit-learn. If you built your training app with one of these frameworks, you can upload your code as a Python package.
If you built your training application with a different framework, the custom container option is the right choice for you. Here, you can build your own Docker container image with your training code and installed dependencies, and upload it to Artifact Registry.
3: Configure the training job
First, select the type of training job: either a custom job, hyperparameter tuning, or a training pipeline. Next, configure the compute resources (VMs, GPUs, etc.) to be used for the training job. After these settings, configure your container settings, such as specifying the URI of the container image you wish to use.
4: Create your training job
Once all settings are configured, you can create your training job via the Google Cloud Console, Google Cloud CLI, Vertex AI SDK for Python, or the Vertex AI API.
All models you create are accessible to you via the Vertex AI dashboard. You can now create an endpoint to deploy your model. It is important to note that you must set up a billing account to use Vertex AI. Google Cloud provides you with a free $300 credit for 90 days, but you will not be charged automatically once the trial period ends.
Key Takeaways
Vertex AI is a machine learning platform that offers tools for every step of the ML workflow, from data preparation through to predictions. It is an excellent tool for MLOps, as it includes features that enable the continuous integration and deployment of ML models in production environments.
Vertex AI is ideal for organisations looking to unite their AI and MLOps teams on a single platform, equipping them with a shared toolkit for their work. In this way, it can help them build safer, more efficient, and more accurate ML models significantly faster and more conveniently.



