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

# prj.get_model

Fetch the latest instance of a model asset in a flow.

```python theme={null}
prj.get_model(name, instance="latest")
```

Retrieve artifact data from a model asset registered with `register_model()`.

Parameter

Type

Description

`name`

str

Asset name

`instance`

str

Version: `"latest"`, `"latest-N"`, or `"vN"`

**Returns:** The model artifact data

```python theme={null}
model = self.prj.get_model("fraud_classifier")
previous_model = self.prj.get_model("fraud_classifier", instance="latest-1")
```

> [!NOTE]
>
> Only works for artifact-based models. For external models (checkpoints, HuggingFace, etc.), use `prj.asset.consume_model_asset()` and load from the returned `blobs`.
