Skip to content

make it easier to pass experiment names to wandb#466

Merged
eugenevinitsky merged 2 commits into
emerge/temp_trainingfrom
ev/wandb-run-name
May 31, 2026
Merged

make it easier to pass experiment names to wandb#466
eugenevinitsky merged 2 commits into
emerge/temp_trainingfrom
ev/wandb-run-name

Conversation

@eugenevinitsky
Copy link
Copy Markdown

@eugenevinitsky eugenevinitsky commented May 31, 2026

Summary

wandb.init() previously did not set a name=, so wandb assigned random display names like "flowing-wind-34". This PR plumbs a --run-name config key through pufferl and has the single-agent launcher script construct a per-seed name like 2026-05-31_seed0.

Copilot AI review requested due to automatic review settings May 31, 2026 22:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a configurable Weights & Biases run name with {date} and {seed} placeholder substitution, replacing wandb's previous auto-generated random names. Opt-in via a new --run-name CLI flag / run_name config key, with the existing single-agent cluster config updated to use the new feature.

Changes:

  • New --run-name CLI flag in pufferl.py (default None, preserving prior auto-name behavior).
  • WandbLogger.__init__ formats {date} (launch-time YYYY-MM-DD) and {seed} (from args.train.seed) into the run name before calling wandb.init(name=...).
  • single_agent_speed_run.yaml opts in with run_name: "{date}_seed{seed}".

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pufferlib/pufferl.py Adds --run-name arg and placeholder substitution in WandbLogger.
scripts/cluster_configs/single_agent_speed_run.yaml Sets run_name template for identifiable cluster runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…e_agent yaml

wandb.init() previously did not set name=, so wandb assigned random names
like "flowing-wind-34". Adds a --run-name CLI flag (top-level config key)
that pufferl's WandbLogger renders against {date} (launch-time YYYY-MM-DD)
and {seed} (args.train.seed) placeholders before passing to wandb.init.

Default is None — wandb auto-name preserved. The single-agent speed-run
yaml opts in by setting run_name: "{date}_seed{seed}", giving identifiable
runs like 2026-05-31_seed0 without per-seed launcher logic.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@eugenevinitsky eugenevinitsky changed the title pufferl: --run-name with {date}/{seed} template + single_agent yaml opt-in pufferl: --run-name config key; launch_single_agent.sh passes <date>_seed<N> May 31, 2026
@eugenevinitsky eugenevinitsky changed the title pufferl: --run-name config key; launch_single_agent.sh passes <date>_seed<N> make it easier to pass experiment names to wandb May 31, 2026
@eugenevinitsky eugenevinitsky merged commit e22e96c into emerge/temp_training May 31, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants