I have modified and provided the following as suggested with out any modifications to the above config :
hf_model = HuggingFaceModel(
model_data=s3_model_uri,
role=role,
env=config,
transformers_version="4.28.1",
pytorch_version="2.0.0",
py_version="py310",
)
I get the following error in the logs:
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/opt/ml/model'. Use `repo_type` argument if needed.
I understand that I should change HF_MODEL_ID
but if give the repo_name from the huggingface hub, will it consider the artifacts in the tar.gz file ?