Skip to content

Update bundle download API to align with model zoo changes #8394

@yiheng-wang-nv

Description

@yiheng-wang-nv

The bundle hosting change is that any new bundles/versions will be hosted in Hugging Face.
take maisi_ct_generative for example, it's v0.4.6 is in:
https://api.ngc.nvidia.com/v2/models/nvidia/monaihosting/maisi_ct_generative/versions/0.4.6/files/maisi_ct_generative_v0.4.6.zip
it's latest v1.0.0 is in:
https://huggingface.co/MONAI/maisi_ct_generative/tree/1.0.0

Therefore, MONAI bundle download API should also be updated. For each bundle (each version), the API should be able to download not matter which host it is on. To enable it, we should define the priority of download: NGC or Hugging Face, which host should be accessed first?

Currently, most of the bundles (most of the versions) are in NGC, and only a few of them in Hugging Face, but in the future, new versions will all be in Hugging Face.

My suggestion is that we can prepare a new version for each bundle, to ensure the latest versions are all in Hugging Face. In the API side, let the program try to access to Hugging Face first.

Hi @Nic-Ma @ericspod @KumoLiu , could you help to give some suggestions?

Related model zoo PR: related model zoo changes: Project-MONAI/model-zoo#735

Metadata

Metadata

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