deepspeedai / deepspeedai/DeepSpeed

[REQUEST] How to Monitor and Optimize GPU and CPU Resource Usage?

Open
#4,667 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
43.1k
Forks
5k
Avg merge
4d 15h
Merged PRs (30d)
112

Description

Hello everyone,

I have been training and fine-tuning large language models using DeepSpeed recently. During this process, I am looking to better understand and monitor the inter-GPU communication, the transfer of parameters and operators, as well as the usage of GPU memory and CPU memory.

Specifically, I am facing the following challenges:

How can I monitor the communication and data transfer in a multi-GPU environment?
What are the best practices to accurately measure and optimize the memory usage of the GPU in my model?
Are there tools or techniques that can help me better monitor the usage of CPU memory during training?
I have tried using nvidia-smi to observe GPU usage, but I find the information provided somewhat limited. I am looking for more detailed analysis, especially in a distributed training context.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or entry points. Start by reviewing DeepSpeed's distributed-training and memory-monitoring guidance, including the limitations of nvidia-smi. Done would require a clearly scoped, project-specific answer covering inter-GPU communication, GPU and CPU memory measurement, and optimization practices.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems, machine-learning, observability, performance
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.