Skip to content
/ wandb-js Public

The W&B SDK for TypeScript, Node, and modern Web Browsers

License

Notifications You must be signed in to change notification settings

wandb/wandb-js

Repository files navigation

Weights & Biases 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 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

Weights and Biases Experiments Weights and Biases Reports Weights and Biases Artifacts Weights and Biases Tables Weights and Biases Sweeps Weights and Biases Model Management Weights and Biases Launch Weights and Biases Prompts

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();