基盤モデル取得する
watsonx.ai で展開されている基盤モデルリストを取得し、有用な方法でリストをフィルタリングします。
開発方法Copy link to section
これらのプログラミング方法を使用することで、利用可能な基盤モデルに関する情報を取得できます
または、 watsonx.ai UIのリソースハブから、 基盤モデルリストを表示し、フィルタリングすることもできます。 詳細は、以下のリソースを参照してください
REST APICopy link to section
You can use the 利用可能な基盤モデルをリストアップする method of the watsonx.ai API to get information about the available foundation models.
返されるモデル情報には、コードからモデルを参照するために必要なモデルIDが含まれています。
利用可能な基盤モデルをリストアップするCopy link to section
watsonx.ai APIにある 利用可能な基盤モデルリスト メソッドは、 IBM によって提供される基盤モデル情報を watsonx.ai で取得し、すぐに推論を行うことができる。
curl -X GET \ 'https://{region}.ml.cloud.ibm.com/ml/v1/foundation_model_specs?version=2024-05-01'
Copy to clipboard
モデル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" }'
Copy to clipboard
基盤モデルをリストアップするCopy link to section
アクセス可能な基盤モデルの一覧を取得するには、次の方法を使用します。 この方法では、無記名トークンが必要です。
curl -X GET \ 'https://{region}.ml.cloud.ibm.com/ml/v4/deployments?version=2024-12-12&type=custom_foundation_model'
Copy to clipboard
オンデマンドデプロイモデルをリストアップするCopy link to section
自分でデプロイ可能な、 IBM -provided 基盤モデルリストを取得するには、以下の方法を使用する:
curl -X GET \
'https://{region}.ml.cloud.ibm.com/ml/v1/foundation_model_specs?version=2024-12-10&filters=curated'
Copy to clipboard
返されたモデルIDを使用して、 基盤モデル デプロイメントスペースデプロイします。 モデルをデプロイした後、 デプロイメントの APIエンドポイントを使用してモデルを推論することができます。
提供基盤モデルを推論するためのモデルIDの検索Copy link to section
提供されている基盤モデルのモデルIDを確認するには、以下のリンクをクリックしてください
オンデマンド基盤モデルに展開するためのモデルIDCopy link to section
From the watsonx.ai REST API, you can use the デプロイメントを作成する method to deploy the foundation model, and then use the デプロイメント > テキストを推論する method to inference your deployed foundation model.
詳細については、 REST APIを使用してオンデマンドでデプロイされた基盤モデルのデプロイと管理を参照してください。
以下のリストは、APIからデプロイオンデマンド基盤モデルデプロイする際に、
パラメーターで使用する値を示しています。{model_id}
granite-3-1-8b-base
ibm/granite-3-1-8b-base-curated
Copy to clipboard granite-3-3-8b-instruct-curated
ibm/granite-3-3-2b-instruct-curated
Copy to clipboard granite-3-3-2b-instruct-curated
ibm/granite-3-3-2b-instruct-curated
Copy to clipboard granite-3-2-8b-instruct
ibm/granite-3-2-8b-instruct-curated
Copy to clipboard granite-3-8b-base
ibm/granite-3-8b-base-curated
Copy to clipboard granite-7b-lab
ibm/granite-7b-lab-curated
Copy to clipboard granite-8b-japanese
ibm/granite-8b-japanese-curated
Copy to clipboard granite-20b-multilingual
ibm/granite-20b-multilingual-curated
Copy to clipboard granite-13b-chat-v2
ibm/granite-13b-chat-v2-curated
Copy to clipboard granite-13b-instruct-v2
ibm/granite-13b-instruct-v2-curated
Copy to clipboard granite-20b-code-base-schema-linking
ibm/granite-20b-code-base-schema-linking-curated
Copy to clipboard granite-20b-code-base-sql-gen
ibm/granite-20b-code-base-sql-gen-curated
Copy to clipboard allam-1-13b-instruct
ibm/allam-1-13b-instruct-curated
Copy to clipboard codellama-34b-instruct-hf
meta-llama/codellama-34b-instruct-hf-curated
Copy to clipboard deepseek-r1-distill-llama-8b
deepseek-ai/deepseek-r1-distill-llama-8b-curated
Copy to clipboard deepseek-r1-distill-llama-70b
deepseek-ai/deepseek-r1-distill-llama-70b-curated
Copy to clipboard eurollm-1-7b-instruct
utter-project/eurollm-1-7b-instruct-curated
Copy to clipboard eurollm-9b-instruct
utter-project/eurollm-9b-instruct-curated
Copy to clipboard flan-t5-xl-3b
google/flan-t5-xl-curated
Copy to clipboard flan-t5-xxl-11b
google/flan-t5-xxl-curated
Copy to clipboard flan-ul2-20b
google/flan-ul2-curated
Copy to clipboard llama-2-13b-chat
meta-llama/llama-2-13b-chat-curated
Copy to clipboard llama-2-70b-chat
meta-llama/llama-2-70b-chat-curated
Copy to clipboard llama-3-8b-instruct
meta-llama/llama-3-8b-instruct-curated
Copy to clipboard llama-3-70b-instruct
meta-llama/llama-3-70b-instruct-curated
Copy to clipboard llama-3-1-8b
meta-llama/llama-3-1-8b-curated
Copy to clipboard llama-3-1-8b-instruct
meta-llama/llama-3-1-8b-instruct-curated
Copy to clipboard llama-3-2-11b-vision-instruct
meta-llama/llama-3-2-11b-vision-instruct-curated
Copy to clipboard llama-3-3-70b-instruct
meta-llama/llama-3-3-70b-instruct-curated
Copy to clipboard llama-3-3-70b-instruct-hf
meta-llama/llama-3-3-70b-instruct-hf-curated
Copy to clipboard mixtral-8x7b-base
mistralai/mixtral-8x7b-base-curated
Copy to clipboard mixtral-8x7b-instruct-v01
mistralai/mixtral-8x7b-instruct-v01-curated
Copy to clipboard mistral-nemo-instruct-2407
mistralai/mistral-nemo-instruct-2407-curated
Copy to clipboard mt0-xxl-13b
bigscience/mt0-xxl-curated
Copy to clipboard poro-34b-chat
lumiopen/poro-34b-chat-curated
Copy to clipboard
親トピック: 生成 AI ソリューションのコーディング