Weights & Biases (W&B)

Integration with W&B and see the progress of your fine-tuning jobs.

Weights and Biases (W&B) is an AI developer platform. LLMariner provides the integration with W&B so that metrics for fine-tuning jobs are reported to W&B. With the integration, you can easily see the progress of your fine-tuning jobs, such as training epoch, loss, etc.

Please take the following steps to enable the integration.

First, obtain the API key of W&B and create a Kubernetes secret.

kubectl create secret generic wandb -n <fine-tuning job namespace> \ --from-literal=apiKey=${WANDB_API_KEY}

The secret needs to be created in a namespace where fine-tuning jobs run. Individual projects specify namespaces for fine-tuning jobs, and the default project runs fine-tuning jobs in the "default" namespace.

Then you can enable the integration by adding the following to your Helm values.yaml and re-deploying LLMariner.

job-manager-dispatcher: job: wandbApiKeySecret: name: wandb key: apiKey

A fine-tuning job will report to W&B when the integration parameter is specified.

job = client.fine_tuning.jobs.create( model="google-gemma-2b-it", suffix="fine-tuning", training_file=tfile.id, validation_file=vfile.id, integrations=[ { "type": "wandb", "wandb": { "project": "my-test-project", }, }, ], )

Here is an example screenshot. You can see metrics like train/loss in the W&B dashboard.

Last modified January 29, 2025: docs: add n8n deployment example (#99) (a140184)