> ## 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

export const GCell = ({children, className}) => <div className={`grid-table-cell ${className || ""}`} role="cell">
    {children}
  </div>;

export const GTH = ({children, className}) => <div className={`grid-table-th ${className || ""}`} role="columnheader">
    {children}
  </div>;

export const GRow = ({children}) => <div className="grid-table-row" role="row">{children}</div>;

export const GBody = ({children}) => <div className="grid-table-body" role="rowgroup">{children}</div>;

export const GHead = ({children}) => <div className="grid-table-head" role="rowgroup">{children}</div>;

export const GTable = ({children, className, cols}) => <div className={`grid-table not-prose overflow-hidden rounded-2xl ${className || ""}`} style={{
  "--grid-table-cols": cols
}} role="table">
    {children}
  </div>;

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()`.

<GTable cols="17% 10% 73%">
  <GHead>
    <GRow>
      <GTH>Parameter</GTH>
      <GTH>Type</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

  <GBody>
    <GRow>
      <GCell>`name`</GCell>
      <GCell>str</GCell>
      <GCell>Asset name</GCell>
    </GRow>

    <GRow>
      <GCell>`instance`</GCell>
      <GCell>str</GCell>
      <GCell>Version: `"latest"`, `"latest-N"`, or `"vN"`</GCell>
    </GRow>
  </GBody>
</GTable>

**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`.
</Note>
