helper function to log only on global rank 0
(_rank, logger, msg)
| 10 | |
| 11 | |
| 12 | def rank_log(_rank, logger, msg): |
| 13 | """helper function to log only on global rank 0""" |
| 14 | if _rank == 0: |
| 15 | logger.info(f" {msg}") |
| 16 | |
| 17 | |
| 18 | def verify_min_gpu_count(min_gpus: int = 2) -> bool: |
no outgoing calls
no test coverage detected