SageMaker framework processor compatibility with sagemaker pipelines
0
Hi all,
I am asking if it's possible to use framework processor
inside a sagemaker pipeline
.
I am asking because the to submit the source_dir for the framework processor, we have to do so when calling the .run() method, when wrapping the processor inside a sagemaker.workflow.steps.ProcessingStep
, there isn't an available argument to specify the source_dir
.
Thank you! Best, Ruoy
asked 9 days ago7 views
1 Answers
0
You can do this with the latest version of the sagemaker sdk 2.89.0
from sagemaker.workflow.pipeline_context import PipelineSession
session = PipelineSession()
inputs = [
ProcessingInput(
source="s3://my-bucket/sourcefile",
destination="/opt/ml/processing/inputs/",),
]
processor = FrameworkProcessor(...)
step_args = processor.run(inputs=inputs, source_dir="...")
step_sklearn = ProcessingStep(
name="MyProcessingStep",
step_args=step_args,
)
answered 8 days ago
Relevant questions
Is it possible to test locally SageMaker Inference Pipelines?
Accepted AnswerWithout ECR being enabled in AWS account at Organization Level, what's the impact to SageMaker Studio?
Accepted Answerasked a month agoHow to configure a serverless sagemaker endpoint?
asked 3 months agoSageMaker framework processor compatibility with sagemaker pipelines
asked 9 days agoCan Sagemaker-trained models be deployed to non-Sagemaker endpoints?
asked a year agoSpecify a subnet for SageMaker endpoints
asked 7 months agoUsing R model in SageMaker ML pipelines
Accepted Answerasked 4 months agoAuto rollback with Guardrails if model accuracy is not good
asked 4 months ago[Feature Request] Serverless Inference with VPC Config
asked 4 months agoUnable to create endpoint
Accepted Answerasked 3 years ago