LoginSignup
0
0

はじめに

日頃、仕事でAWSのAmazon Sagemaker Studioを使っています。
使用目的は
・データの集計やリスト作成
・機械学習モデルの作成
の2つがあり、9:1くらいで集計作業が多いです。

⇒意思決定支援のためのデータ分析が主目的のため

Amazon Sagemaker Studioでかかる費用

費用の仕組みとコスパ対策

インスタンス と呼ばれる、仮想PCを使用した分のみ料金が発生します。
インスタンスは、用途・作業内容・データ量に応じて、いろいろな種類が選択できるようになっています。
よって、必要十分なインスタンスを選択することで、コストパフォーマンスを改善することができます。

私は、メモリ最適化を使用することでコスパよく使用しています💡
▼理由
同一データ量を読み込むときに、もっとも安く利用できる

例:256GiBを利用したい
 スタンダード:ml.m5.16xlarge  737JPY
 メモリ最適化:ml.r5.8xlarge  452JPY

料金一覧

上記AWSのサイトに、費用の記載があります。

下記に種類と費用感を、まとめてみます!
※リージョンはアジアパシフィック(東京)、2024年6月22日時点です。
※1USD=155円 で計算しています。

【インスタンス種類】
・スタンダードインスタンス : 通常タスク向けインスタンス
・コンピューティング最適化 : 計算処理に比重を置いたインスタンス
・メモリ最適化       : メモリに比重を置いたインスタンス
・高速コンピューティング  : スピードに比重を置いたインスタンス

vCPU :コード実行に使用するCPUの数
メモリ:読み込み可能なデータの量(GiB=GBと思ってOKです)

スタンダードインスタンス

インスタンス vCPU メモリ 時間あたりの料金 (USD) 時間あたりの料金 (JPY)
ml.t3.medium 2 4 GiB 0.065USD 10JPY
ml.t3.large 2 8 GiB 0.131USD 20JPY
ml.t3.xlarge 4 16 GiB 0.261USD 40JPY
ml.t3.2xlarge 8 32 GiB 0.522USD 81JPY
ml.m5.large 2 8 GiB 0.149USD 23JPY
ml.m5.xlarge 4 16 GiB 0.298USD 46JPY
ml.m5.2xlarge 8 32 GiB 0.595USD 92JPY
ml.m5.4xlarge 16 64 GiB 1.19USD 184JPY
ml.m5.8xlarge 32 128 GiB 2.381USD 369JPY
ml.m5.12xlarge 48 192 GiB 3.571USD 554JPY
ml.m5.16xlarge 64 256 GiB 4.762USD 737JPY
ml.m5.24xlarge 96 384 GiB 7.142USD 1,107JPY
ml.m5d.large 2 8 GiB 0.175USD 27JPY
ml.m5d.xlarge 4 16 GiB 0.35USD 54JPY
ml.m5d.2xlarge 8 32 GiB 0.701USD 109JPY
ml.m5d.4xlarge 16 64 GiB 1.402USD 217JPY
ml.m5d.8xlarge 32 128 GiB 2.803USD 434JPY
ml.m5d.12xlarge 48 192 GiB 4.205USD 652JPY
ml.m5d.16xlarge 64 256 GiB 5.606USD 870JPY
ml.m5d.24xlarge 96 384 GiB 8.41USD 1,304JPY

コンピューティング最適化

インスタンス vCPU メモリ 時間あたりの料金 (USD) 時間あたりの料金 (JPY)
ml.c5.large 2 4 GiB 0.128USD 20JPY
ml.c5.xlarge 4 8 GiB 0.257USD 40JPY
ml.c5.2xlarge 8 16 GiB 0.514USD 80JPY
ml.c5.4xlarge 16 32 GiB 1.027USD 159JPY
ml.c5.9xlarge 36 72 GiB 2.311USD 358JPY
ml.c5.12xlarge 48 96 GiB 3.082USD 478JPY
ml.c5.18xlarge 72 144 GiB 4.622USD 716JPY

メモリ最適化

インスタンス vCPU メモリ 時間あたりの料金 (USD) 時間あたりの料金 (JPY)
ml.r5.large 2 16 GiB 0.182USD 28JPY
ml.r5.xlarge 4 32 GiB 0.365USD 57JPY
ml.r5.2xlarge 8 64 GiB 0.73USD 113JPY
ml.r5.4xlarge 16 128 GiB 1.459USD 226JPY
ml.r5.8xlarge 32 256 GiB 2.918USD 452JPY
ml.r5.12xlarge 48 384 GiB 4.378USD 679JPY
ml.r5.16xlarge 64 512 GiB 5.837USD 904JPY
ml.r5.24xlarge 96 768 GiB 8.755USD 1,357JPY

高速コンピューティング

インスタンス vCPU メモリ 時間あたりの料金 (USD) 時間あたりの料金 (JPY)
ml.p3.2xlarge 8 61 GiB 5.242USD 813JPY
ml.p3.8xlarge 32 244 GiB 20.131USD 3,110JPY
ml.p3.16xlarge 64 488 GiB 38.585USD 5,981JPY
ml.p3dn.24xlarge 96 768 GiB 49.20USD 7,626JPY
ml.g5.xlarge 4 16 GiB 2.04USD 316JPY
ml.g5.2xlarge 8 32 GiB 2.20USD 341JPY
ml.g5.4xlarge 16 64 GiB 2.94USD 456JPY
ml.g5.8xlarge 32 128 GiB 4.44USD 688JPY
ml.g5.12xlarge 48 192 GiB 10.28USD 1,593JPY
ml.g5.16xlarge 64 256 GiB 7.43USD 1,152JPY
ml.g5.24xlarge 96 384 GiB 14.76USD 2,288JPY
ml.g5.48xlarge 192 768 GiB 29.53USD 4,577JPY
ml.g4dn.xlarge 4 16 GiB 0.994USD 154JPY
ml.g4dn.2xlarge 8 32 GiB 1.269USD 197JPY
ml.g4dn.4xlarge 16 64 GiB 2.031USD 315JPY
ml.g4dn.8xlarge 32 128 GiB 3.673USD 569JPY
ml.g4dn.12xlarge 48 192 GiB 6.601USD 1,023JPY
ml.g4dn.16xlarge 64 256 GiB 7.344USD 1,138JPY

まとめ

いかがでしたでしょうか?
日本円で見たときに、1時間で1千円以上かかるようなインスタンスを使用するのは、なかなか勇気がいりますね・・・👹

うっかり消し忘れてまるっと 土日の間 使用料がかかってしまおうものなら・・・
会社の利益が吹っ飛びかねないですね!笑
(笑い事じゃありません・・・)

みなさま、インスタンス選びは慎重に!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0