make it easier to pass experiment names to wandb#466
Merged
Conversation
There was a problem hiding this comment.
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-nameCLI flag inpufferl.py(defaultNone, preserving prior auto-name behavior). WandbLogger.__init__formats{date}(launch-timeYYYY-MM-DD) and{seed}(fromargs.train.seed) into the run name before callingwandb.init(name=...).single_agent_speed_run.yamlopts in withrun_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>
0ec2c12 to
f9a863b
Compare
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
wandb.init() previously did not set a
name=, so wandb assigned random display names like "flowing-wind-34". This PR plumbs a--run-nameconfig key through pufferl and has the single-agent launcher script construct a per-seed name like2026-05-31_seed0.