(rank, world_size, port, physical_devices)
| 7 | |
| 8 | |
| 9 | def check_alpha_beta(rank, world_size, port, physical_devices): |
| 10 | disable_existing_loggers() |
| 11 | launch(rank=rank, world_size=world_size, host="localhost", port=port, backend="nccl") |
| 12 | profiler = AlphaBetaProfiler(physical_devices) |
| 13 | ab_dict = profiler.profile_ab() |
| 14 | for _, (alpha, beta) in ab_dict.items(): |
| 15 | assert alpha > 0 and alpha < 1e-4 and beta > 0 and beta < 1e-10 |
| 16 | |
| 17 | |
| 18 | @pytest.mark.skip(reason="Skip because assertion fails for CI devices") |
nothing calls this directly
no test coverage detected
searching dependent graphs…