wandb0.19.1
Published
A CLI and library for interacting with the Weights & Biases API.
pip install wandb
Package Downloads
Authors
Project URLs
Requires Python
>=3.8
Dependencies
- click
!=8.0.0,>=7.1
- docker-pycreds
>=0.4.0
- eval-type-backport
; python_version < "3.10"
- gitpython
!=3.1.29,>=1.0.0
- platformdirs
- protobuf
!=4.21.0,!=5.28.0,<6,>=3.12.0; python_version < "3.9" and sys_platform == "linux"
- protobuf
!=4.21.0,!=5.28.0,<6,>=3.15.0; python_version == "3.9" and sys_platform == "linux"
- protobuf
!=4.21.0,!=5.28.0,<6,>=3.19.0; python_version > "3.9" and sys_platform == "linux"
- protobuf
!=4.21.0,!=5.28.0,<6,>=3.19.0; sys_platform != "linux"
- psutil
>=5.0.0
- pydantic
<3,>=2.6
- pyyaml
- requests
<3,>=2.0.0
- sentry-sdk
>=2.0.0
- setproctitle
- setuptools
- typing-extensions
<5,>=4.4; python_version < "3.12"
- boto3
; extra == "aws"
- azure-identity
; extra == "azure"
- azure-storage-blob
; extra == "azure"
- google-cloud-storage
; extra == "gcp"
- filelock
; extra == "importers"
- mlflow
; extra == "importers"
- polars
<=1.2.1; extra == "importers"
- rich
; extra == "importers"
- tenacity
; extra == "importers"
- google-cloud-storage
; extra == "kubeflow"
- kubernetes
; extra == "kubeflow"
- minio
; extra == "kubeflow"
- sh
; extra == "kubeflow"
- awscli
; extra == "launch"
- azure-containerregistry
; extra == "launch"
- azure-identity
; extra == "launch"
- azure-storage-blob
; extra == "launch"
- boto3
; extra == "launch"
- botocore
; extra == "launch"
- chardet
; extra == "launch"
- google-auth
; extra == "launch"
- google-cloud-aiplatform
; extra == "launch"
- google-cloud-artifact-registry
; extra == "launch"
- google-cloud-compute
; extra == "launch"
- google-cloud-storage
; extra == "launch"
- iso8601
; extra == "launch"
- jsonschema
; extra == "launch"
- kubernetes
; extra == "launch"
- kubernetes-asyncio
; extra == "launch"
- nbconvert
; extra == "launch"
- nbformat
; extra == "launch"
- optuna
; extra == "launch"
- pydantic
; extra == "launch"
- pyyaml
>=6.0.0; extra == "launch"
- tomli
; extra == "launch"
- typing-extensions
; extra == "launch"
- bokeh
; extra == "media"
- imageio
; extra == "media"
- moviepy
; extra == "media"
- numpy
; extra == "media"
- pillow
; extra == "media"
- plotly
>=5.18.0; extra == "media"
- rdkit
; extra == "media"
- soundfile
; extra == "media"
- cloudpickle
; extra == "models"
- orjson
; extra == "perf"
- sweeps
>=0.2.0; extra == "sweeps"
- wandb-workspaces
; extra == "workspaces"
Weights and Biases
Use W&B to build better models faster. Track and visualize all the pieces of your machine learning pipeline, from datasets to production machine learning models. Get started with W&B today, sign up for an account!
See the W&B Developer Guide and API Reference Guide for a full technical description of the W&B platform.
Quickstart
Get started with W&B in four steps:
-
First, sign up for a W&B account.
-
Second, install the W&B SDK with pip. Navigate to your terminal and type the following command:
pip install wandb
- Third, log into W&B:
wandb.login()
- Use the example code snippet below as a template to integrate W&B to your Python script:
import wandb
# Start a W&B Run with wandb.init
run = wandb.init(project="my_first_project")
# Save model inputs and hyperparameters in a wandb.config object
config = run.config
config.learning_rate = 0.01
# Model training code here ...
# Log metrics over time to visualize performance with wandb.log
for i in range(10):
run.log({"loss": ...})
# Mark the run as finished, and finish uploading all data
run.finish()
For example, if the preceding code was stored in a script called train.py:
python train.py
You will see a URL in your terminal logs when your script starts and finishes. Data is staged locally in a directory named wandb relative to your script. Navigate to the W&B App to view a dashboard of your first W&B Experiment. Use the W&B App to compare multiple experiments in a unified place, dive into the results of a single run, and much more!
Integrations
Use your favorite framework with W&B. W&B integrations make it fast and easy to set up experiment tracking and data versioning inside existing projects. For more information on how to integrate W&B with the framework of your choice, see W&B Integrations in the W&B Developer Guide.
Python Version Support
We are committed to supporting our minimum required Python version for at least six months after its official end-of-life (EOL) date, as defined by the Python Software Foundation. You can find a list of Python EOL dates here.
When we discontinue support for a Python version, we will increment the library’s minor version number to reflect this change.
Contribution guidelines
Weights & Biases ❤️ open source, and we welcome contributions from the community! See the Contribution guide for more information on the development workflow and the internals of the wandb library. For wandb bugs and feature requests, visit GitHub Issues or contact [email protected].
Academic Researchers
Reach out to W&B Support at [email protected] to get a free academic license for you and your research group.
W&B Community
Be a part of the growing W&B Community and interact with the W&B team in our Discord. Stay connected with the latest ML updates and tutorials with W&B Fully Connected.