

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# サポートされているフレームワーク、 AWS リージョンインスタンスタイプ、テスト済みモデル
<a name="training-compiler-support"></a>

**重要**  
Amazon Web Services (AWS) は、SageMaker Training Compiler の新しいリリースやバージョンがないことを発表しました。SageMaker Training では、既存の AWS Deep Learning Containers (DLC) を通じて SageMaker Training Compiler を引き続き使用できます。既存の DLCs は引き続きアクセス可能ですが、 [AWS Deep Learning Containers Framework サポートポリシー](https://docs.aws.amazon.com/deep-learning-containers/latest/devguide/support-policy.html)に従って AWS、 からパッチや更新を受け取ることはできなくなります。

SageMaker Training Compiler を使用する前に、選択したフレームワークがサポートされているかどうか、 でインスタンスタイプが使用可能かどうか AWS アカウント、 AWS アカウント がサポートされている のいずれかにあるかどうかを確認します AWS リージョン。

**注記**  
SageMaker Training Compiler は SageMaker Python SDK v2.70.0 以降で使用できます。

## サポートされるフレームワーク
<a name="training-compiler-supported-frameworks"></a>

SageMaker Training Compiler は、次の深層学習フレームワークをサポートしており、 AWS 深層学習コンテナを通じて利用できます。

**Topics**
+ [PyTorch](#training-compiler-supported-frameworks-pytorch)
+ [TensorFlow](#training-compiler-supported-frameworks-tensorflow)

### PyTorch
<a name="training-compiler-supported-frameworks-pytorch"></a>



- **PyTorch**
  - **フレームワークのバージョン:** PyTorch v1.13.1 / **深層学習コンテナの URI:** 763104351884.dkr.ecr.{{<region>}}.amazonaws.com/pytorch-trcomp-training:1.12.0-gpu-py38-cu113-ubuntu20.04-sagemaker / **Docker カスタマイズ用に拡張可能:** いいえ
  - **フレームワークのバージョン:** PyTorch v1.12.0 / **深層学習コンテナの URI:** 763104351884.dkr.ecr.{{<region>}}.amazonaws.com/pytorch-trcomp-training:1.13.1-gpu-py39-cu117-ubuntu20.04-sagemaker / **Docker カスタマイズ用に拡張可能:** いいえ

- **Hugging Face Transformer を使用する PyTorch**
  - **フレームワークのバージョン:** Transformers v4.21.1<br />PyTorch v1.11.0 / **深層学習コンテナの URI:** 763104351884.dkr.ecr.{{<region>}}.amazonaws.com/huggingface-pytorch-trcomp-training:1.11.0-transformers4.21.1-gpu-py38-cu113-ubuntu20.04 / **Docker カスタマイズ用に拡張可能:** いいえ
  - **フレームワークのバージョン:** Transformers v4.17.0<br />PyTorch v1.10.2 / **深層学習コンテナの URI:** 763104351884.dkr.ecr.{{<region>}}.amazonaws.com/huggingface-pytorch-trcomp-training:1.10.2-transformers4.17.0-gpu-py38-cu113-ubuntu20.04 / **Docker カスタマイズ用に拡張可能:** いいえ
  - **フレームワークのバージョン:** Transformers v4.11.0<br />PyTorch v1.9.0 / **深層学習コンテナの URI:** 763104351884.dkr.ecr.{{<region>}}.amazonaws.com/huggingface-pytorch-training-comp:1.9.0-transformers4.11.0-gpu-py38-cu111-ubuntu20.04 / **Docker カスタマイズ用に拡張可能:** いいえ



### TensorFlow
<a name="training-compiler-supported-frameworks-tensorflow"></a>



- **TensorFlow**
  - **フレームワークのバージョン:** TensorFlow v2.11.0 / **深層学習コンテナの URI:** 763104351884.dkr.ecr.{{<region>}}.amazonaws.com/tensorflow-training:2.11.0-gpu-py39-cu112-ubuntu20.04-sagemaker / **Docker のカスタマイズ用に拡張可能:** はい
  - **フレームワークのバージョン:** TensorFlow v2.10.0 / **深層学習コンテナの URI:** 763104351884.dkr.ecr.{{<region>}}.amazonaws.com/tensorflow-training:2.10.0-gpu-py39-cu112-ubuntu20.04-sagemaker / **Docker のカスタマイズ用に拡張可能:** はい
  - **フレームワークのバージョン:** TensorFlow v2.9.1 / **深層学習コンテナの URI:** 763104351884.dkr.ecr.{{<region>}}.amazonaws.com/tensorflow-training:2.9.1-gpu-py39-cu112-ubuntu20.04-sagemaker / **Docker のカスタマイズ用に拡張可能:** はい

- **Hugging Face Transformer を使用する TensorFlow**
  - **フレームワークのバージョン:** Transformers v4.17.0<br />TensorFlow v2.6.3 / **深層学習コンテナの URI:** 763104351884.dkr.ecr.{{<region>}}.amazonaws.com/huggingface-tensorflow-trcomp-training:2.6.3-transformers4.17.0-gpu-py38-cu112-ubuntu20.04 / **Docker のカスタマイズ用に拡張可能:** いいえ
  - **フレームワークのバージョン:** Transformers v4.11.0<br />TensorFlow v2.5.1 / **深層学習コンテナの URI:** 763104351884.dkr.ecr.{{<region>}}.amazonaws.com/huggingface-tensorflow-training-comp:2.5.1-transformers4.11.0-gpu-py37-cu112-ubuntu18.04 / **Docker のカスタマイズ用に拡張可能:** いいえ



詳細については、「AWS Deep Learning Containers GitHub repository」の「[Available Images](https://github.com/aws/deep-learning-containers/blob/master/available_images.md)」を参照してください。

## AWS リージョン
<a name="training-compiler-availablity-zone"></a>

[SageMaker Training Compiler Containers](https://github.com/aws/deep-learning-containers/blob/master/available_images.md#sagemaker-training-compiler-containers) は、中国リージョンを除く [AWS Deep Learning Containers](https://github.com/aws/deep-learning-containers/blob/master/available_images.md) AWS リージョン が稼働している で利用できます。

## サポートされるインスタンスタイプ
<a name="training-compiler-supported-instance-types"></a>

SageMaker Training Compiler は、次の ML インスタンスタイプでテストされ、サポートしています。
+ P4 インスタンス
+ P3 インスタンス
+ G4dn インスタンス
+ G5 インスタンス

インスタンスタイプの仕様については、**「Amazon EC2 インスタンスタイプ」ページ**の[「高速コンピューティング」](https://aws.amazon.com/ec2/instance-types/)のセクションを参照してください。インスタンスの料金の詳細については、[「Amazon SageMaker の料金」](https://aws.amazon.com/sagemaker/pricing/)を参照してください。

次のようなエラーメッセージが表示された場合は、「[Request a service quota increase for SageMaker AI resources](https://docs.aws.amazon.com/sagemaker/latest/dg/regions-quotas.html#service-limit-increase-request-procedure)」の手順に従います。

```
ResourceLimitExceeded: An error occurred (ResourceLimitExceeded) when calling
the CreateTrainingJob operation: The account-level service limit 'ml.p3dn.24xlarge
for training job usage' is 0 Instances, with current utilization of 0 Instances
and a request delta of 1 Instances.
Please contact AWS support to request an increase for this limit.
```

## テスト済みモデル
<a name="training-compiler-tested-models"></a>

次の表に、SageMaker Training Compiler でテスト済みのモデルのリストを示します。参考までに、メモリに収まる最大バッチサイズも、他のトレーニングパラメータと共に示されています。SageMaker Training Compiler は、モデルトレーニングプロセスのメモリフットプリントを変えられます。その結果、トレーニングプロセス中により大きなバッチサイズを使用できる場合が多く、総トレーニング時間を削減できます。場合によっては、SageMaker Training Compiler がキャッシュをインテリジェントに促進して、GPU に収まる最大バッチサイズを小さくします。モデルのハイパーパラメータを再調整して、ケースに最適なバッチサイズを見つける必要があります。時間を節約するために、以下の参照テーブルを使用して、ユースケースに適した開始点となるバッチサイズを調べます。

**注記**  
バッチサイズは、それぞれのインスタンスタイプで個々の GPU に適合するローカルなバッチサイズです。バッチサイズを変更するときは、学習レートも調整してください。

### PyTorch 1.13.1
<a name="training-compiler-tested-models-pt1131"></a>

**自然言語処理 (NLP) モデル**

以下のモデルは、表示されているとおり、シングルまたはマルチ GPU コアと自動混合精度 (AMP) を備えたシングルノードとマルチノードのすべての組み合わせについて、トレーニングジョブでテストされています。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

**コンピュータビジョン (CV) モデル**

表示されているとおり、自動混合精度 (AMP) を備えた [TensorFlow モデルガーデン](https://github.com/tensorflow/models)を使用してテストしました。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

### PyTorch 1.12.0
<a name="training-compiler-tested-models-pt1120"></a>

**自然言語処理 (NLP) モデル**

以下のモデルは、表示されているとおり、シングルまたはマルチ GPU コアと自動混合精度 (AMP) を備えたシングルノードとマルチノードのすべての組み合わせについて、トレーニングジョブでテストされています。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

### TensorFlow 2.11.0
<a name="training-compiler-tested-models-tf2110"></a>

**コンピュータビジョン (CV) モデル**

表示されているとおり、自動混合精度 (AMP) を備えた [TensorFlow モデルガーデン](https://github.com/tensorflow/models)を使用してテストしました。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

**自然言語処理 (NLP) モデル**

表示されているとおり、`Sequence_Len=128` および自動混合精度 (AMP) を備えた [Transformer モデル](https://github.com/huggingface/transformers)を使用してテストしました。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

### TensorFlow 2.10.0
<a name="training-compiler-tested-models-tf2100"></a>

**コンピュータビジョン (CV) モデル**

表示されているとおり、自動混合精度 (AMP) を備えた [TensorFlow モデルガーデン](https://github.com/tensorflow/models)を使用してテストしました。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

**自然言語処理 (NLP) モデル**

表示されているとおり、`Sequence_Len=128` および自動混合精度 (AMP) を備えた [Transformer モデル](https://github.com/huggingface/transformers)を使用してテストしました。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

### TensorFlow 2.9.1
<a name="training-compiler-tested-models-tf291"></a>

自動混合精度 (AMP) を備えた [TensorFlow モデルガーデン](https://github.com/tensorflow/models)を使用してテストしました。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

\* アスタリスク記号 (\*) が付いているバッチサイズは、SageMaker Training Compiler 開発チームがテストした最大のバッチサイズを示しています。マークされたセルの場合、インスタンスは表示されているものよりも大きなバッチサイズに対応できる場合があります。

### PyTorch 1.11.0 を備えた Transformers 4.21.1
<a name="training-compiler-tested-models-hf421-pt111"></a>

`Sequence_Len=512` および自動混合精度 (AMP) でテスト済みです。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

### PyTorch 1.10.2 を備えた Transformers 4.17.0
<a name="training-compiler-tested-models-hf417-pt110"></a>

`Sequence_Len=512` および自動混合精度 (AMP) でテスト済みです。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

### PyTorch 1.9.0 を備えた Transformers 4.11.0
<a name="training-compiler-tested-models-hf411-pt190"></a>

`Sequence_Len=512` および自動混合精度 (AMP) でテスト済みです。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)

### TensorFlow 2.6.3 を備えた Transformers 4.17.0
<a name="training-compiler-tested-models-hf417-tf263"></a>

`Sequence_Len=128` および自動混合精度 (AMP) でテスト済みです。


| モデル  | インスタンスタイプ | ネイティブフレームワークのバッチサイズ | Training Compiler のバッチサイズ | 
| --- | --- | --- | --- | 
| albert-base-v2 | ml.g4dn.16xlarge | 136 | 208 | 
| albert-base-v2 | ml.g5.4xlarge | 219 | 312 | 
| albert-base-v2 | ml.p3.2xlarge | 152 | 208 | 
| albert-base-v2 | ml.p3.8xlarge | 152 | 192 | 
| bert-base-uncased | ml.g4dn.16xlarge | 120 | 101 | 
| bert-base-uncased | ml.g5.4xlarge | 184 | 160 | 
| bert-base-uncased | ml.p3.2xlarge | 128 | 108 | 
| bert-large-uncased | ml.g4dn.16xlarge | 37 | 28 | 
| bert-large-uncased | ml.g5.4xlarge | 64 | 55 | 
| bert-large-uncased | ml.p3.2xlarge | 40 | 32 | 
| camembert-base | ml.g4dn.16xlarge | 96 | 100 | 
| camembert-base | ml.g5.4xlarge | 190 | 160 | 
| camembert-base | ml.p3.2xlarge | 129 | 108 | 
| camembert-base | ml.p3.8xlarge | 128 | 104 | 
| distilbert-base-uncased | ml.g4dn.16xlarge | 210 | 160 | 
| distilbert-base-uncased | ml.g5.4xlarge | 327 | 288 | 
| distilbert-base-uncased | ml.p3.2xlarge | 224 | 196 | 
| distilbert-base-uncased | ml.p3.8xlarge | 192 | 182 | 
| google\_electra-small-discriminator | ml.g4dn.16xlarge | 336 | 288 | 
| google\_electra-small-discriminator | ml.g5.4xlarge | 504 | 384 | 
| google\_electra-small-discriminator | ml.p3.2xlarge | 352 | 323 | 
| gpt2 | ml.g4dn.16xlarge | 89 | 64 | 
| gpt2 | ml.g5.4xlarge | 140 | 146 | 
| gpt2 | ml.p3.2xlarge | 94 | 96 | 
| gpt2 | ml.p3.8xlarge | 96 | 88 | 
| jplu\_tf-xlm-roberta-base | ml.g4dn.16xlarge | 52 | 16 | 
| jplu\_tf-xlm-roberta-base | ml.g5.4xlarge | 64 | 44 | 
| microsoft\_mpnet-base | ml.g4dn.16xlarge | 120 | 100 | 
| microsoft\_mpnet-base | ml.g5.4xlarge | 192 | 160 | 
| microsoft\_mpnet-base | ml.p3.2xlarge | 128 | 104 | 
| microsoft\_mpnet-base | ml.p3.8xlarge | 130 | 92 | 
| roberta-base | ml.g4dn.16xlarge | 108 | 64 | 
| roberta-base | ml.g5.4xlarge | 176 | 142 | 
| roberta-base | ml.p3.2xlarge | 118 | 100 | 
| roberta-base | ml.p3.8xlarge | 112 | 88 | 

### TensorFlow 2.5.1 を備えた Transformers 4.11.0
<a name="training-compiler-tested-models-hf411-tf251"></a>

`Sequence_Len=128` および自動混合精度 (AMP) でテスト済みです。

[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/training-compiler-support.html)