Prepare and test your skills
Prepare and test your skills
Bridging notebook prototypes to enterprise tracking and scalable pipelines is the shift from interactive experimentation to repeatable, governed production training on Vertex AI. A prototype starts in a Vertex AI Workbench (opens in a new tab) instance or Colab Enterprise notebook using PyTorch, scikit-learn, and JAX through the Vertex AI SDK for Python, then moves to managed training and orchestration. Vertex AI Custom Training (opens in a new tab) jobs and Vertex AI Pipelines (opens in a new tab) provide scale and automation, while Vertex AI Experiments (opens in a new tab), Vertex AI TensorBoard, Vertex ML Metadata, and Vertex AI Model Registry (opens in a new tab) track hyperparameters, metrics, and artifact lineage across that transition.
Vertex AI Custom Training is the managed service, delivered through the Gemini Enterprise Agent Platform Managed Training service, that runs modular training code outside the notebook on Google Cloud infrastructure. Vertex AI Workbench instances are recommended for experimentation and development, including writing code, starting jobs, running queries, and checking status, with secure access to data and AI services. Training inside the Workbench instance is sufficient for small datasets or subsets of a larger dataset, while the training service is needed for larger datasets or distributed training.
The same Managed Training service is also recommended to productionize training even on small datasets when training runs on a schedule or in response to new data arrival. In practice, data flows from BigQuery or Cloud Storage into the training job, and the trained artifact flows from the job to the Model Registry. The Vertex AI SDK for Python supports this move because it provides an end-to-end workflow that works with PyTorch, TensorFlow, XGBoost, and scikit-learn from the same notebook code that launches jobs.
| Training execution option | Best for | Scaling and production trigger |
|---|---|---|
| In-notebook training in Workbench | Small datasets or subsets for rapid iteration | Limited to the instance machine; not for scheduled or data-triggered retraining |
| Managed Custom Training job | Larger datasets, distributed training, and production runs | Uses Google Cloud processing infrastructure; choose when training is scheduled or triggered by new data, even on small datasets |
Exam tip: Keep small, one-off trials in the notebook, but move to a Managed Training job when training needs distributed compute or must rerun on a schedule or on new data arrival.
Vertex AI Experiments is the system for logging and linking parameters, metrics, and dataset and model artifacts across many training runs. Vertex AI Experiments integrates with Vertex ML Metadata to build lineage that connects which dataset, hyperparameter set, and code produced which metrics and which model artifact. When architectures, input datasets, hyperparameters, and hardware vary, Experiments preserves the comparison through aggregate metrics such as accuracy, precision, and recall on test datasets.
Vertex AI TensorBoard is the managed visualization service for analyzing those tracked experiments. Vertex AI TensorBoard enables tracking experiment metrics like loss and accuracy over time, visualizing the model graph, projecting embeddings to a lower dimensional space, and comparing runs by hyperparameters. Together, Experiments provides the governed record of what was tried and what was produced, while TensorBoard provides the visual comparison of how each run behaved, which lets teams track, compare, and share results securely.
Hyperparameter tuning is the automated optimization capability of the Managed Training service that tests different hyperparameter configurations to maximize predictive accuracy. The tuning workflow depends on Vertex AI Vizier and Google Cloud processing infrastructure to run many training trials without manually adjusting hyperparameters across runs. The notebook prototype defines the search space and training code, then the tuning job executes the trials and returns the optimal values based on the target metric.
Choose hyperparameter tuning when model quality depends on combinations of learning rate, depth, regularization, or framework-specific settings that cannot be found in one run. Because tuning runs as a managed job, it scales beyond what a single Workbench instance can test, and its results flow back into Experiments and TensorBoard for comparison of loss, accuracy, and other metrics over time.
Vertex AI Pipelines is the managed orchestration service that automates every step of the ML lifecycle from data preparation to model training, evaluation, and deployment. A pipeline moves artifacts through an ordered sequence where output from one step becomes input to the next:
Vertex AI Pipelines supports production operation with three related capabilities:
This orchestration reduces manual effort, standardizes deployment across environments, and enables continuous training where new data automatically triggers retraining through integration with Cloud Build and BigQuery analysis.
Vertex AI Model Registry is the governed store for trained framework artifacts, including binaries and metadata, where teams organize, track, and version models. The Model Registry receives the model artifact from a Custom Training job or pipeline run, then preserves its version history and its linkage back to Experiments and Vertex ML Metadata. From the Model Registry, teams can evaluate models, deploy models to an endpoint, create batch predictions, and view details about specific models and model versions.
This registry boundary separates experimentation from production: notebooks and jobs on one side produce candidate artifacts, while the registry on the other side controls which version is approved, deployed, and monitored. For code artifacts such as containers and pipeline components, Artifact Registry provides versioned storage integrated with Cloud Build and Cloud Deploy, while BigQuery and Cloud Storage provide versioned storage for data artifacts. Together, Experiments tracks how a model was built and the Model Registry governs which built model is allowed to serve.
Configuring framework runtimes and hardware acceleration in cloud notebooks means selecting the compute, accelerator, network path, and scaling behavior that let prototype code move efficiently to training and production. Vertex AI (opens in a new tab) notebook runtimes run on central processing unit (CPU) virtual machine (VM) types, graphics processing unit (GPU) types, and tensor processing unit (TPU) capacity, with telemetry, quotas, and obtainability controls determining whether PyTorch, scikit-learn, and JAX workloads get the performance they need. The runtime depends on Cloud Monitoring (opens in a new tab), Cloud Logging (opens in a new tab), Virtual Private Cloud (VPC) (opens in a new tab), and managed orchestration services that provision, observe, and scale the underlying VMs and containers.
Specifying machine types and accelerators is the decision that binds a notebook runtime to the compute profile required by the model. The deployment chooses hardware that is appropriate for the model, such as different CPU VM types or GPU types, and the same selection logic applies when a prototype developed in Vertex AI Workbench or Colab Enterprise moves to custom training or prediction. Because inference and training demand different ratios of CPU, memory, GPU throughput, and TPU throughput, historical GPU or TPU utilization and throughput rates are used to forecast future demand and to justify quota increases before production scale. Choosing too little accelerator capacity creates latency and throughput limits under concurrent load, while choosing the correct type preserves the path from interactive development to batch prediction and online prediction.
Proactive resource management for notebook and serving runtimes uses telemetry to anticipate requirements for high-demand GPUs and TPUs. Telemetry flows from the runtime to Cloud Monitoring and Cloud Logging, then to analysis in BigQuery or Data Studio for forecasting GPU demand based on growth or new models. Capacity estimates are then validated through rigorous load testing that simulates traffic on serving and pipeline services with tools such as Apache JMeter or LoadView.
Ongoing behavior under stress is tracked to decide when to add resources:
For generative AI serving, testing under high concurrent load identifies the level at which accelerator availability limits performance. Continuous monitoring of model queries uses proactive alerts and the model observability dashboard, which exposes QPS, token throughput, and first token latencies collected by Cloud Monitoring.
Optimizing availability and obtainability means matching workload stability and duration to the correct purchasing and scheduling control for VMs and accelerators. Stable 24x7 inference or training with fixed or predictable capacity uses committed use discounts (CUDs), while fault-tolerant evaluation and experimentation trade preemption risk for lower cost. Dynamic Workload Scheduler (DWS), Spot VMs, Cluster Director, Ray on Vertex AI, and vLLM extend that tradeoff to high-end accelerators and distributed training without direct management of every VM and container.
| Option | Best workload fit | Duration and resources |
|---|---|---|
| Committed use discounts (CUDs) | Stable 24x7 inference or training with fixed or predictable capacity for VMs and accelerators | Long-term commitment for assured capacity and cost optimization |
| Spot VMs | Fault-tolerant evaluation and experimentation that can tolerate preemption | Ephemeral capacity at reduced cost, but VMs can be preempted |
| DWS Flex-Start mode | Complex batch training that needs high-end GPUs and can queue for capacity | Runs up to seven days with better obtainability for high-demand accelerators |
| DWS Calendar mode | Longer running workloads that need guaranteed future capacity | Reservation up to three months for specific GPUs (H100 and H200) and TPUs (Trillium) |
Advanced topology needs use additional abstraction layers. Cluster Director deploys and manages accelerator groups with colocation and scheduling for multi-GPU training on A3 Ultra H200 and A4 B200, and supports Google Kubernetes Engine (GKE) and Slurm clusters. Ray on Vertex AI abstracts distributed computing infrastructure so applications request resources for training and serving without direct management of VMs and containers. To optimize AI inference on GKE, a vLLM engine dynamically uses TPUs and GPUs to address fluctuating capacity and performance needs.
Exam tip: Set online prediction automatic scaling with a minimum of two nodes to support a high availability service level agreement (SLA).
Connecting and scaling the path from notebook prototype to endpoint controls latency and resilience across network and scaling boundaries. Traffic flows from the prediction client to the model server, and Vertex AI private endpoints (opens in a new tab) create a peer-to-peer connection when the application making prediction requests and the serving binary are within the same local network. The private connection traverses VPC instead of internet routing, which lowers latency for peer-to-peer requests by avoiding internet-routing overhead.
Scaling behavior flows from the endpoint configuration to the serving nodes. Online prediction turns on automatic scaling by setting minimum and maximum nodes, with a minimum of two nodes supporting high availability. For AI applications with fluctuating demand, GKE Inference Gateway places models behind a load balancer with model-aware routing based on model metrics, so incoming traffic distributes across multiple instances to optimize resource utilization and provide high availability and low latency.
Framework-specific modeling workflows in notebooks combine interactive code, enterprise data, and managed tracking to move from prototype to production. Vertex AI Workbench (opens in a new tab) instances and Colab Enterprise (opens in a new tab) provide managed Jupyter environments that access Google Cloud data and AI services in a reproducible way, while the Vertex AI SDK for Python (opens in a new tab) connects notebook code written in PyTorch, TensorFlow, XGBoost, and scikit-learn to training, tuning, and deployment services. Data flows from BigQuery (opens in a new tab) for structured data and from Cloud Storage (opens in a new tab) for unstructured data into the notebook training loop, and artifacts flow from the notebook to Cloud Storage, Vertex AI Model Registry, and Vertex AI Endpoints for production serving.
Vertex AI Workbench instances are the recommended environment for experimentation and development, including writing framework code, starting jobs, running queries, and checking status. A Workbench instance provides secure software and access patterns by default, and teams commonly customize its network, Identity and Access Management (IAM), and container image to enforce corporate policy. Colab Enterprise is the collaborative alternative that provides a managed notebook environment with Google Cloud security and compliance controls.
Workbench ownership follows a virtual-workspace model where each data scientist receives a dedicated instance, and additional instances are created when projects have different dependencies. Instances can be stopped when idle to control cost, and raw plus Vertex AI resources can live in the same Google Cloud project for simple access or across projects with IAM cross-project controls. This isolation prevents experimental workloads from consuming production GPUs or modifying production data, while still letting notebook code reach authorized BigQuery datasets and Cloud Storage buckets.
Enterprise data integration from notebooks separates operational sources from ML-optimized storage before training begins. Structured and semi-structured data is extracted from source systems and stored in BigQuery, including intermediate processed tables, while image, video, audio, and other unstructured data is stored in Cloud Storage buckets and directories. The notebook then reads training data through high-throughput APIs rather than querying operational systems directly, which preserves production performance and creates a stable lineage point for managed datasets.
Access from the notebook to these stores depends on IAM, network, and project boundaries. Workload-specific service accounts with least-privilege roles such as Vertex AI User control which notebook identity can read which dataset or bucket, Virtual Private Cloud (VPC) networks and VPC Service Controls isolate experimental traffic from production services, and separate development, staging, and production projects prevent an experiment from altering shared feature tables. For feature reuse, Vertex AI Feature Store centralizes ML features with BigQuery as the offline source for all historical data and an online store instance plus feature views for low-latency online serving.
Data loading throughput in notebooks is determined by storage format, file sizing, and the framework reader that moves bytes from storage to the training loop. For maximum training speed, materialized BigQuery tables are preferred over views or subqueries, and data is read through the BigQuery Storage API with artifact tracking through a managed tabular dataset. For Cloud Storage, many small media files are combined into large container formats because large sequential reads increase read and write throughput to Cloud Storage.
The container and connector choice depends on the training framework:
| Training framework | Google Cloud read path from BigQuery |
|---|---|
| TensorFlow with Keras | tf.data.dataset reader for BigQuery |
| Tensor Flow Extended (TFX) | BigQuery client for TFX |
| Dataflow with Apache Beam | Google BigQuery I/O Connector |
| Any other framework, such as PyTorch, XGBoost, or scikit-learn | BigQuery import path for models and data exchange |
Unstructured data on Cloud Storage follows a parallel framework split where TensorFlow uses sharded TFRecord files and other frameworks use Avro files. Shards are grouped by buckets and directories for management, with a target of at least 100 MB per file and between 100 and 10,000 shards per dataset. When preprocessing exceeds notebook memory or SQL expressiveness, Dataflow with Apache Beam converts unstructured data to binary formats, Managed Service for Apache Spark handles existing Spark codebases, and BigQuery transformations provide the most cost-effective preprocessing for tabular data.
Exam tip: Use materialized BigQuery tables with the Storage API for tabular training and sharded 100 MB+ TFRecord or Avro files on Cloud Storage for unstructured training; views and many small files create data-loading bottlenecks.
In-notebook training scope is bounded by dataset size, distribution needs, and operational triggers. Training a model inside a Vertex AI Workbench instance is sufficient for small datasets or subsets of a larger dataset used for architecture and hyperparameter exploration. The managed training service is required for larger datasets or distributed training, and it is also recommended for small datasets when training must run on a schedule or in response to new data arrival.
The production transition moves the prototype artifact from the notebook filesystem to managed serving in an ordered sequence:
./model/.The deployed Endpoint depends on both the Model Registry artifact and the Cloud Storage files, so versioning code in Git, datasets in BigQuery or Cloud Storage, features in Feature Store, and binaries in Model Registry preserves reproducibility across retraining.
Experiment profiling in notebooks combines data-throughput checks with compute and quality tracking across architectures, datasets, hyperparameters, and hardware. Vertex AI TensorBoard is the managed service for visualizing and comparing runs, including loss and accuracy over time, model-graph structure, and low-dimensional embedding projections. Vertex AI Experiments integrates with Vertex ML Metadata to log and link parameters, metrics, and dataset and model artifacts, so each result can be traced to its inputs.
Model comparison starts with aggregate test metrics such as accuracy, precision, and recall, then drills into performance on data subsets, model versions, and architectures. Built-in Workbench libraries include scikit-learn for statistical modeling, plus the What-If Tool for interactive bias analysis and the Language Interpretability Tool for natural language model behavior. Vertex Explainable AI adds feature attributions for custom tabular and image models to show the importance of each input feature, and Vertex AI Vizier powers hyperparameter tuning through the managed training service to test configurations automatically instead of manual trial-and-error.
Training inside a Vertex AI Workbench instance is sufficient for small datasets or subsets of a larger dataset for rapid iteration. Vertex AI Custom Training jobs are required for larger datasets or distributed training and are also recommended for small datasets when training must run on a schedule or in response to new data arrival.
Vertex AI Experiments is the system for logging and linking parameters, metrics, and dataset and model artifacts across runs with lineage through Vertex ML Metadata. Vertex AI TensorBoard is the managed visualization service for tracking loss and accuracy over time, visualizing the model graph, projecting embeddings to a lower dimensional space, and comparing runs by hyperparameters.
Save the trained model to a local notebook directory such as ./model/ and upload the files to a Cloud Storage bucket directory for staging. Create a model resource in Vertex AI Model Registry that points to the Cloud Storage artifact URI and specifies a serving container image, then create a Vertex AI Endpoint and deploy the registered model with a selected machine type, which runs as a long-running operation that can take more than five minutes.
For tabular data, use materialized BigQuery tables read through the BigQuery Storage API rather than views or subqueries. For unstructured data on Cloud Storage, combine many small files into large container formats using sharded TFRecord files for TensorFlow and Avro files for other frameworks, with a target of at least 100 MB per file and between 100 and 10,000 shards per dataset.
Last updated