Skip to main content

Best practices to organize hyperparameter searches

Use unique tags with wandb.init to organize and filter hyperparameter search runs.

Can I group runs without using the 'Group' feature?

Yes, use tags or custom metadata to categorize runs with the Group button in W&B.

Can I rerun a grid search?

Delete failed runs and resume the sweep to re-run specific parameter combinations.

Can you group runs by tags?

No, runs can have multiple tags. Use a config value instead and group by that value.

How can I change how frequently to log system metrics?

Set x_stats_sampling_interval in wandb.Settings to control system metrics logging frequency.

How can I change the colors of each run in the same group?

Individual run colors cannot be changed within a group. All grouped runs share one color.

How can I delete multiple runs in bulk instead of one at a time?

Use the W&B public API to programmatically delete multiple runs in a single operation.

How can I disable logging of system metrics to W&B?

Disable system metrics logging by setting x_disable_stats to True in wandb.Settings during initialization.

How can I log a metric that doesn't change over time such as a final evaluation accuracy?

Log a static metric like final accuracy using run.log, which updates the value shown in the runs table.

How can I log additional metrics after a run completes?

Resume a completed run with wandb.init using resume=True and a unique ID to log additional metrics.

How can I recover deleted runs?

Learn how to recover recently deleted runs in the W&B App for up to 7 days.

How do I fix `CommError, Run does not exist` during a sweep?

Remove the manually set run ID from wandb.init() since sweeps generate their own unique IDs.

How do I fix the error `resume='must' but run (<run_id>) doesn't exist`?

Verify you are logged in to the correct instance and that entity and project are set correctly when resuming a run.

How do I log runs launched by continuous integration or internal tools?

Use a service account API key for CI and automated jobs, and set WANDB_USERNAME to attribute runs.

How do I resolve permission errors when logging a run?

Verify entity and project names, confirm permissions, and check login credentials to fix access errors.

How many runs can I create per project?

Limit each project to about 10,000 runs for optimal performance.

Is it possible to change the group assigned to a run after completion?

Yes. Use the W&B API to update the group property on a completed run programmatically.

Is it possible to move a run from one project to another?

Yes. Select runs in the Runs tab and click Move to transfer them to another project.

Why are steps missing from a CSV metric export?

CSV exports have row limits. Download the full run history as a Parquet artifact instead.