Build a model improvement flywheel with Amazon SageMaker HyperPod Data Capture

In one sentence

AWS introduces Amazon SageMaker HyperPod Data Capture to record live inference data with minimal latency for continuous model fine-tuning and improvement.

Key points

  • Amazon SageMaker HyperPod introduces Data Capture to record live inference inputs and outputs to Amazon S3 across three independent tiers.
  • The three-tier architecture covers the SageMaker endpoint, load balancer, and model pod for compliance, traffic monitoring, and training data collection.
  • The model pod tier uses NGINX proxy, OpenTelemetry collector, and S3 uploader sidecars to capture payloads with minimal latency.
  • The post walks through a complete flywheel using Amazon Athena queries, SQL labeling, fine-tuning Qwen2.5-3B-Instruct, and redeploying.

In depth

An AI-written overview of the original article, not the article itself.

Foundation models in production encounter inputs absent from pre-curated datasets. This AWS Machine Learning Blog post demonstrates how to build a model improvement flywheel on a single Amazon SageMaker HyperPod cluster using its new Data Capture feature to record live traffic, surface blind spots with Amazon Athena, and fine-tune the model.

Three-tier Data Capture architecture

According to the post, HyperPod Data Capture records live inference inputs and outputs to Amazon S3 across three independent tiers with minimal latency impact and zero availability impact. Tier 1 (SageMaker endpoint) captures full payloads for compliance and audits; Tier 2 (Load balancer) logs ALB access fields for low-cost traffic monitoring; and Tier 3 (Model pod) uses NGINX, OTel collector, and S3 uploader sidecars to capture full payloads and metadata for debugging, analytics, and training-data collection.

The walkthrough uses Tier 3 only. Because full payloads may contain personally identifiable information such as names and addresses, the post recommends using sampling, AWS KMS encryption, S3 lifecycle rules, and PII redaction before turning captures into training data.

Deployment and synthetic traffic scenario

The setup runs on an Amazon EKS-orchestrated HyperPod cluster with two NVIDIA GPUs, dedicating one to serving and one to training. Using Qwen2.5-3B-Instruct as the base model, enabling dataCapture.modelPod.enabled routes requests on port 8081 through the capture proxy, writing base64-encoded jsonl records to S3.

In the simulated scenario, a home-appliance support-ticket router classifies tickets into six fixed categories, including Other. After the retailer launches a new Arctis air-conditioner line, the team replays 900 synthetic tickets (400 pre-launch, followed by 500 where Arctis tickets ramp up to 55%) to observe the impact.

Surfacing blind spots with Athena

Decoding the base64 payloads with Amazon Athena external tables and views reveals that the Other category jumped from 4.8% before the launch to 36.8% afterward, becoming the largest bucket. Querying the stream identifies 178 air-conditioner tickets (19.8% of total traffic): 164 went to Other, while 14 were misrouted to ProductFridge.

Notably, 10 of those 14 misrouted tickets reported a model confidence of 0.9 or higher. The post notes that model-generated confidence fields are not calibrated probabilities, and teams needing a true uncertainty signal should request token logprobs.

Read originalOpens aws.amazon.com

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Recent stories from this source