# Log Weight and Biases runs

Vectice provides an easy way to retrieve already saved information from your Weight and Biases runs and document them into Vectice.

To log model information from `Weight and Biases` use the following lines of code:

```python
# Use the following model wrapper to retrieve your W&B run artifacts
model = Model.wandb(run_id='your_run_path', client=wandb.Api, url='https://your_url.com')

# Log W&B artifacts in Vectice (Also works with autolog)
iteration.log(model)
```

<table><thead><tr><th width="184.5">Parameter</th><th width="421">Description</th><th>Default</th></tr></thead><tbody><tr><td><code>run_id</code></td><td>The full run path (<code>entity/project/run_id</code>). </td><td><em>required</em></td></tr><tr><td><code>client</code></td><td>A Weights &#x26; Biases <code>wandb.Api</code> instance used to access the run. If not provided, a default client will be created automatically.</td><td><em>optional</em></td></tr><tr><td><code>url</code></td><td>The URL to Weight and Biases UI to access the run information.</td><td><em>optional</em></td></tr><tr><td><code>derived_from</code></td><td>List of datasets (or version ids) to link as lineage.</td><td><em>optional</em></td></tr></tbody></table>

You can access your Weight and Biases run artifacts in Vectice where you will see the model version metrics, properties, and a link to the W\&B UI of your run.

Find this information by navigating to **Models** **>** **Select model name > Select version**.

<figure><img src="https://content.gitbook.com/content/sMRjTa7AGX49De62RAyl/blobs/Dd3rw6iPalgMjbeVRBrf/Screenshot%202025-07-28%20at%2011.43.02%E2%80%AFAM.png" alt=""><figcaption><p>W&#x26;B Model Metrics and UI URL accessible in Vectice App</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/sMRjTa7AGX49De62RAyl/blobs/dkBsWRwuSDns38EA9fv3/Screenshot%202025-07-28%20at%2011.45.24%E2%80%AFAM.png" alt=""><figcaption><p>W&#x26;B Model propeties and attachments accessible in Vectice App</p></figcaption></figure>
