What gets logged by default
Each rollout iteration emits a structured row to stdout (illustrative shape — exact fields depend on backend and config):--use-wandb is set, metrics also go to wandb under the train/, rollout/,
and perf/ namespaces (see miles/utils/wandb_utils.py).
Enabling wandb
--use-wandb, --wandb-project, --wandb-group. WANDB_API_KEY
should be supplied via Ray’s env_vars rather than baked into the launch script.
What to watch
Panel names follow what
loss.py and the rollout logger emit; Miles’s wandb metrics
live under train/, rollout/, perf/, multi_turn/, passrate/ namespaces.
Custom loggers
Replace the default rollout logger with your own to push to internal systems:Profiling
Built-in PyTorch profiler
The PyTorch profiler is wired into Miles viamiles/utils/profile_utils.py. Flags
differ by backend:
Megatron — choose which sub-loop to profile:
chrome://tracing or Perfetto.

