Are you looking for information on W&B Weave? See the Weave Python SDK quickstart or Weave TypeScript SDK quickstart.
Sign up and create an API key
To authenticate your machine with W&B, generate an API key from your user profile or at wandb.ai/authorize. Copy the API key and store it securely.Install the wandb
library and log in
- Command Line
- Python
- Python notebook
-
Set the
WANDB_API_KEY
environment variable. -
Install the
wandb
library and log in.
Start a run and track hyperparameters
In your Python script or notebook, initialize a W&B run object withwandb.init()
. Use a dictionary for the config
parameter to specify hyperparameter names and values.
Assemble the components
This mock training script logs simulated accuracy and loss metrics to W&B:
Next steps
Explore more features of the W&B ecosystem:- Read the W&B Integration tutorials that combine W&B with frameworks like PyTorch, libraries like Hugging Face, and services like SageMaker.
- Organize runs, automate visualizations, summarize findings, and share updates with collaborators using W&B Reports.
- Create W&B Artifacts to track datasets, models, dependencies, and results throughout your machine learning pipeline.
- Automate hyperparameter searches and optimize models with W&B Sweeps.
- Analyze runs, visualize model predictions, and share insights on a central dashboard.
- Visit W&B AI Academy to learn about LLMs, MLOps, and W&B Models through hands-on courses.
- Visit weave-docs.wandb.ai to learn how to track track, experiment with, evaluate, deploy, and improve your LLM-based applications using Weave.