client.add_model_artifact

Adds a model artifact to an existing model

πŸ“˜

Note

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

Input ParameterTypeDefaultDescription
project_idstrNoneThe unique identifier for the project.
model_idstrNoneA unique identifier for the model.
model_dirstrNoneA path to the directory containing all of the model files needed to run the model.
deployment_paramsOptional[fdl.DeploymentParams]NoneDeployment parameters object for tuning the model deployment spec. Supported from server version 23.1 and above with Model Deployment feature enabled.
PROJECT_ID = 'example_project'
MODEL_ID = 'example_model'

client.add_model_artifact(  
    project_id=PROJECT_ID,
    model_id=MODEL_ID,
    model_dir='model_dir/',
)