> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-feature-automate-reference-docs-generation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Serve

任意のWeave Modelへの参照があれば、以下を実行できます：

```
weave serve <ref>
```

そのモデル用のFastAPIサーバーを実行するために。 [http://0.0.0.0:9996/docs](http://0.0.0.0:9996/docs) にアクセスして、モデルをインタラクティブにクエリできます。

## FastAPIをインストール

```bash
pip install fastapi uvicorn
```

## モデルを提供

ターミナルで以下を呼び出します：

```bash
weave serve <your model ref>
```

モデル参照を取得するには、モデルに移動してUIからコピーします。以下のような形式になります：

`weave:///your_entity/project-name/YourModel:<hash>`

使用するには、Swagger UIリンクに移動し、predictエンドポイントをクリックして「Try it out!」をクリックします。
