@wandb/sdk v0.5.1
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 free account!
š W&B is free for students, educators, and academic researchers. For more information, visit https://wandb.ai/site/research.
Want to use Weights & Biases for seamless collaboration between your ML or Data Science team? Looking for Production-grade MLOps at scale? Sign up to one of our plans or contact the Sales Team.
Ā
Documentation
This is a TypeScript library compatible with Node and modern Web Browsers. It's inspired by our official Python SDK. We're currently missing a lot of the functionality found in our Python SDK, basic logging functionality is available:
import wandb from '@wandb/sdk'
await wandb.init({config: {test: 1}});
wandb.log({acc: 0.9, loss: 0.1});
wandb.log({acc: 0.91, loss: 0.09});
await wandb.finish();
We'll be adding additional features like Tables soon.
Integrations
Langchain
Traces can be logged from langchain versions >= 0.0.75.
import {WandbTracer} from '@wandb/sdk/integrations/langchain';
const wbTracer = await WandbTracer.init({project: 'langchain-test'});
// run your langchain workloads...
chain.call({input: "My prompt"}, wbTracer);
// be sure to call finish on the tracer
await WandbTracer.finish();