Skip to main content
When you initialize a W&B Run, W&B assigns that run a unique identifier known as a run ID. Each run also has a human-readable non-unique run name that you can customize.

Run ID

A run’s ID uniquely identifies the run. By default, W&B generates a random and unique run ID automatically when you initialize a new run, unless you specify your own unique run ID when you initialize the run.

Find a run’s ID

Find a run’s unique ID programmatically with the W&B Python SDK or interactively in the W&B App.
When you initialize a run, W&B returns the unique run ID in the terminal. For example, consider the following code snippet that initializes a W&B run:
import wandb
entity = "nico"  # Replace with your W&B entity
project = "awesome-project" 
with wandb.init(entity=entity, project=project) as run:
    # Your code here
Within the terminal, W&B returns:
wandb: Syncing run earnest-sunset-1
wandb: ⭐️ View project at https://wandb.ai/nico/awesome-project
wandb: 🚀 View run at https://wandb.ai/nico/awesome-project/runs/1jx1ud12
The last part of the run URL (1jx1ud12) is the unique run ID.
Use a run’s unique ID to directly navigate to that run’s overview page in the W&B App. The following code block shows the format of a URL path for a run:
W&B App URL for a specific run
https://wandb.ai/<entity>/<project>/<run-id>
Replace values enclosed in angle brackets (< >) with the actual values of the entity, project, and run ID.

Create a custom run ID

Pass your desired run ID as a string to the id paramater when you initialize a run:
import wandb

with wandb.init(entity="<project>", project="<project>", id="<run-id>") as run:
    # Your code here

Run name

Each run has a human-readable, non-unique run name. By default, W&B generates a random run name when you initialize a new run if you do not specify a run name for it. The name of a run appears within your project’s workspace and at the top of the run’s Overview page. Continuing from the previous example, the name of the run is glowing-shadows-8.
Run ID location
You can name your run when you initialize it or rename it at a later time.

Create a custom run name

Specify a name for your run by passing the name parameter to the wandb.init() method.
import wandb

with wandb.init(entity="<project>", project="<project>", name="<run-name>") as run:
    # Your code here

Rename a run

Rename a run after initializing it programmatically with the Python SDK or interactively in the W&B App.
Use wandb.Api.Run to access a run logged to W&B. This method returns a run object that you can use to update the run name. Call wandb.Api.Run.update() method to persist changes.Replace the values enclosed in angle brackets (< >) with your own values.
import wandb

api = wandb.Api()

# Access run by its path
run = api.run(path = "<entity>/<project>/<run-id>")

# Specify a new run name
run.name = "<new-run-name>"
run.update()

Run display name

Each run also has a run display name that you can customize for each workspace.
If you change a run’s display name in one workspace, the display name changes only for that workspace, not in other workspaces or projects.
The display name defaults to the same value as the run name. The display name appears in the run’s workspace and runs table. Use the run display name to override the run name displayed in that workspace without renaming the run in the project.

Rename a run’s display name

Change a run’s display name from the W&B App:
  1. Navigate to your W&B project.
  2. Select the Workspace or Runs tab.
  3. Search or scroll to the run you want to rename.
  4. Hover over the run name, click the three vertical dots, then click Rename run.
  5. Specify a new value for the Display name field.
  6. Click Save.

Customize run name truncation

By default, long run names are truncated in the middle for readability. To customize the truncation of run names:
  1. Click the action ... menu at the top of the list of runs.
  2. Set Run name cropping to crop the end, middle, or beginning.