If the Model version status is UPLOAD_FAILED, the import was
unsuccessful. The error_message field of the Model version provides the
reason for the failure, such as missing uploaded files.
-
List the import jobs of the Model version.
curl --header "Cookie: hadoop-jwt=$HADOOP_JWT" https://<registry-host>/api/v3/models/<model ID>/versions/1/import-jobs
-
Read the log of the import job.
curl --header "Cookie: hadoop-jwt=$HADOOP_JWT" https://<registry-host>/api/v3/models/<model ID>/versions/1/import-jobs/<job name>/logs
The most common causes are missing files in the upload or a
repository ID that does not match the name of the main weights
directory.
-
Correct the uploaded files, and then register a new version of the same
model.
curl -X POST https://<registry-host>/api/v3/models/<model ID>/versions \
--header "Cookie: hadoop-jwt=$HADOOP_JWT" \
-H "Content-Type: application/json" \
-d '{"metadata": {"model_repo_type": "MISTRAL"},
"download_model_repo_request": {
"source": "REMOTE",
"repo_id": "<repository ID>",
"remote_object_storage_path": "<remote_object_storage_path>"}}'