Skip to content

Conversation

@ZhengfeiJi
Copy link

Issue #5204

Description of changes:

Added support for the TransformAmiVersion parameter in the Transformer class, allowing users to specify a preconfigured Amazon Machine Image (AMI) when launching transform jobs.

Usage:

  transformer = Transformer(..., transform_ami_version="al2-ami-sagemaker-batch-gpu-535")
  transformer.transform(data=...)

Code Path:

transform() 
    → _get_transform_args()
      → _load_config()
        → _prepare_resource_config(self.transform_ami_version)  ← Uses instance attribute
    → _get_transform_request(resource_config=...)
      → TransformResources(**resource_config)  ← Contains transform_ami_version

Tests:
Unit tests for the new param are added

Ref:
https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_TransformResources.html

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant