Replies: 1 comment
|
Megatron-LM doesn't currently provide a built-in parameter that directly logs the communication volume (bytes transferred) for each parallel group (TP/PP/DP). However, you can obtain this information in a few ways:
For your configuration (
If your goal is to measure the actual communication volume per TP/PP/DP group, instrumenting the communication wrappers or enabling NCCL profiling will provide the most accurate information. The PyTorch profiler is also useful if you want to correlate communication with execution time and identify potential bottlenecks. If this answer helped or pointed you in the right direction, I'd appreciate it if you could mark it as the accepted answer so it's easier for others with the same issue to find. Also, if you found my contribution useful, I'd appreciate it if you could check out my GitHub profile, follow me, and star any repositories you find interesting. GitHub: https://github.com/Advait251206 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I am training my Llama2-7b model with Megatron-LM, using four H20s, 32 GPUs in total. The parallel strategy is set to: TP=8/PP=2/DP=2. Now, I want to know the data capacity of different parallel groups communicating, is there some parameter setting to get these values, or if there is no such parameter, how can I get it from the code? Thank you.
All reactions