Deep Learning

Can we run heavy Deep Learning training jobs efficiently on a shared kubernetes cluster?

NA Asked by Natalie Portman · 02-01-2025
0 upvotes 13,948 views 0 comments
The question

We have a bunch of NVIDIA GPUs and want to use kubernetes to manage our Deep Learning experiments. However, we're worried about one job hogging all the GPU memory and crashing other services. Are there specific schedulers or plugins that help with GPU slicing and fair-share scheduling?

3 answers

0
ME
Answered on 04-01-2025

Running AI workloads on kubernetes is very common now thanks to the NVIDIA Device Plugin. To prevent one job from hogging resources, you should use "GPU Time-Slicing" or "Multi-Instance GPU" (MIG) if you have A100/H100 cards. This allows you to carve a single physical GPU into multiple smaller virtual GPUs. Also, consider using Volcano, which is a batch scheduling engine specifically built for high-performance computing on kubernetes. It handles job queuing and priority much better than the default scheduler, ensuring your training jobs don't starve your web services of resources.

0
CH
Answered on 05-01-2025

Do you have a plan for data locality? Moving terabytes of training data into the kubernetes pods can be a major bottleneck if your storage isn't optimized.

NA 06-01-2025

We are using an S3-compatible local storage, but I’m worried about the I/O speed. Chris, do you think we should use a high-performance filesystem like Lustre, or can we get away with standard NVMe drives mapped directly to the kubernetes nodes? We need the data to be available to the containers as fast as possible to keep the GPUs at 100% utilization.

0
TO
Answered on 07-01-2025

Use Kubeflow. It’s a dedicated platform for machine learning on kubernetes that handles everything from notebooks to distributed training and model serving.

NA 08-01-2025

Kubeflow is definitely the way to go for serious teams. Megan’s advice on the NVIDIA plugin is also a prerequisite for any kubernetes AI project.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session