client.add_model_surrogate

Adds a surrogate model to an existing a model without uploading an artifact.

πŸ“˜

Note

Before calling this function, you must have already added a model using add_model.

🚧

Surrogate models are not supported for input_type = fdl.ModelInputType.TEXT

Input ParameterTypeDefaultDescription
project_idstrNoneA unique identifier for the project.
model_idstrNoneA unique identifier for the model.
deployment_paramsOptional[fdl.DeploymentParams]NoneDeployment parameters object for tuning the model deployment spec.
PROJECT_ID = 'example_project'
MODEL_ID = 'example_model'

client.add_model_surrogate(
    project_id=PROJECT_ID,
    model_id=MODEL_ID
)

# with deployment_params
client.add_model_surrogate(
    project_id=PROJECT_ID,
    model_id=MODEL_ID,
    deployment_params=fdl.DeploymentParams(cpu=250, memory=500)
)
Return TypeDescription
NoneReturns None