You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
Setting the additional_model_data_sources parameter of sagemaker.model.Model throws the error:
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the CreatePipeline operation: Unable to parse pipeline definition. Unknown Argument member 'AdditionalModelDataSources'
This is probably due to the fact that the sdk assumes that CreatePipeline has the request parameter AdditionalModelDataSources that does not exist (as per docs).
Expected behavior
The info should be saved somewhere in the registered model version, or the parameter should be removed since it doesn't seem to be supported by the CreatePipeline API.
Screenshots or logs
Traceback (most recent call last):
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/.venv/bin/invoke", line 8, in <module>
sys.exit(program.run())
^^^^^^^^^^^^^
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/.venv/lib/python3.11/site-packages/invoke/program.py", line 398, in run
self.execute()
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/.venv/lib/python3.11/site-packages/invoke/program.py", line 583, in execute
executor.execute(*self.tasks)
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/.venv/lib/python3.11/site-packages/invoke/executor.py", line 140, in execute
result = call.task(*args, **call.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/.venv/lib/python3.11/site-packages/invoke/tasks.py", line 138, in __call__
result = self.body(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/tasks.py", line 15, in pipelines
pipelines = create_pipeline_definitions(update, execute, local)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/src/amzn_dgcs_sage_maker_pipeline/create_pipelines.py", line 24, in create_pipeline_definitions
pipeline = _local_pipeline_definition(update, execute)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/src/amzn_dgcs_sage_maker_pipeline/create_pipelines.py", line 60, in _local_pipeline_definition
pipeline.upsert(
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/.venv/lib/python3.11/site-packages/sagemaker/workflow/pipeline.py", line 297, in upsert
raise ce
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/.venv/lib/python3.11/site-packages/sagemaker/workflow/pipeline.py", line 292, in upsert
response = self.create(role_arn, description, tags, parallelism_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/.venv/lib/python3.11/site-packages/sagemaker/workflow/pipeline.py", line 169, in create
return self.sagemaker_session.sagemaker_client.create_pipeline(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/.venv/lib/python3.11/site-packages/botocore/client.py", line 569, in _api_call
return self._make_api_call(operation_name, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workplace/ffgonz/DgcsML/src/DgcsSageMakerPipeline/.venv/lib/python3.11/site-packages/botocore/client.py", line 1023, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the CreatePipeline operation: Unable to parse pipeline definition. Unknown Argument member 'AdditionalModelDataSources'.
System information
A description of your system. Please provide:
SageMaker Python SDK version:2.232.2
Framework name (eg. PyTorch) or algorithm (eg. KMeans): NA
Framework version: NA
Python version: 3.11
CPU or GPU: CPU
Custom Docker image (Y/N): Y
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
Setting the
additional_model_data_sources
parameter ofsagemaker.model.Model
throws the error:This is probably due to the fact that the sdk assumes that CreatePipeline has the request parameter
AdditionalModelDataSources
that does not exist (as per docs).sagemaker-python-sdk/src/sagemaker/model.py
Line 172 in a58654e
To reproduce
Expected behavior
The info should be saved somewhere in the registered model version, or the parameter should be removed since it doesn't seem to be supported by the CreatePipeline API.
Screenshots or logs
System information
A description of your system. Please provide:
The text was updated successfully, but these errors were encountered: