aws / aws/sagemaker-python-sdk

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

Ouverte
#5,080 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
component: Inference APIs and Interfaces type: bug
Langage dominant
Python
Étoiles
2.3k
Forks
1.3k
Merge moyen
1 j 22 h
PR mergées (30 j)
35

Description

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](https://aws.amazon.com/blogs/machine-learning/integrate-amazon-sagemaker-model-cards-with-the-model-registry/).

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

Image

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
This is the same issue as the unresolved bug from 2023 which is already closed
https://github.com/aws/sagemaker-python-sdk/issues/4120

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Les points d’entrée signalés sont ModelPackage.from_model_package_arn, ModelCard(...), mc.create() et aws sagemaker list-model-cards ; comparez les champs de la fiche de modèle créée avec les champs répertoriés dans la Model Cards UI. Examinez l’issue #4120 et vérifiez le résultat dans Governance → Model cards ; c’est terminé lorsque les fiches créées à partir des détails du package de modèle y apparaissent.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
aws, machine-learning, python
Domaine
cloud, machine-learning
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.