0 / 0

基盤モデル情報の取得

最終更新: 2025年5月27日
基盤モデル情報の取得

watsonx.ai で展開されている基盤モデルリストを取得し、有用な方法でリストをフィルタリングします。

開発方法

これらのプログラミング方法を使えば、利用可能な基盤モデル情報を得ることができる:

または、 watsonx.ai UIのリソースハブから、 基盤モデルリストを表示し、フィルタリングすることもできます。 詳細は以下の資料を参照:

REST API

watsonx.ai API の 利用可能な基盤モデルリスト メソッドを使用して、利用可能な基盤モデル情報を取得できます。

返されるモデル情報には、コードからモデルを参照するために必要なモデルIDが含まれています。

利用可能な基盤モデルリスト

watsonx.ai APIにある 利用可能な基盤モデルリスト メソッドは、 IBM で提供される基盤モデル情報を watsonx.ai で取得し、すぐに推論を行うことができる。

curl -X GET \
  'https://{region}.ml.cloud.ibm.com/ml/v1/foundation_model_specs?version=2024-05-01'

モデルIDを取得したら、次のようにコード内でモデルIDを参照することができます:

curl --request POST 'https://{cluster_url}/ml/v1/text/generation?version=2023-05-02'
-H 'Authorization: Bearer eyJhbGciOiJSUzUxM...'
-H 'Content-Type: application/json'
-H 'Accept: application/json'
--data-raw '{
  "model_id": "google/flan-t5-xxl",
  "input": "Tell me a story",
  "project_id": "63dc4cf1-252f-424b-b52d-5cdd9814987f"
}'

カスタム・ 基盤モデルリスト

アクセス可能なデプロイ済みカスタム・ 基盤モデル モデルのリストを取得するには、以下のメソッドを使用します。 この方法はベアラートークンを必要とする。

curl -X GET \
  'https://{region}.ml.cloud.ibm.com/ml/v4/deployments?version=2024-12-12&type=custom_foundation_model'

オンデマンド・デプロイ・モデルの一覧

自分でデプロイ可能な、 IBM -provided 基盤モデルリストを取得するには、以下の方法を使用する:

curl -X GET \
  'https://{region}.ml.cloud.ibm.com/ml/v1/foundation_model_specs?version=2024-12-10&filters=curated'

返されたモデル ID を使用して、オンデマンド配備基盤モデル デプロイメント・スペース配備します。 モデルをデプロイした後、 デプロイメント APIエンドポイントを使用してモデルを推論することができます。

提供された基盤モデル推論するためのモデルIDを見つける

提供された基盤モデルモデルのモデルIDを調べるには、以下のリンクをたどってください:

オンデマンド基盤モデルモデルID

注意モデルIDからオンデマンド配備の基盤モデル推論することはできません。 モデルIDはモデルをデプロイするためだけに使用します。 モデルをデプロイした後、 デプロイメント APIエンドポイントを使用してモデルを推論することができます。

watsonx.ai REST APIから、 デプロイメント作成する メソッドを使って基盤モデルデプロイし、 デプロイメント > テキストを推測する メソッドを使ってデプロイされた基盤モデルモデルを推論することができます。

詳細は REST APIを使用してオンデマンドでデプロイされた基盤モデルデプロイと管理 を参照。

以下のリストは、APIからデプロイオンデマンド基盤モデルデプロイする際に、 {model_id} パラメーターで使用する値を示しています。

  • granite-3-1-8b-base

    ibm/granite-3-1-8b-base-curated
    
  • granite-3-3-8b-instruct-curated

    ibm/granite-3-3-2b-instruct-curated
    
  • granite-3-3-2b-instruct-curated

    ibm/granite-3-3-2b-instruct-curated
    
  • granite-3-2-8b-instruct

    ibm/granite-3-2-8b-instruct-curated
    
  • granite-3-8b-base

    ibm/granite-3-8b-base-curated
    
  • granite-7b-lab

    ibm/granite-7b-lab-curated
    
  • granite-8b-japanese

    ibm/granite-8b-japanese-curated
    
  • granite-20b-multilingual

    ibm/granite-20b-multilingual-curated
    
  • granite-13b-chat-v2

    ibm/granite-13b-chat-v2-curated
    
  • granite-13b-instruct-v2

    ibm/granite-13b-instruct-v2-curated
    
  • granite-20b-code-base-schema-linking

    ibm/granite-20b-code-base-schema-linking-curated
    
  • granite-20b-code-base-sql-gen

    ibm/granite-20b-code-base-sql-gen-curated
    
  • allam-1-13b-instruct

    ibm/allam-1-13b-instruct-curated
    
  • codellama-34b-instruct-hf

    meta-llama/codellama-34b-instruct-hf-curated
    
  • deepseek-r1-distill-llama-8b

    deepseek-ai/deepseek-r1-distill-llama-8b-curated
    
  • deepseek-r1-distill-llama-70b

    deepseek-ai/deepseek-r1-distill-llama-70b-curated
    
  • eurollm-1-7b-instruct

    utter-project/eurollm-1-7b-instruct-curated
    
  • eurollm-9b-instruct

    utter-project/eurollm-9b-instruct-curated
    
  • flan-t5-xl-3b

    google/flan-t5-xl-curated
    
  • flan-t5-xxl-11b

    google/flan-t5-xxl-curated
    
  • flan-ul2-20b

    google/flan-ul2-curated
    
  • llama-2-13b-chat

    meta-llama/llama-2-13b-chat-curated
    
  • llama-2-70b-chat

    meta-llama/llama-2-70b-chat-curated
    
  • llama-3-8b-instruct

    meta-llama/llama-3-8b-instruct-curated
    
  • llama-3-70b-instruct

    meta-llama/llama-3-70b-instruct-curated
    
  • llama-3-1-8b

    meta-llama/llama-3-1-8b-curated
    
  • llama-3-1-8b-instruct

    meta-llama/llama-3-1-8b-instruct-curated
    
  • llama-3-1-70b

    meta-llama/llama-3-1-70b-curated
    
  • llama-3-2-11b-vision-instruct

    meta-llama/llama-3-2-11b-vision-instruct-curated
    
  • llama-3-3-70b-instruct

    meta-llama/llama-3-3-70b-instruct-curated
    
  • llama-3-3-70b-instruct-hf

    meta-llama/llama-3-3-70b-instruct-hf-curated
    
  • mixtral-8x7b-base

    mistralai/mixtral-8x7b-base-curated
    
  • mixtral-8x7b-instruct-v01

    mistralai/mixtral-8x7b-instruct-v01-curated
    
  • mistral-nemo-instruct-2407

    mistralai/mistral-nemo-instruct-2407-curated
    
  • mt0-xxl-13b

    bigscience/mt0-xxl-curated
    
  • poro-34b-chat

    lumiopen/poro-34b-chat-curated
    

親トピック 生成的AIソリューションのコーディング