Skip to main content
Add tags to label runs with particular features that might not be obvious from the logged metrics or artifact data. For example, you can add a tag to a run to indicated that run’s model is in_production, that run is preemptible, this run represents the baseline, and so forth.

Add tags to one or more runs

Programmatically or interactively add tags to your runs. Based on your use case, select a tab below that best fits your needs:
Use wandb.init() to add tags when you initialize a run. Pass a list of strings to the tags parameter in wandb.init() to add tags to a run. For example:
import wandb

with wandb.init(
  entity="<entity>",
  project="<project>",
  tags=["<tag1>", "<tag2>"]
) as run:
    # Your training code here
You can also add or update an existing tag during an active run by updating the tags attribute of the run object (wandb.Run.tags). The tags attribute accepts a tuple of strings. Concatenate one or more tags to the existing run tag property to add new tags after you initialize the run:
import wandb

with wandb.init(entity="<entity>", project="<project>", tags=["<tag1>"]) as run:
  # Training loop logic here

  # Add a new tag to the run object
  run.tags += ("<new_tag>",)

Remove tags from one or more runs

Follow these steps to remove tags from a run in the W&B App.
This method is best suited to removing tags from a large numbers of runs.
  1. In the Run sidebar of the project, select the table icon in the upper-right. This will expand the sidebar into the full runs table.
  2. Hover over a run in the table to see a checkbox on the left or look in the header row for a checkbox to select all runs.
  3. Select the checkbox to enable bulk actions.
  4. Select the runs you want to remove tags.
  5. Select the Tag button above the rows of runs.
  6. Select the checkbox next to a tag to remove it from the run.