Importing Model to Cloudera AI Registry in air-gapped environment
You can import the Hugging Face models listed on the Model Hub page into your Cloudera AI Registry.
Download the following script to enable downloading Model repositories from the Hugging Face or NVIDIA NGC catalog and uploading Models to on premises storage providers.
Download the script from here: https://github.infra.cloudera.com/Sense/model-registry/blob/main/scripts/import_to_airgap.py
The script has the following parameters:
Parameter | Value | Description |
---|---|---|
-do |
Activates download mod | |
-rt |
hf |
Repository type: "hf" for Hugging Face (use "ngc" for NVIDIA NGC catalog) |
-t |
hf_hVQbUsafafafafadfadfsNAynASXJoTCWHAEkj |
Hugging Face API token for authentication (required for private or gated Models) The Hugging Face token ( Models or Models that require authentication. For more information about tokens, see:https://huggingface.co/docs/hub/en/security-tokens |
-p |
$PWD/models |
Local destination path where Model files are downloaded (uses current working directory) |
-ri |
Nvidia/Llama-3.1-Nemotron-70B-Instruct-HF |
Repository ID for the Model on Hugging Face |
You can click Cloudera AI Registry in the left navigation menu to view the newly imported Model.