Uploading Model Repositories in an air-gapped environment
Upload the downloaded Hugging Face and NVIDIA NGC (NIM) Model files to the remote object storage location of Cloudera AI Registry. Cloudera AI Registry imports the Model from this location.
The script uploads a Model to a folder in the remote object storage location. The name of the folder depends on the source of the Model:
| Source | -rt | -ri | Folder in the remote object storage location |
|---|---|---|---|
| Hugging Face | hf |
The Hugging Face Model ID | hf/<repository ID> |
| NVIDIA NGC (NIM) | ngc |
The optimization profile ID | ngc/<repository ID after the last
/> |
| Mistral | mistral |
The repository ID | mistral/<repository ID> |
Changing the remote object storage location
The remote object storage location is configured when Cloudera AI Registry is installed. An administrator can change it with an API request:
curl -X PUT https://<registry-host>/api/v3/config \
--header "Cookie: hadoop-jwt=$HADOOP_JWT" \
-H "Content-Type: application/json" \
-d '{"remote_object_storage_path": "s3://<bucket>/<path>"}'
The response contains the new path. Cloudera AI Registry must have
read access to the new location. After you change the location, use the new path for
--dst and in the registration requests.
