re:Invent2017 で発表された新サービスについて JAWS-UG AI 支部で LT しました
機械学習エンジニアのための新サービスDeepLens & SageMakerJAWS-UG AI #6 @ Dec 14, 2017Ryo NAKAMARU, SUPINF Inc. / Rescale, Inc.
View Slide
Amazon SageMaker
3
SageMaker4設計 学習 デプロイ• ワンクリック起動Jupyter notebook• プリセットされた機械学習アルゴリズム群▶ ▶• ジョブを定義し 学習開始• 並列分散学習• ハイパーパラメタ 最適化• シンプルな API で モデルをデプロイ• フルマネージドな推論エンドポイントの提供
SageMaker• 一部機能だけの利用も OK‣ 設計+学習機能だけ使う‣ 推論エンドポイントだけ使う etc..• 抽象度の高い SageMaker API• Docker を使えば学習・推論のカスタマイズも5
SageMaker API6• 学習from sagemaker import KMeanskmeans = KMeans(k=10,data_location=s3_data_location,output_path=s3_output_location,train_instance_type='ml.c4.8xlarge',train_instance_count=4,role=execution_iam_role)kmeans.fit(kmeans.record_set(train_set[0]))
SageMaker API• デプロイ7predictor = kmeans.deploy(instance_type='ml.m4.xlarge',initial_instance_count=1)
SageMaker API8• 推論result = predictor.predict(valid_set[0][0:100])
SageMaker inference bot9
AWS DeepLens
11
DeepLens での推論12DeepLensraw dataLocal動画生データ
DeepLens での推論13DeepLensraw dataLocalresultsGreengrassInference with推論
DeepLens での推論14DeepLensraw dataLocalresultsAWSGreengrassIoT Rule LambdaInference with MQTT「ホットドックがあったよ」
DeepLens へのデプロイ15DeepLens AWSSageMakerTrainedbyEC2Model学習
DeepLens へのデプロイ16DeepLens AWSDeepLens SageMakera projectModelModelモデルを インポート
DeepLens へのデプロイ17DeepLens AWSDeepLensa projectModel推論 & AWS IoT連携の実装
DeepLens へのデプロイ18DeepLens AWSGreengrassInference withDeepLensa projectModelデプローイ
DeepLens• 開発者向けデバイス‣ 動画を使う深層学習をローカルで手軽に回せる‣ デバイスへのデプロイもとても簡単!• HD ビデオ & 秒間 10 億回の浮動小数点数演算能力• 249 USD で予約受付中(Amazon.com)19
中丸 良 @pottava• AWS Certified Solutions Architect, DevOps Engineer - Professional• CTO at SUPINF Inc• Solutions Architect at Rescale, Inc.Profile20
Containerize your app!21• クラウド / コンテナ を強みにした受託開発運用、コンサルティング• 2015 年から Docker の本番運用を開始・豊富な CI / CD 事例• スピンフ、と読みます・・
Cloud HPC with22• クラウド HPC シミュレーションプラットフォームの提供• 2011 年初頭に設立、Peter Thiel や Microsoft から出資• スケーラブルなシミュレーションや機械学習を!
ご静聴ありがとうございました :)参考文献:• AWS re:Invent 2017: Introducing Amazon SageMaker (MCL365)https://www.youtube.com/watch?v=4pbXdsjZx_k• Amazon SageMaker – 機械学習を加速する | Amazon Web Servicesブログ https://aws.amazon.com/jp/blogs/news/amazon-sagemaker/• Extend AWS DeepLens to Send SMS Notifications with AWSLambda | AWS AI Blog https://aws.amazon.com/jp/blogs/ai/extend-aws-deeplens-to-send-sms-notifications-with-aws-lambda/