Skip to content

Unable to Register Model v2.x #5439

@shivank-sketch

Description

@shivank-sketch

PySDK Version

  • PySDK V2 (2.x)
  • PySDK V3 (3.x)

Describe the bug
I've been trying to register the model through UI and SDK both but all in vain. The UI button doesn't respond in the new Model section and when I try to register it old Registry it throws an error "Failed to invoke sagemaker:CreateModelPackage. Error Details: The requested resource was not found. Please check the capitalization ofthe requested resource.". Did the v3.3 broke the backward compatibility layer or was it not informed.

To reproduce
create any basic pipeline from sdk v2.x docs which contains a registerModel step.

Expected behavior
On using registerModel or Model.register and ModelStep we should have our model registered in the specified ModelPackageGroupName through SDK, for UI register button should be working on click in the New Model Section and should not throw an error when trying to register through registery.

Screenshots or logs

Image Image Image Image

System information
A description of your system. Please provide:

  • SageMaker Python SDK version: 2.255
  • Framework name (eg. PyTorch) or algorithm (eg. KMeans): sklearn
  • Framework version: 1.2-1
  • Python version: 3.12
  • CPU or GPU: CPU
  • Custom Docker image (Y/N): N

Additional context
Not able to try it on V3.x cause somehow the modelbuilder is refrencing the unused InferenceSpec which can not be found in the package which I installed using sagemaker[all]

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