Generalize distributed PyTorch training example#588
Open
jayeshmahajan wants to merge 1 commit intokubernetes:masterfrom
Open
Generalize distributed PyTorch training example#588jayeshmahajan wants to merge 1 commit intokubernetes:masterfrom
jayeshmahajan wants to merge 1 commit intokubernetes:masterfrom
Conversation
…premises support This PR generalizes the PyTorch distributed training example to support multiple cloud providers (GKE, EKS, AKS) and on-premises Kubernetes deployments. The changes make cloud-specific configurations explicit through comments while maintaining backward compatibility and adding clear guidance for different deployment environments. Key changes: - Added on-premises Kubernetes nodeSelector examples and reorganized cloud provider configurations - Added comprehensive comments explaining storage access modes and StorageClass options - Updated documentation to cover all major cloud providers and on-premises deployments equally Benefits: - Multi-cloud support with clear guidance for GKE, EKS, AKS, and on-premises - Better documentation with comprehensive comments - Easier adoption with environment-specific configuration examples - Backward compatible - all existing configurations remain functional
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jayeshmahajan The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new example demonstrating distributed training with PyTorch's Distributed Data Parallel (DDP) on Kubernetes. The example showcases multi-node, multi-GPU training using Kubernetes Jobs with comprehensive support for major cloud providers (GKE, EKS, AKS) and on-premises deployments.
What This Example Demonstrates
completionMode: IndexedKey Features
1. Distributed Training Setup
2. Kubernetes Resources
3. Multi-Cloud and On-Premises Support
4. Training Script
Files Included
training-job.yaml- Main Kubernetes Job configurationtrain.py- PyTorch DDP training scripttraining-script-configmap.yaml- Training script as ConfigMapservice.yaml- Headless Service for pod communicationdata-pvc.yaml/output-pvc.yaml- Persistent storagetrain-config.yaml- Training hyperparametersworkload.yaml- Workload-aware scheduling configurationkustomization.yaml- Kustomize base configurationREADME.md- Comprehensive documentation