← 开源

How to use wandb?

Python
增长势头
+024 小时新增 Star0.0%
699
Star
55
Fork
+1
本周
1
贡献者
创建于 2022-04-04 · 更新于 2026-11-30 · 今日第 18916 名
主要开发者
README

wandb Tutorial

wandb is a free tool for logging data from machine learning training processes. It includes features for user management, team management, and project management.

[Zhihu Tutorial (in Chinese)] [中文介绍]

0. Environment Setup

  • Ubuntu or Red Hat
  • tmux
  • Python3
  • pip install -r requirements.txt

1. Basic Usage

For a detailed tutorial on this section, see: wandb Usage Tutorial (Part 1): Basic Usage

2. Hyperparameter Search

For a detailed tutorial on this section, see: wandb Usage Tutorial (Part 2): Distributed Hyperparameter Search Using Launchpad

In machine learning tasks, we often encounter many hyperparameters that need tuning. wandb provides features for hyperparameter search. However, wandb primarily focuses on hyperparameter search scheduling and visualization, and does not inherently offer distributed capabilities. Thus, this section describes a way to combine Launchpad and wandb for parallel (or distributed) hyperparameter search.

Note: Since Launchpad doesn't offer multi-machine distributed capabilities, if you wish to perform multi-machine parallel hyperparameter searches, consider using TLaunch.

  • Basic example: test_sweep.sh, this example provides a minimal setup for combining wandb and Launchpad.
  • Search for dropout hyperparameter in CNN classification task: test_sweep.sh, this example is based on the MNIST classification task and focuses on searching for the best dropout parameter.

3. Data and Model Management

wandb also offers features for data and model backup management. For a detailed tutorial on this section, see: wandb Usage Tutorial (Part 3): Data and Model Management

  • Basic example: test_artifact.sh, this example provides a way to back up MNIST training data.

4. Local Deployment of wandb

wandb also offers features for local server deployment. For a detailed tutorial on this section, see: wandb Usage Tutorial (Part 4): Local Deployment of wandb

Citing wandb_tutorial

If you use wandb_tutorial in your work, please cite us:

@article{huangshiyu2022wandb,
    title={wandb Tutorial},
    author={Shiyu Huang},
    year={2022},
    howpublished={\url{https://github.com/huangshiyu13/wandb_tutorial}},
}

Star History

排名相邻

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载