Skip to main content

32 docs tagged with "experiments"

View all tags

Can I run wandb offline?

If training occurs on an offline machine, use the following steps to upload results to the servers:

Does logging block my training?

"Is the logging function lazy? I don't want to depend on the network to send results to your servers while executing local operations."

Does your tool track or store training data?

Pass a SHA or unique identifier to wandb.config.update(...) to associate a dataset with a training run. W&B stores no data unless wandb.save is called with the local file name.

How can I save the git commit associated with my run?

When wandb.init is invoked, the system automatically collects git information, including the remote repository link and the SHA of the latest commit. This information appears on the run page. Ensure the current working directory when executing the script is within a git-managed folder to view this information.

How do I add Plotly or Bokeh Charts into Tables?

Direct integration of Plotly or Bokeh figures into tables is not supported. Instead, export the figures to HTML and include the HTML in the table. Below are examples demonstrating this with interactive Plotly and Bokeh charts.

What does wandb.init do to my training process?

When wandb.init() runs in a training script, an API call creates a run object on the servers. A new process starts to stream and collect metrics, allowing the primary process to function normally. The script writes to local files while the separate process streams data to the servers, including system metrics. To turn off streaming, run wandb off from the training directory or set the WANDB_MODE environment variable to offline.

What happens if I pass a class attribute into wandb.log()?

Avoid passing class attributes into wandb.log(). Attributes may change before the network call executes. When storing metrics as class attributes, use a deep copy to ensure the logged metric matches the attribute's value at the time of the wandb.log() call.

Why am I seeing fewer data points than I logged?

When visualizing metrics against an X-axis other than Step, expect to see fewer data points. Metrics must log at the same Step to remain synchronized. Only metrics logged at the same Step are sampled while interpolating between samples.

Why is nothing showing up in my graphs?

If the message "No visualization data logged yet" appears, the script has not executed the first wandb.log call. This situation may occur if the run takes a long time to complete a step. To expedite data logging, log multiple times per epoch instead of only at the end.

Why is the same metric appearing more than once?

When logging various data types under the same key, split them in the database. This results in multiple entries of the same metric name in the UI dropdown. The data types grouped are number, string, bool, other (primarily arrays), and any wandb data type such as Histogram or Image. Send only one type per key to prevent this issue.

Will wandb slow down my training?

W&B has a minimal impact on training performance under normal usage conditions. Normal use includes logging at a rate of less than once per second and limiting data to a few megabytes per step. W&B operates in a separate process with non-blocking function calls, ensuring that brief network outages or intermittent disk read/write issues do not disrupt performance. Excessive logging of large amounts of data may lead to disk I/O issues. For further inquiries, contact support.