Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions examples/v2beta1/deepspeed/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# DeeepSpeed Example

This demo introduces the basic usage of deepspeed with mpi-operator.

## References

* https://github.com/microsoft/DeepSpeedExamples/blob/master/training/HelloDeepSpeed/README.md
* https://www.alibabacloud.com/help/en/ack/cloud-native-ai-suite/user-guide/deepspeed-distributed-training
32 changes: 32 additions & 0 deletions examples/v2beta1/deepspeed/deepspeed-helloworld.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: kubeflow.org/v2beta1
kind: MPIJob
metadata:
name: deepspeed-helloworld
spec:
slotsPerWorker: 1
runPolicy:
cleanPodPolicy: Running
mpiReplicaSpecs:
Launcher:
replicas: 1
template:
spec:
containers:
- image: registry.cn-beijing.aliyuncs.com/acs/deepspeed:hello-deepspeed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be useful to check in the Dockerfile as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'er right. This demo is intend to be used to test the up coming feature, I'll manage it later.

name: deepspeed-helloworld
command:
- deepspeed
args:
- /workspace/DeepSpeedExamples/HelloDeepSpeed/train_bert_ds.py
- --checkpoint_dir
- /workspace
Worker:
replicas: 2
template:
spec:
containers:
- image: registry.cn-beijing.aliyuncs.com/acs/deepspeed:hello-deepspeed
name: deepspeed-helloworld
resources:
limits:
nvidia.com/gpu: 8