> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I best log models from runs in a sweep?

To log models in a [sweep](/models/sweeps/), create a model artifact for the sweep. Each version represents a different run from the sweep. Implement it as follows:

```python theme={null}
wandb.Artifact(name="sweep_name", type="model")
```

***

<Badge stroke shape="pill" color="orange" size="md">[Artifacts](/support/models/tags/artifacts)</Badge><Badge stroke shape="pill" color="orange" size="md">[Sweeps](/support/models/tags/sweeps)</Badge>
