async-inference

Invoke SageMaker async endpoints with S3 input/output and polling retry logic.

392|152|Updated Jul 9, 2025
One-click install
npx skills add https://github.com/aws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrock --skill async-inference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: async-inference
Source: https://github.com/aws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrock/tree/main/assets/claude-code-plugins/plugins/sagemaker/skills/async-inference
Command: npx skills add https://github.com/aws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrock --skill async-inference

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines long-running SageMaker inferences by enabling asynchronous processing using S3-based input/output and polling.

Core Features & Use Cases

  • SageMaker async endpoint integration for non-real-time workloads.
  • S3-based input/output with polling to retrieve results.
  • Use cases include large payloads, batch processing, and cost-efficient scaling across regions.

Quick Start

Use the provided TypeScript client to upload input to S3, invoke the async endpoint, and poll for results until completion.

Frequently Asked Questions about async-inference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run SageMaker async inferences for large payloads without timing out?

To run SageMaker async inferences, you upload large payloads to S3 as input, invoke the async endpoint, and poll S3 for results. This decoupled S3 I/O approach prevents timeouts on long-running workloads.

What is the best way to process long-running batch inferences in SageMaker?

Using SageMaker async endpoints with S3 I/O is an effective way to process long-running batch inferences. It applies to batch processing and enables cost-efficient scaling across regions without blocking the client.

Can I use S3 to manage input and output for SageMaker asynchronous endpoints?

Yes, you can use S3 to manage input and output for SageMaker asynchronous endpoints. The skill implements an end-to-end flow using S3 for data I/O, async endpoint invocation, and polling with retry logic to retrieve results.

How do I retrieve results from an asynchronous SageMaker endpoint invocation?

You retrieve results from an asynchronous SageMaker endpoint invocation by polling the S3 output bucket. The skill implements polling with retry logic to automatically fetch results once the long-running inference completes.

Does this skill support cost-efficient scaling across regions for SageMaker inferences?

Yes, this skill supports cost-efficient scaling across regions for SageMaker inferences. Asynchronous processing with S3 I/O enables non-real-time workloads to scale efficiently without maintaining idle real-time endpoints.