Files
trainer/sdk/python/docs/KubeflowOrgV1ElasticPolicy.md
T
Chitsing KUIandGitHub a81242a4cb Set correct ENV for PytorchJob to support torchrun (#1840)
* fix pytorch WORLD_SIZE env inconsistent

* add correct env node_rank, nnodes for torch

* restore elastic nnproc

* use string for nproc_per_node

* add defaults in api

* add validation for two nproc_per_node, use auto for defaulter

* add ut for defaults and validation

* fix ut

* add doc for nproc_per_node
2023-07-12 17:11:07 +00:00

2.1 KiB

KubeflowOrgV1ElasticPolicy

Properties

Name Type Description Notes
max_replicas int upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas, defaults to null. [optional]
max_restarts int [optional]
metrics list[K8sIoApiAutoscalingV2MetricSpec] Metrics contains the specifications which are used to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated with multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the HPA will not be created. [optional]
min_replicas int minReplicas is the lower limit for the number of replicas to which the training job can scale down. It defaults to null. [optional]
n_proc_per_node int Number of workers per node; supported values: [auto, cpu, gpu, int]. Deprecated: This API is deprecated in v1.7+ Use .spec.nprocPerNode instead. [optional]
rdzv_backend str [optional]
rdzv_conf list[KubeflowOrgV1RDZVConf] RDZVConf contains additional rendezvous configuration (<key1>=<value1>,<key2>=<value2>,...). [optional]
rdzv_host str [optional]
rdzv_id str [optional]
rdzv_port int [optional]
standalone bool Start a local standalone rendezvous backend that is represented by a C10d TCP store on port 29400. Useful when launching single-node, multi-worker job. If specified --rdzv_backend, --rdzv_endpoint, --rdzv_id are auto-assigned; any explicitly set values are ignored. [optional]

[Back to Model list] [Back to API list] [Back to README]