Add W&B worker GPU system metrics#1335
Closed
EazyReal wants to merge 1 commit into
Closed
Conversation
This was referenced May 14, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stats_logger.wandb.system_metricsto opt into worker-side W&B system metrics.Root Cause
In single-controller training the process that calls
wandb.init()can run on a CPU/controller host while actor and rollout workers run on GPU nodes. W&B system metrics are collected from initialized W&B clients, sowandb.mode=onlineon only the controller records controller process memory but not worker GPU utilization.Behavior
Users can enable GPU worker telemetry with:
Workers use
x_primary=False, a role/rankx_label, andx_update_finish_state=False, so they contribute system metrics without writing primary run files or finishing the run.Validation
uv run ruff check areal/api/cli_args.py areal/utils/stats_logger.py areal/utils/wandb_system_metrics.py areal/infra/rpc/rpc_server.py areal/infra/rpc/ray_rpc_server.py areal/infra/scheduler/local.py areal/infra/scheduler/slurm.py areal/infra/scheduler/ray.py areal/trainer/rl_trainer.py areal/trainer/sft_trainer.py areal/trainer/dpo_trainer.py areal/trainer/rw_trainer.py tests/test_wandb_system_metrics.pyuv run pytest tests/test_wandb_system_metrics.py tests/test_trackio_backend.py