MCPcopy
hub / github.com/wandb/wandb

github.com/wandb/wandb @v0.28.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.28.0 ↗
18,171 symbols 66,686 edges 1,456 files 6,453 documented · 36%
README

Weights & 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 a W&B account!

Building an LLM app? Track, debug, evaluate, and monitor LLM apps with Weave, our new suite of tools for GenAI.

 

Documentation

See the W&B Developer Guide and API Reference Guide for a full technical description of the W&B platform.

 

Quickstart

Install W&B to track, visualize, and manage machine learning experiments of any size.

Install the wandb library

pip install wandb

Sign up and create an API key

Sign up for a W&B account. Create a new API key at wandb.ai/settings and store it securely. Optionally, use the wandb login CLI to configure your API key on your machine. You can skip this step -- W&B will prompt you to create an API key the first time you use it.

Note: API keys can only be viewed once when created. Store your API key in a secure location like a password manager or environment variable.

Create a machine learning training experiment

In your Python script or notebook, initialize a W&B run with wandb.init(). Specify hyperparameters and log metrics and other information to W&B.

import wandb

# Project that the run is recorded to
project = "my-awesome-project"

# Dictionary with hyperparameters
config = {"epochs": 1337, "lr": 3e-4}

# The `with` syntax marks the run as finished upon exiting the `with` block,
# and it marks the run "failed" if there's an exception.
#
# In a notebook, it may be more convenient to write `run = wandb.init()`
# and manually call `run.finish()` instead of using a `with` block.
with wandb.init(project=project, config=config) as run:
    # Training code here

    # Log values to W&B with run.log()
    run.log({"accuracy": 0.9, "loss": 0.1})

Visit wandb.ai/home to view recorded metrics such as accuracy and loss and how they changed during each training step. Each run object appears in the Runs column with generated names.

 

Integrations

W&B integrates with popular ML frameworks and libraries making it fast and easy to set up experiment tracking and data versioning inside existing projects.

For developers adding W&B to a new framework, follow the W&B Developer Guide.

 

W&B Hosting Options

Weights & Biases is available in the cloud or installed on your private infrastructure. Set up a W&B Server in a production environment in one of three ways:

  1. Multi-tenant Cloud: Fully managed platform deployed in W&B’s Google Cloud Platform (GCP) account in GCP’s North America regions.
  2. Dedicated Cloud: Single-tenant, fully managed platform deployed in W&B’s AWS, GCP, or Azure cloud accounts. Each Dedicated Cloud instance has its own isolated network, compute and storage from other W&B Dedicated Cloud instances.
  3. Self-Managed: Deploy W&B Server on your AWS, GCP, or Azure cloud account or within your on-premises infrastructure.

See the Hosting documentation in the W&B Developer Guide for more information.

 

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 and the docs/ directory 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 support@wandb.com.

 

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 AI updates and tutorials with W&B Fully Connected.

 

License

MIT License

Extension points exported contracts — how you extend this code

HistorySource (Interface)
HistorySource is an interface for reading W&B run history data. Implementations: - LevelDBHistorySource: Reads from a L [6 …
core/internal/leet/historysource.go
Source (Interface)
Define the Source interface with a common method. [3 implementers]
core/pkg/launch/job_builder.go
WaitFunc (FuncType)
(no doc)
experimental/go-sdk/internal/execbin/execbin.go
UnitFormatter (Interface)
UnitFormatter formats a scalar for axis labels and exposes the base unit to show in titles. [7 implementers]
core/internal/leet/units.go
Cache (Interface)
(no doc) [2 implementers]
core/pkg/artifacts/file_cache.go
Resource (Interface)
Resource defines the interface for system resources to be monitored. [6 implementers]
core/internal/monitor/monitor.go
HTTPDoer (Interface)
HTTPDoer is the interface implemented by http.Client. [13 implementers]
core/internal/api/standardclient.go
RetryableClient (Interface)
RetryableClient is an HTTP client with retries and special handling for W&B. The client is responsible for setting auth [13 …
core/internal/api/api.go

Core symbols most depended-on inside this repo

init
called by 636
wandb/sdk/wandb_init.py
append
called by 550
wandb/apis/public/registries/_freezable_list.py
Errorf
called by 523
core/internal/observability/printer.go
get
called by 465
wandb/sdk/artifacts/artifact.py
Join
called by 410
core/internal/paths/paths.go
log
called by 355
wandb/sdk/wandb_run.py
join
called by 319
wandb/sdk/wandb_run.py
Contains
called by 285
core/internal/runhistory/runhistory.go

Shape

Method 9,381
Function 6,173
Class 1,249
Struct 1,055
Route 173
TypeAlias 79
Interface 58
FuncType 3

Languages

Python54%
Go46%

Modules by API surface

core/pkg/service_go_proto/wandb_internal.pb.go1,761 symbols
core/internal/gql/gql_gen.go501 symbols
core/pkg/service_go_proto/wandb_api.pb.go306 symbols
core/pkg/service_go_proto/wandb_telemetry.pb.go260 symbols
core/pkg/service_go_proto/wandb_settings.pb.go247 symbols
core/pkg/service_go_proto/wandb_server.pb.go235 symbols
wandb/sdk/wandb_run.py156 symbols
tests/system_tests/test_artifacts/test_wandb_artifacts.py146 symbols
wandb/util.py142 symbols
wandb/sdk/wandb_settings.py133 symbols
tests/unit_tests/test_data_types.py123 symbols
wandb/sdk/internal/internal_api.py117 symbols

Dependencies from manifests, versioned

cel.dev/exprv0.25.2 · 1×
charm.land/bubbles/v2v2.1.0 · 1×
charm.land/bubbletea/v2v2.0.7 · 1×
charm.land/lipgloss/v2v2.0.4 · 1×
cloud.google.com/gov0.123.0 · 1×
cloud.google.com/go/auth/oauth2adaptv0.2.8 · 1×
cloud.google.com/go/compute/metadatav0.9.0 · 1×
cloud.google.com/go/monitoringv1.29.0 · 1×
cloud.google.com/go/storagev1.62.3 · 1×
dario.cat/mergov1.0.2 · 1×

For agents

$ claude mcp add wandb \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact