

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

# Amazon SageMaker AI で PyTorch を使用するためのリソース
<a name="pytorch"></a>

Amazon SageMaker AI を使うと、PyTorch のカスタムコードを使ってモデルをトレーニングしてデプロイできます。Amazon SageMaker AI Python SDK の PyTorch 推定ツールとモデル、および SageMaker AI のオープンソースの PyTorch コンテナを使うと、SageMaker AI での PyTorch スクリプトの記述や実行がより簡単になります。次のセクションでは、SageMaker AI で PyTorch を使用する方法を学ぶために使用できるリファレンス資料を提供します。

## 何をしたいですか?
<a name="pytorch-intent"></a>

SageMaker AI で、カスタム PyTorch モデルをトレーニングしたい。  
サンプルの Jupyter ノートブックについては、Amazon SageMaker AI サンプル GitHub リポジトリにある [PyTorch のサンプルノートブック](https://github.com/awslabs/amazon-sagemaker-examples/tree/master/sagemaker-python-sdk/pytorch_mnist)を参照してください。  
ドキュメントについては、「[PyTorch によるモデルのトレーニング](https://sagemaker.readthedocs.io/en/stable/using_pytorch.html#train-a-model-with-pytorch)」を参照してください。

SageMaker AI でトレーニングした PyTorch モデルがあり、それをホスト済みのエンドポイントにデプロイしたい。  
詳細については、「[PyTorch モデルをデプロイする](https://sagemaker.readthedocs.io/en/stable/using_pytorch.html#deploy-pytorch-models)」を参照してください。

SageMaker AI の外部でトレーニングした PyTorch モデルがあり、それを SageMaker AI エンドポイントにデプロイしたい。  
詳細については、「[Deploy your own PyTorch model](https://sagemaker.readthedocs.io/en/stable/frameworks/pytorch/using_pytorch.html#bring-your-own-model)」を参照してください。

[Amazon SageMaker Python SDK](https://sagemaker.readthedocs.io/en/stable) の PyTorch クラスの API ドキュメントを見たい。  
詳細については、「[PyTorch クラス](https://sagemaker.readthedocs.io/en/stable/sagemaker.pytorch.html)」を参照してください。

SageMaker AI PyTorch コンテナリポジトリを見つけたい。  
詳細については「[SageMaker AI PyTorch コンテナ GitHub リポジトリ](https://github.com/aws/deep-learning-containers/tree/master/pytorch)」を参照してください。

 AWS Deep Learning Containers でサポートされている PyTorch バージョンに関する情報を探します。  
詳細については、「[使用可能な Deep Learning Containers イメージ](https://github.com/aws/deep-learning-containers/blob/master/available_images.md)」を参照してください。

 SageMaker AI での PyTorch スクリプトモードのトレーニングスクリプトの記述や、PyTorch スクリプトモードの推定ツールとモデルの使用に関する一般情報については、「[SageMaker Python SDK で PyTorch を使う](https://sagemaker.readthedocs.io/en/stable/using_pytorch.html)」を参照してください。