> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/models/ja/supported-models/qwen3-vl.md).

# Qwen3-VL

Qwen3-VL は Alibaba のビジョン言語モデルです。画像とテキストプロンプトを受け取り、テキスト応答を返します。Qwen3-VL は当社の [サーバーレスホスト型 API](https://docs.roboflow.com/deployment/roboflow-cloud/serverless-api), [専用デプロイメント](https://docs.roboflow.com/deployment/roboflow-cloud/dedicated-deployments)、および [セルフホスト推論](https://docs.roboflow.com/deployment/self-hosted/self-hosted).

## コードサンプル

{% stepper %}
{% step %}

### API キーを取得する

Roboflow アカウントを作成し、以下でキーを見つけます: [Roboflow API 設定ページ](https://app.roboflow.com/settings/api) そして、それをシェルで利用できるようにします:

```bash
export ROBOFLOW_API_KEY="your-key-here"
```

{% endstep %}

{% step %}

### 依存関係をインストールする

次をインストールしてください: [Inference SDK](https://docs.roboflow.com/deployment/self-hosted/self-hosted):

```bash
pip install -U inference-sdk supervision
```

{% endstep %}

{% step %}

### モデルを実行する

このサンプルは `qwen3vl-2b-instruct` チェックポイントに画像の説明を求め、その応答を出力します。

```python
import os
import supervision as sv
from inference_sdk import InferenceHTTPClient

image = sv.load_image_from_url("https://media.roboflow.com/quickstart/dog.jpeg")

client = InferenceHTTPClient(
    api_url="https://serverless.roboflow.com",
    api_key=os.environ["ROBOFLOW_API_KEY"],
)
result = client.infer_lmm(
    image,
    model_id="qwen3vl-2b-instruct",
    prompt="この画像を簡潔に説明してください。",
    max_new_tokens=128,
)
print(result["response"])
```

{% endstep %}
{% endstepper %}

上のコードは、モデルの応答をターミナルに出力します：

```
白いTシャツと赤いショートパンツを着た男性が、ビーグル犬を肩に担いでいます。犬は黒いハーネスを着け、前方を見ています。男性は住宅街の舗装された道を歩いており、背景にはアパートの建物があります。左側には緑の芝生と白い花のある小さな庭があります。
```

<figure><img src="/files/56350ab4b0e2432336c9de6411e728110b1145fd" alt=""><figcaption></figcaption></figure>

## 推論速度

レイテンシは以下で測定: [Roboflow Inference](https://docs.roboflow.com/deployment/self-hosted/self-hosted) 1x NVIDIA L4 上で、バッチサイズ 1、固定プロンプトからグリーディーデコーディングを使ってちょうど 128 トークンを生成した場合の値です。レイテンシーは出力長に比例するため、他の長さを見積もるにはトークン/秒を使用してください。

<table data-search="false"><thead><tr><th>別名</th><th>レイテンシー、128 トークン（ms）</th><th>トークン/秒</th></tr></thead><tbody><tr><td><code>qwen3vl-2b-instruct</code></td><td>4057</td><td>32</td></tr><tr><td><code>qwen25-vl-7b</code></td><td>5603</td><td>23</td></tr></tbody></table>

`qwen25-vl-7b` は、以前の Qwen2.5-VL チェックポイントです。これは、この別名の名前空間を共有し、同じブロックで実行されるため、ここに掲載されています。

{% hint style="info" %}
設定する `api_url` をデプロイ先に合わせて設定します:

* `https://serverless.roboflow.com` Serverless Hosted API 用。
* `http://localhost:9001` ローカル [Inference](https://docs.roboflow.com/deployment/self-hosted/self-hosted) サーバー用。
* あなたの [専用デプロイメント](https://docs.roboflow.com/deployment/roboflow-cloud/dedicated-deployments) プライベートエンドポイントの URL。
  {% endhint %}

Roboflow で独自の Qwen3-VL チェックポイントを学習し、モデルごとの `{workspace}/{model-slug}` の [バージョン、学習、モデル](/models/ja/versions-trainings-and-models.md)).
