Skip to content

Make mlops module independent of train and serving modules #5813

Description

@mjost5v

Previously, MLOps orchestration was possible within a Lamber. Now with new dependencies, they are too big to fit in the lambda. The native dependencies and PyTorch explode the size of the total deployment signficantly

Activity

  1. guibberta commented on May 12, 2026

    @guibberta

    I agree, the mlops namespace package should be independent of serve and train. Additionally when using the step decorator to define a pipeline step, it will install mlops namespace at runtime which results in huge overhead.

  2. gbeasleytombola commented on May 12, 2026

    @gbeasleytombola

    Also agree. This is stopping us updating to V3. This has previously been raised here #5531 and as a discussion here #5441

  3. mjost5v commented on May 12, 2026

    @mjost5v
    Author
  4. DieterDP-ng commented on May 19, 2026

    @DieterDP-ng

    We're hitting a related issue in a standard local development / CI context (not Lambda).

    Our project uses sagemaker-mlops purely for pipeline orchestration (building a DAG with ModelStep, TuningStep, ConditionStep, etc.) and calls ModelBuilder.build() / ModelBuilder.register() only within a PipelineSession to compile the pipeline definition. No torch usage.
    Yet pip install sagemaker pulls down ~1 GB of CUDA wheels on every CPU-only machine and CI runner because sagemaker-mlops declares sagemaker-serve as a hard dependency, and sagemaker-serve (0.1.0 through 1.11.0) unconditionally requires
    torch>=2.0.0. Making sagemaker-serve an optional extra of sagemaker-mlops, or splitting torch into an optional extra of sagemaker-serve, would reduce this bloat.

  5. gabrielclimb commented on Jun 15, 2026

    @gabrielclimb

    Please, someone removes it, this is so annoying

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions