Upgrade to Pro — share decks privately, control downloads, hide ads and more …

make-your-deaplearning-apps-on-aws-201703

 make-your-deaplearning-apps-on-aws-201703

JAWS DAYS 2017 での登壇資料です。

ryo nakamaru

March 12, 2017
Tweet

More Decks by ryo nakamaru

Other Decks in Technology

Transcript

  1. #jawsdays #jd2017_d தؙ ྑ @pottava SUPINF Inc. (AWS Certified) SA,

    DevOps Engineer Pro ❤ Amazon ECS, AWS Batch, IAM
  2. #jawsdays #jd2017_d ͜ΜͳձࣾͰ͢ • AWS Λத৺ʹɺΫϥ΢υωΟςΟϒͳ։ൃɾӡ༻อकͷडୗ • Docker Ͱͷ։ൃɾӡ༻ ͕େಘҙ

    • GPU, Jupyter, Mesos.. Պֶٕज़ܭࢉ؀ڥͷߏஙɾอकडୗ • ͦͷଞ Web αʔϏεɾωΟςΟϒΞϓϦɾۀ຿γεςϜɾɾ
  3. #jawsdays #jd2017_d AWS ϗϫΠτϖʔύʔ͘Μ • σΟʔϓϥʔχϯάΛར༻ʢLSTM with MXNetʣ • AWS

    നॻɺPDF 27 ϑΝΠϧΛֶशσʔλʹར༻ • ग़ͩ͠ͷ਺୯ޠ͔ΒɺͦΕΒ͍͠ޙଓͷจষΛࣗಈੜ੒
  4. #jawsdays #jd2017_d γεςϜߏ੒ AWS Batch S3 2.ֶशδϣϒ౤ೖ ΤϯδχΞ SpotFleet ECR

    DeepLearning AMI v2 1.ֶशσʔλ౤ೖ 3.δϣϒεέδϡʔϧ 4.σʔλऔಘ & ֶश 5.݁ՌϞσϧΛอଘ ҰൠϢʔβ AWS Lambda 7.Ϟσϧऔಘ & ਪ࿦ APIGateway 6.ਪ࿦ϦΫΤετ 8.݁ՌԠ౴ ECS EC2 g2.2xlarge EC2 g2.2xlarge
  5. #jawsdays #jd2017_d ΄΅શ෦ެ։͠·ͨ͠ • PDF 1 ຕఔ౓ͳΒ 10 ෼Ͱࢼͤ·͢ •

    AWS ΁ͷσϓϩΠπʔϧ܈͸Ұ෦ܝࡌ ʢશ෦ࢿྉԽ͢Δͷ͸೉ّͳ΋ͷͰ..ʣ https://github.com/pottava/mxnet-char-lstm
  6. #jawsdays #jd2017_d ͳΔ΄ͲΘ͔ΒΜ • ެ։͞Εͨࢿྉ͚ͩͰ͸Α͘෼͔Βͳ͍ɻ͸͍ɾɾ • Qiita Ͱ΋৘ใൃ৴͠·͢ • σΟʔϓϥʔχϯάͰ΋

    AWS ͷઃܭͰ΋ • Twitter ͳͲͰฉ͍ͯ΋Β͑Ε͹༨ྗ͋Δͱ͖౴͑·͢ :) • ͓ؾܰʹ @pottava ·Ͱ
  7. #jawsdays #jd2017_d Ͳ͏࡞ͬͨͷ͔ 1. PDF Λద౰ʹμ΢ϯϩʔυʢσʔλऩूɺ5 ෼ʣ 2. ֶश͠΍͍͢Α͏ʹσʔλΛՃ޻ʢલॲཧɺ30 ෼ʣ

    3. LSTM ωοτϫʔΫʹ౤ೖʢֶशɺ5 ࣌ؒʣ 4. REST API Λ࣮૷ʢਪ࿦ɺ45 ෼ʣ ʢ + ຊࢫͰͳ͍ AWS ͷઃܭɺϑϨʔϜϫʔΫͷΩϟονΞοϓʹ૬Ԡͷ࣌ؒʣ
  8. #jawsdays #jd2017_d Α͘ݟΔ DL ͷྫ • Amazon Rekognition ͷҰൠ෺ମݕग़͸ɺ͖ͬͱ CNNɻ

    • ৞ΈࠐΈχϡʔϥϧωοτϫʔΫʢCNNʣ ෳ਺ͷ૚͕͋Γ·͢Ͷʙ
  9. #jawsdays #jd2017_d Jupyter as a Service • ࢼߦࡨޡɺݚڀͷڞ༗ͷελϯμʔτͱ͍͑͹ Jupyter •

    ࠷ۙྲྀߦͷػೳ֦ுɿΫϥ΢υͷσʔλετΞͱͷ࿈ܞ • σʔλͷநग़ɺม׵ɾՃ޻ɺͦͷऔΓࠐΈʢETLʣ • AWS ͸Ұาग़஗Ε͍ͯΔ΋ͷͷɾɾ
  10. #jawsdays #jd2017_d Google Cloud Datalab • TensorFlow ✖ BigQuery ͷྫ

    • ͦͷૢ࡞ UI ͱͯ͠ Jupyter ɹϕʔεͷ Cloud Datalab • ϩʔΧϧ൛·Ͱ͋Δɾɾ
  11. #jawsdays #jd2017_d AWS Batch • Ϛωʔδυ όονίϯϐϡʔςΟϯά؀ڥ • Ϋϥελ؅ཧɺΩϡʔɺεέδϡʔϥΛ AWS

    ʹ͓೚ͤ • Ωϡʔ͕ਂ͘ͳΔͱࣗಈͰεέʔϧʂʂ • SpotFleet ͱ౷߹͞Ε͍ͯΔʂ • Docker ϕʔεʹͳ͓ͬͯΓɺLinux ܥͷॲཧ͸ͳΜͰ΋ಈ͘
  12. #jawsdays #jd2017_d AWS Batch • ࠓճͷΑ͏ʹɺGPU Λ࢖͍͍ͨ / ಠࣗ AMI

    Λ࢖͍͍ͨ • ΋͘͠͸ t2 ܥΠϯελϯεͰࢼ͍ͨ͠ • ͦΜͳ࣌͸ʮUnmanaged ؀ڥʯΛબ୒͢Ε͹ OKʂ • ASG ΍ SpotFleet ͷ্Ͱ ECS Λಈ͔ͤ͹े෼շదͰ͢
  13. #jawsdays #jd2017_d ਪ࿦ϑΣʔζ͸ 24 / 365 • εϚϗɺIoT ػثͰਪ࿦Ͱ͖ΔΑ͏ʹͳ͖ͬͯͨݱ୅ •

    Մ༻ੑͱϨΠςϯγ͕ॏཁɺҰൠͷαʔϏεͱಉ͡ • EC2 Ͱ API Λఏڙ͢Δ͜ͱ΋΋ͪΖΜͰ͖Δ͕ • ͦΕɺLambda Ͱ΋ಈ͘Α
  14. #jawsdays #jd2017_d AMI for DeepLearning !! • ͍΍ɺ΍ͬͺΓֶशɾਪ࿦ͱ EC2 ͕͍͍ͱ͍͏ํɺ࿕ใͰ͢

    • Batch ΍ ECS Ͱ΋༗༻ɺશ෦ೖΓ AMI ʂʂ • ࠷৽ͷ TensorFlow, MXNet, ɹCaffe, CNTK, Theano, Torchɻɻ ɹAnaconda ΋ೖͬͯ·͢ʂ
  15. #jawsdays #jd2017_d DeepLearning AMI • ࠓճͷσϞͰ΋࢖͍·ͨ͠ • GPU Λ࢖͏࣌ͷ೉ؔɺNVIDIA υϥΠό΋ηοτΞοϓࡁ

    • docker & ecs-agent Λ user-data ͰΠϯετʔϧ͢Ε͹ ɹAWS Batch ΍ Amazon ECS Ͱ΋؆୯ʹಈ࡞͠·͢
  16. #jawsdays #jd2017_d ίϯςϯπ • AWS Ͱ AI αʔϏεΛ࣮૷ɾӡ༻͢ΔͨΊͷ ɹҰൠతͳٕज़৘ใɺ஌ݟɺࣄྫڞ༗ͷ৔ •

    ͢Ͱʹ׆༻͍ͯ͠Δํ • ಋೖΛݕ౼͍ͯ͠Δํ • ԿͦΕ͓͍͍͠ͷʁͳํʢ։࠵͝ͱʹ೉қ౓͕ଟগҧ͍·͢ʣ
  17. #jawsdays #jd2017_d ࠓ݄຤εϖγϟϧճ։࠵ʂ • 3 / 31 (ۚ) 19:00 ʙ

    • HPC ઐ໳ࢧ෦ͱͷ߹ಉΠϕϯτ • AWS ຊ͔ࣾΒήετ 2 ໊ʂʂ
  18. #jawsdays #jd2017_d Thank you for coming! ࢀߟจݙ: • AWS Batch

    – ؆୯ʹ࢖͑ͯޮ཰తͳόονίϯϐϡʔςΟϯάػೳ – AWS https://aws.amazon.com/jp/batch/ • AWS Black Belt Online SeminarʮAWS Batchʯͷࢿྉ͓ΑͼQAެ։ http://aws.typepad.com/sajp/2017/02/aws-black-belt-online-seminar-aws- batch.html#QCPzBdn.twitter_tweet_count_m • re:Invent 2016: AWS Big Data & Machine Learning Sessionsɻ https://aws.amazon.com/blogs/big-data/reinvent-2016-aws-big-data- machine-learning-sessions/