Skip to content

FrameworkProcessor is broken with SageMaker Pipelines #2656

@dgallitelli

Description

@dgallitelli

Describe the bug
Trying to use any Processor derived from FrameworkProcessor is bugged with SageMaker Pipelines. There is a problem with the command and entrypoint parameter, where command does not pass python3, causing the following error:

line 2: import: command not found

To reproduce

  1. Create a FrameworkProcessor (i.e. PyTorchProcessor, TensorFlowProcessor)
  2. Create a ProcessingStep and a Pipeline
  3. Execute it
  4. See it fail

Expected behavior
The pipeline should go through.

Screenshots or logs

Screenshot from Pipelines:
image

Logs from CloudWatch:

/opt/ml/processing/input/entrypoint/inference_with_processing.py: line 2: import: command not found
/opt/ml/processing/input/entrypoint/inference_with_processing.py: line 3: import: command not found
/opt/ml/processing/input/entrypoint/inference_with_processing.py: line 4: import: command not found
/opt/ml/processing/input/entrypoint/inference_with_processing.py: line 5: import: command not found
/opt/ml/processing/input/entrypoint/inference_with_processing.py: line 6: from: command not found

System information
A description of your system. Please provide:

  • SageMaker Python SDK version: 2.57.0
  • Framework name (eg. PyTorch) or algorithm (eg. KMeans): Every Framework
  • Framework version: Every version supported by SM
  • Python version: 3.8
  • CPU or GPU: CPU and GPU
  • Custom Docker image (Y/N): N

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions