(args)
| 240 | |
| 241 | |
| 242 | def _manage_profiling_args(args): |
| 243 | if not hasattr(args, "sys_perf_profiling"): |
| 244 | args.sys_perf_profiling = True |
| 245 | if not hasattr(args, "sys_perf_profiling"): |
| 246 | args.sys_perf_profiling = True |
| 247 | |
| 248 | if hasattr(args, "sys_perf_profiling") and args.sys_perf_profiling: |
| 249 | from .core.mlops.mlops_profiler_event import MLOpsProfilerEvent |
| 250 | |
| 251 | MLOpsProfilerEvent.enable_sys_perf_profiling() |
| 252 | |
| 253 | if hasattr(args, "enable_wandb") and args.enable_wandb: |
| 254 | wandb_only_server = getattr(args, "wandb_only_server", None) |
| 255 | if (wandb_only_server and args.rank == 0 and args.process_id == 0) or not wandb_only_server: |
| 256 | wandb_entity = getattr(args, "wandb_entity", None) |
| 257 | if wandb_entity is not None: |
| 258 | wandb_args = { |
| 259 | "entity": args.wandb_entity, |
| 260 | "project": args.wandb_project, |
| 261 | "config": args, |
| 262 | } |
| 263 | else: |
| 264 | wandb_args = { |
| 265 | "project": args.wandb_project, |
| 266 | "config": args, |
| 267 | } |
| 268 | |
| 269 | if hasattr(args, "run_name"): |
| 270 | wandb_args["name"] = args.run_name |
| 271 | |
| 272 | if hasattr(args, "wandb_group_id"): |
| 273 | # wandb_args["group"] = args.wandb_group_id |
| 274 | wandb_args["group"] = "Test1" |
| 275 | wandb_args["name"] = f"Client {args.rank}" |
| 276 | wandb_args["job_type"] = str(args.rank) |
| 277 | |
| 278 | import wandb |
| 279 | |
| 280 | wandb.init(**wandb_args) |
| 281 | |
| 282 | from .core.mlops.mlops_profiler_event import MLOpsProfilerEvent |
| 283 | |
| 284 | MLOpsProfilerEvent.enable_wandb_tracking() |
| 285 | |
| 286 | |
| 287 | def _manage_cuda_rpc_args(args): |
no test coverage detected