Hola quiero hacer el deploy :
import os
deployer=ModelDeployer()
deployer.deploy(
model_id=model_id,
display_name="API del modelo de clasificacion de EAC",
instance_shape="VM.Standard.E4.Flex",
instance_count=1,
project_id=os.environ['PROJECT_OCID'],
compartment_id=os.environ['TENANCY_OCID'])
pero me da error:
ERROR:ads:ADS Exception
Traceback (most recent call last):
File "/home/datascience/conda/generalml_p37_cpu_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-60-b9922d686c6f>", line 9, in <module>
compartment_id=os.environ['TENANCY_OCID'])
File "/home/datascience/conda/generalml_p37_cpu_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_cpu_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_cpu_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_cpu_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_cpu_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_cpu_v1/lib/python3.7/site-packages/circuitbreaker.py", line 52, in wrapper
return self.call(function, *args, **kwargs)
File "/home/datascience/conda/generalml_p37_cpu_v1/lib/python3.7/site-packages/circuitbreaker.py", line 67, in call
result = func(*args, **kwargs)
File "/home/datascience/conda/generalml_p37_cpu_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_cpu_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': 'E7541D1559C84076910E18527168113F/0B99A25DB0162EBB81C9D2C03CB525CC/D3388004EDDD50A83CD8A45DEDC23596', 'code': 'MissingParameter', 'message': 'modelDeploymentInstanceShapeConfigDetails is required', 'status': 400}
ServiceError: {'opc-request-id': 'E7541D1559C84076910E18527168113F/0B99A25DB0162EBB81C9D2C03CB525CC/D3388004EDDD50A83CD8A45DEDC23596', 'code': 'MissingParameter', 'message': 'modelDeploymentInstanceShapeConfigDetails is required', 'status': 400}