Al hacer el deploy, con la sugerencia dada anteriormente:
deployer.deploy(model_id = model_id, display_name = "API del modelo de clasificación de EAC", instance_shape = 'VM.Standard3.Flex', instance_count = 1,
model_deployment_instance_shape_config_details = {"instance_shape_name": "VM.Standard3.Flex"},
project_id = os.environ["PROJECT_OCID"], compartment_id = os.environ["TENANCY_OCID"])
Continúa dando el mismo error:
ERROR:ads:ADS Exception
Traceback (most recent call last):
File "/home/datascience/conda/generalml_p37_gpu_v1/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3457, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-101-43c85a51c826>", line 3, in <module>
project_id=os.environ["PROJECT_OCID"], compartment_id=os.environ["TENANCY_OCID"])
File "/home/datascience/conda/generalml_p37_gpu_v1/lib/python3.7/site-packages/ads/model/deployment/model_deployer.py", line 126, in deploy
wait_for_completion, max_wait_time, poll_interval
File "/home/datascience/conda/generalml_p37_gpu_v1/lib/python3.7/site-packages/ads/model/deployment/model_deployment.py", line 161, in deploy
self.properties.build()
File "/home/datascience/conda/generalml_p37_gpu_v1/lib/python3.7/site-packages/oci/data_science/data_science_client_composite_operations.py", line 278, in create_model_deployment_and_wait_for_state
operation_result = self.client.create_model_deployment(create_model_deployment_details, **operation_kwargs)
File "/home/datascience/conda/generalml_p37_gpu_v1/lib/python3.7/site-packages/oci/data_science/data_science_client.py", line 1791, in create_model_deployment
response_type="ModelDeployment")
File "/home/datascience/conda/generalml_p37_gpu_v1/lib/python3.7/site-packages/oci/base_client.py", line 472, in call_api
response = self.request(request, allow_control_chars)
File "/home/datascience/conda/generalml_p37_gpu_v1/lib/python3.7/site-packages/circuitbreaker.py", line 52, in wrapper
return self.call(function, *args, **kwargs)
File "/home/datascience/conda/generalml_p37_gpu_v1/lib/python3.7/site-packages/circuitbreaker.py", line 67, in call
result = func(*args, **kwargs)
File "/home/datascience/conda/generalml_p37_gpu_v1/lib/python3.7/site-packages/oci/base_client.py", line 601, in request
self.raise_service_error(request, response, service_code, message)
File "/home/datascience/conda/generalml_p37_gpu_v1/lib/python3.7/site-packages/oci/base_client.py", line 763, in raise_service_error
original_request=request)
oci.exceptions.ServiceError: {'opc-request-id': '350822718C474DA6BD248CE6C36F1CE1/1F53DA5590A8699B41F631E0341DF924/03D5E907AC76CB13998B121FA7BB08E4', 'code': 'MissingParameter', 'message': 'modelDeploymentInstanceShapeConfigDetails is required', 'status': 400}
ServiceError: {'opc-request-id': '350822718C474DA6BD248CE6C36F1CE1/1F53DA5590A8699B41F631E0341DF924/03D5E907AC76CB13998B121FA7BB08E4', 'code': 'MissingParameter', 'message': 'modelDeploymentInstanceShapeConfigDetails is required', 'status': 400}