TransformStep fails in local mode when using ModelPackage #4002
-
I am trying to execute pipeline with TransformStep in local mode model = ModelPackage(
role=role,
model_data=model_data,
model_package_arn=model_package_arn,
)
model.sagemaker_session = sagemaker_session
transformer = model.transformer(
instance_count=1,
instance_type=instance_type,
strategy="MultiRecord",
assemble_with="Line",
accept="text/csv",
output_path=output_path,
env=env,
)
return TransformStep(
name="ScoringData",
description="Take LSO feature data and output a csv with outlier classifications using the latest model",
transformer=transformer,
inputs=TransformInput(
data=data_input,
content_type="text/csv",
join_source="None",
split_type="Line",
),
depends_on=depends_on,
retry_policies=RETRY_POLICIES,
) and it fails
Looks like describe_model_package is not supported by LocalSagemakerClient. SDK version 2.173. |
Beta Was this translation helpful? Give feedback.
Answered by
alex-vinnik-sp
Jul 21, 2023
Replies: 1 comment
-
Looks like the following code gives you an agnostic pipeline suitable for both local and cloud
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alex-vinnik-sp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like the following code gives you an agnostic pipeline suitable for both local and cloud