Deploy a new model with updated resources
You can republish a previously-deployed model in a new serving environment with an updated number of replicas or memory/CPU/GPU allocation by providing the model build ID of the model you want to rebuild.
To deploy a new model, use the following
command:
cdswctl models deploy --modelBuildId=<build_ID> --cpuMillicores=<num_of_cpu_cores> --memoryMb=<memory_in_mb> --numReplicas=<num_of_replicas> --replicationType=<replication_type>
For
example:
cdswctl models deploy --modelBuildId=<build_ID> --cpuMillicores=1200 --memoryMb=2200 --numReplicas=2 --replicationType=fixed