Profiling only a select group of ranks
Is it possible to profile only a select group of ranks. Becomes hard to handle the large number of files when there are many ranks. I understand that there could be imbalances when only a few ranks are profiled. Do not know if there are ways to profile , but not dump the profile output file.
Currently, TorchTitan only support rank0 profiling or all ranks profiling. But this request is reasonable, do you want to submit a PR for this?
Sure, I can do a PR.
Currently, TorchTitan only support rank0 profiling or all ranks profiling.
btw, this is for tensorboard / wandb logs. For profiler, all ranks will be profiled.
I think it's OK to not generate profiler files on all ranks.