-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KEP-2170: Add Torch Distributed Runtime (#2328)
* KEP-2170: Add Torch Distributed Runtime Signed-off-by: Andrey Velichkevich <[email protected]> * Add pip list Signed-off-by: Andrey Velichkevich <[email protected]> --------- Signed-off-by: Andrey Velichkevich <[email protected]>
- Loading branch information
1 parent
59b233c
commit 4cc1709
Showing
10 changed files
with
74 additions
and
10 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
resources: | ||
- manager.yaml | ||
# TODO (andreyvelich): Move it to overlays once we copy the JobSet manifests. | ||
namespace: kubeflow-system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- torch-distributed.yaml |
33 changes: 33 additions & 0 deletions
33
manifests/v2/base/runtimes/pre-training/torch-distributed.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: kubeflow.org/v2alpha1 | ||
kind: ClusterTrainingRuntime | ||
metadata: | ||
name: torch-distributed | ||
labels: | ||
training.kubeflow.org/phase: pre-training | ||
spec: | ||
mlPolicy: | ||
numNodes: 1 | ||
torch: | ||
numProcPerNode: auto | ||
template: | ||
spec: | ||
replicatedJobs: | ||
- name: trainer-node | ||
template: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: trainer | ||
image: pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime | ||
command: | ||
- /bin/bash | ||
- -c | ||
- | | ||
echo "Torch Distributed Runtime" | ||
echo "--------------------------------------" | ||
echo "Torch Default Runtime Env" | ||
env | grep PET_ | ||
pip list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- namespace.yaml | ||
- ../../base/crds | ||
- ../../base/manager | ||
- ../../base/rbac | ||
- ../../base/webhook | ||
# TODO (andreyvelich): JobSet should support kubeflow-system namespace. | ||
- https://github.com/kubernetes-sigs/jobset/releases/download/v0.6.0/manifests.yaml | ||
images: | ||
- name: kubeflow/training-operator-v2 | ||
newTag: latest | ||
secretGenerator: | ||
- name: training-operator-v2-webhook-cert | ||
namespace: kubeflow-system | ||
options: | ||
disableNameSuffixHash: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: kubeflow-system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base/runtimes/pre-training |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters