Skip to content

SageMaker Model Cards UI doesn't show Model Cards created using model package details #4120

Closed
@l-m-j

Description

@l-m-j

Describe the bug
When creating a model card using model package details, the model card is created and visible from the CLI but is not visible in the Model Cards section of the UI.

To reproduce
Create a model package details object like below. The code was obtained from the following AWS article.

mp = ModelPackage.from_model_package_arn(
    model_package_arn="arn:aws:sagemaker:us-east-2:000000000000:model-package/test-model-cards/7"
)

mc = ModelCard(
    name="test-model-card-from-model-package", 
    model_package_details=mp
)

mc.create()

The output from the create function returns the ARN of the newly created model card i.e. arn:aws:sagemaker:us-east-2:000000000000:model-card/test-model-card-from-model-package' but does not show in the UI.

Expected behavior
The model card should be visible under Governance -> Model cards section of the SageMaker management console UI.

Screenshots or logs
Model card not visible after creation in the UI.
sagemaker_model_cards_ui

Model card can be found using CLI command aws sagemaker list-model-cards
list_model_cards_output

System information
A description of your system. Please provide:

  • SageMaker Python SDK version: 2.184.0
  • Framework name (eg. PyTorch) or algorithm (eg. KMeans): SKLearn
  • Framework version: 0.23-1
  • Python version: 3.10
  • CPU or GPU: CPU
  • Custom Docker image (Y/N): N

It should also be noted that we are experiencing this issue with custom algorithms deployed as ECR images.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions