-
Notifications
You must be signed in to change notification settings - Fork 731
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement MPI Plugin for Kubeflow Trainer
Signed-off-by: Andrey Velichkevich <[email protected]>
- Loading branch information
1 parent
e47d8f7
commit 58beb0c
Showing
24 changed files
with
514 additions
and
93 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
|
@@ -7,8 +7,10 @@ rules: | |
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
- secrets | ||
verbs: | ||
- create | ||
- get | ||
- list | ||
- update | ||
|
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
45 changes: 45 additions & 0 deletions
45
manifests/v2/base/runtimes/pre-training/mpi-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,45 @@ | ||
# TODO (andreyvelich): Change this to DeepSpeed or MLX runtime. | ||
apiVersion: kubeflow.org/v2alpha1 | ||
kind: ClusterTrainingRuntime | ||
metadata: | ||
name: mpi-distributed | ||
labels: | ||
training.kubeflow.org/phase: pre-training | ||
spec: | ||
mlPolicy: | ||
numNodes: 1 | ||
mpi: | ||
numProcPerNode: 1 | ||
mpiImplementation: OpenMPI | ||
sshAuthMountPath: /root/.ssh | ||
template: | ||
spec: | ||
# TODO (andreyvelich): Use dependsOn when it is released. | ||
startupPolicy: | ||
startupPolicyOrder: InOrder | ||
replicatedJobs: | ||
- name: launcher | ||
template: | ||
spec: | ||
template: | ||
spec: | ||
# TODO (andreyvelich): Change the command with mpirun. | ||
containers: | ||
- name: launcher | ||
image: busybox | ||
command: | ||
- /bin/sh | ||
- -c | ||
- "echo 'launcher runs for 10 seconds' && sleep 100" | ||
- name: trainer-node | ||
template: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: trainer | ||
image: busybox | ||
command: | ||
- /bin/sh | ||
- -c | ||
- "echo 'launcher runs for 10 seconds' && sleep 100" |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.