Comments (9)
Sure, that sound great @tenzen-y! It would be great to see the benchmarks for
mpirun
andtorchrun
to run DeepSpeed on Kubernetes.
It sounds great, but I guess that there are no significant performance differences between both approaches since the deepspeed uses the NCCL backend even if we use mpirun.
from training-operator.
@andreyvelich:
This request has been marked as suitable for new contributors.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue
command.
In response to this:
Related: #2040
As we discussed multiple times, Kubeflow community are looking for examples on how to use MPI Operator and DeepSpeed.
We should add some example to the MPI Operator: https://github.com/kubeflow/mpi-operator/tree/master/examples/v2beta1 or Training Operator: https://github.com/kubeflow/training-operator/tree/master/examples.
Some pending PRs can be found here as reference:
/good-first-issue
/help
/area example/cc @alculquicondor @kubeflow/wg-training-leads @kuizhiqing
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
from training-operator.
I believe that both (training-operator and mpi-operator) examples would be worth it. But, I think that we should add each example for PyTorchJob with deepspeed and torchrun, and MPIJob v2 with deepspeed and mpirun.
from training-operator.
Sure, that sound great @tenzen-y!
It would be great to see the benchmarks for mpirun
and torchrun
to run DeepSpeed on Kubernetes.
from training-operator.
I'm working on an equivalent example for the Flux Operator - but quick question. Will it work OK to test without GPU? I've been trying to get just 3 nodes, each with one nvidia GPU on Google Cloud, and I never get the allocation.
from training-operator.
Ah - this looks more promising. https://github.com/kubeflow/mpi-operator/pull/567/files
from training-operator.
@tenzen-y Does DeepSpeed only support nccl backend ? E.g. we can't run it with CPUs ?
from training-operator.
@tenzen-y Does DeepSpeed only support nccl backend ? E.g. we can't run it with CPUs ?
TBH, I don't have any experience only with CPU. But at the first glance, the deepspeed seems to support PyTorch without GPU: https://github.com/microsoft/DeepSpeed/blob/master/.github/workflows/cpu-torch-latest.yml
from training-operator.
that there are no significant performance differences between both approaches since the deepspeed uses the NCCL backend even if we use mpirun.
This statement is generally correct in almost all cases with NCCL context. Though, I've two few experiences to share for those using mpi-style set-up and suffering performance issue.
- Avoid using mpi library(mpi4py e.g.) to do any collective communication, for some metrics collection etc., even if they only using TCP network.
- DO NOT produce too much logs in mpirun scenario, the mpirun would collect logs from all the workers which may hurt the performance
Overall, mpirun
and torchrun
should have no performance difference.
from training-operator.
Related Issues (20)
- Why manifests/base/service.yaml does not include webhook server port (443) in version 1.7.0~1.5.0? HOT 7
- Not getting Kubeflow Training SDK v1.7 when installing `kubeflow-training` HOT 13
- Flaky Test: [It] should create desired Pods and Services: Distributed TFJob (4 workers, 2 PS) is succeeded
- MPIJob requires service names for the pods. HOT 3
- chore(style): provide type for `STORAGE_INITIALIZER_VOLUME` constant
- fix(compatability): match-case syntax only compatible with Python3.10 HOT 5
- Export Fine-Tuned LLM after Trainer is Complete HOT 3
- Vulnerability - CVE-2023-44487 HOT 3
- Support ARM64 platform in PyTorch examples HOT 4
- Support ARM64 platform in TensorFlow examples HOT 4
- Support ARM64 platform in XGBoost examples HOT 2
- Update third party worflows in the gh actions HOT 4
- mpijob will stuck if LastReconcileTime is updated in 1 second
- Worker failed without exit code
- PyTorchJobClient not found HOT 3
- The actual default RestartPolicy of PyTorch is inconsistent with its description in the CRD HOT 1
- spatial dataset training functions HOT 1
- TfJob creation failed due to webhook validation failure HOT 1
- [GSOC] Tracking Issue: Integrate JAX in Kubeflow Training Operator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from training-operator.