Professional Machine Learning Engineer
You work for a media company. You are developing a solution that requires transcription and diarizing (speaker identification) of live audio streams in near real-time. You are using an optimized WhisperX model built on the PyTorch framework that uses several libraries and weights sourced from the Hugging Face Hub. The deployment must include proprietary Python post-processing logic including speaker diarization and alignment correction that executes immediately after model inference.
You need your solution to be efficient, scalable, handle high throughput, and minimize serving latency. How should you deploy this model and its required logic?
You need your solution to be efficient, scalable, handle high throughput, and minimize serving latency. How should you deploy this model and its required logic?
- A. Deploy the WhisperX model artifacts to an Agent Platform endpoint using a pre-built PyTorch serving container configured with a GPU. Host the custom post-processing scripts in a Cloud Run function that receives the endpoint’s prediction output and performs the final diarization.
- B. Use a self-managed Google Kubernetes Engine (GKE) cluster for deployment. Package the model and logic into a container, and configure the cluster’s horizontal pod autoscaler (HPA) to manage throughput.
- C. Package the WhisperX model artifacts, the specific Python post-processing scripts, and the necessary dependencies (including Hugging Face libraries) into a single, custom serving container image. Deploy this custom image to a GPU-enabled Agent Platform endpoint.
- D. Locate the WhisperX model in the Model Garden and use the “1-click deploy” feature to deploy it to an Agent Platform endpoint. Route the output to a Dataflow pipeline that uses a custom DoFn function to handle the post-processing and logging.