Skip to content

Make Sweep Runs and Artifacts Easily Identifiable #22

@eberrigan

Description

@eberrigan

🏷️ Sub-Issue 3: Make Sweep Runs and Artifacts Easily Identifiable

Problem

Run names and model artifact names are duplicated across sweep configurations, making it difficult to distinguish between them.

Root Cause

Sweep runs are named using only the base experiment name and version, without incorporating any sweep parameters or unique IDs.

Solution

Modify run and artifact naming to include:

  • A shortened W&B run ID, or
  • The sweep parameters (concatenated safely)

Code Example

Update the run name in log_to_wandb():

run = wandb.init(
    name=f"{experiment_name}_training_v00{version}_{wandb.util.generate_id()[:8]}",
    ...
)

Or, to include parameter values:

name = f"{experiment_name}_v00{version}_" + "_".join(
    f"{k}{v}" for k, v in wandb.config.items() if isinstance(v, (str, int, float))
)

Expected Outcome

Sweep runs and model artifacts will have unique, informative names based on the sweep configuration, improving traceability in the W&B UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions