make-your-deaplearning-apps-on-aws-201703
by
ryo nakamaru
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
#jawsdays #jd2017_d Deep Learning on AWS Ͱ ͚ࣗͩͷֶशϞσϧΛ࡞Ζ͏ʂ by JAWS-UG AI ࢧ෦
Slide 2
Slide 2 text
#jawsdays #jd2017_d தؙ ྑ @pottava SUPINF Inc. (AWS Certified) SA, DevOps Engineer Pro ❤ Amazon ECS, AWS Batch, IAM
Slide 3
Slide 3 text
#jawsdays #jd2017_d גࣜձࣾεϐϯϑ
Slide 4
Slide 4 text
#jawsdays #jd2017_d ͜ΜͳձࣾͰ͢ • AWS Λத৺ʹɺΫϥυωΟςΟϒͳ։ൃɾӡ༻อकͷडୗ • Docker Ͱͷ։ൃɾӡ༻ ͕େಘҙ • GPU, Jupyter, Mesos.. Պֶٕज़ܭࢉڥͷߏஙɾอकडୗ • ͦͷଞ Web αʔϏεɾωΟςΟϒΞϓϦɾۀγεςϜɾɾ
Slide 5
Slide 5 text
#jawsdays #jd2017_d ૣɺσΟʔϓϥʔχϯά
Slide 6
Slide 6 text
#jawsdays #jd2017_d σϞ
Slide 7
Slide 7 text
#jawsdays #jd2017_d AWS ϗϫΠτϖʔύʔ͘Μ • σΟʔϓϥʔχϯάΛར༻ʢLSTM with MXNetʣ • AWS നॻɺPDF 27 ϑΝΠϧΛֶशσʔλʹར༻ • ग़ͩ͠ͷ୯ޠ͔ΒɺͦΕΒ͍͠ޙଓͷจষΛࣗಈੜ
Slide 8
Slide 8 text
#jawsdays #jd2017_d σϞͷྲྀΕ 1. ·ͣҰʢֶशෆेͳʣਪ͕ಈ͘͜ͱΛ֬ೝ 2. ͦͷޙվΊͯɺσʔλͷऔಘɾՃ 3. ֶश 4. ৽൛ਪαʔϏεσϓϩΠ
Slide 9
Slide 9 text
#jawsdays #jd2017_d ਪͷ༷ࢠ ʮAmazon EC2 isʯΛ༩͑ͨ࣌ͷɺֶशෆेͳਪྫ ৽͍͠ݴޠ͕ੜ·Ε·ͨ͠ɻ
Slide 10
Slide 10 text
#jawsdays #jd2017_d ਪͷ༷ࢠ ʮAmazon EC2 isʯͰɺͦΕͳΓʹֶशͨ͠ޙͷਪྫ ݴ͍͍ͨ͜ͱΘ͔Γ·ͤΜ͕ɺ୯ޠจ๏ਵ͠·ͨ͠ɻ
Slide 11
Slide 11 text
#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
Slide 12
Slide 12 text
#jawsdays #jd2017_d ΄΅શ෦ެ։͠·ͨ͠ • PDF 1 ຕఔͳΒ 10 Ͱࢼͤ·͢ • AWS ͷσϓϩΠπʔϧ܈Ұ෦ܝࡌ ʢશ෦ࢿྉԽ͢ΔͷّͳͷͰ..ʣ https://github.com/pottava/mxnet-char-lstm
Slide 13
Slide 13 text
#jawsdays #jd2017_d ͳΔ΄ͲΘ͔ΒΜ • ެ։͞Εͨࢿྉ͚ͩͰΑ͔͘Βͳ͍ɻ͍ɾɾ • Qiita Ͱใൃ৴͠·͢ • σΟʔϓϥʔχϯάͰ AWS ͷઃܭͰ • Twitter ͳͲͰฉ͍ͯΒ͑Ε༨ྗ͋Δͱ͖͑·͢ :) • ͓ؾܰʹ @pottava ·Ͱ
Slide 14
Slide 14 text
#jawsdays #jd2017_d ৼΓฦΓ
Slide 15
Slide 15 text
#jawsdays #jd2017_d Ͳ͏࡞ͬͨͷ͔ 1. PDF Λదʹμϯϩʔυʢσʔλऩूɺ5 ʣ 2. ֶश͍͢͠Α͏ʹσʔλΛՃʢલॲཧɺ30 ʣ 3. LSTM ωοτϫʔΫʹೖʢֶशɺ5 ࣌ؒʣ 4. REST API Λ࣮ʢਪɺ45 ʣ ʢ + ຊࢫͰͳ͍ AWS ͷઃܭɺϑϨʔϜϫʔΫͷΩϟονΞοϓʹ૬Ԡͷ࣌ؒʣ
Slide 16
Slide 16 text
#jawsdays #jd2017_d ͳͥΫϥυͰʁ • ֶशσʔλ࡞ͨ͠Ϟσϧൺֱతେ͖ͳϑΝΠϧ • ֶशɺྫ͑Ұൠ͚ PC ͩͱͦΕ͚ͩͰ͔͔Δ • Ұ࣌తʹɺେͰߴੑೳͳܭࢉೳྗ͕͑Δ • ਪαʔϏεͷσϓϩΠɾӡ༻ͱͯ؆୯
Slide 17
Slide 17 text
#jawsdays #jd2017_d Կ͕Ͳ͏ػցֶशͩͬͨͷʁ ❌ʮ͜ͷ୯ޠ͕ೖྗ͞ΕͨΒɺ͜͏ग़ྗͯ͠ʯ ⭕ʮେྔʹಡΜͩจষΛੜ͔ͯ͠ɺ࣍ͷ୯ޠΛ༧ଌͯ͠Ͷʯ
Slide 18
Slide 18 text
#jawsdays #jd2017_d Կ͕Ͳ͏σΟʔϓͩͬͨͷʁ จষͷࣗಈੜʹͬͨػցֶशͷख๏͕ LSTM ͱ͍͏ ϦΧϨϯτχϡʔϥϧωοτϫʔΫ͔ͩͬͨΒɻ ʁʁʁ
Slide 19
Slide 19 text
#jawsdays #jd2017_d σΟʔϓϥʔχϯά ʢਂֶश / DLʣ.
Slide 20
Slide 20 text
#jawsdays #jd2017_d σΟʔϓϥʔχϯάͱ • ଟߏͷχϡʔϥϧωοτϫʔΫΛ༻͍ͨػցֶशͷ͜ͱ • χϡʔϥϧωοτϫʔΫͱ͍͏ಠಛͳܗͰอ࣋͞Εͨ • ҎԼͷ a ͱ b ΛܾΊΔ͜ͱֶ͕श ɹy = ax + b • ͦΕΛͱʹ x ͕͖ͨΒ y ͱฦ͢ͷ͕ɺਪ
Slide 21
Slide 21 text
#jawsdays #jd2017_d σΟʔϓϥʔχϯάͱ • ࣮ࡍେͳมͦΕͧΕʹ࠷దΛ୳͠ʮϞσϧʯΛੜ • ҰͭͷͷɺҰͭͷϊʔυ͚ͩͰมͨ͘͞Μ ɹy = f ( w1x1 + w2x2 + w3x3 + … + wnxn + b )
Slide 22
Slide 22 text
#jawsdays #jd2017_d Α͘ݟΔ DL ͷྫ • Amazon Rekognition ͷҰൠମݕग़ɺ͖ͬͱ CNNɻ • ΈࠐΈχϡʔϥϧωοτϫʔΫʢCNNʣ ෳͷ͕͋Γ·͢Ͷʙ
Slide 23
Slide 23 text
#jawsdays #jd2017_d Ͱ
Slide 24
Slide 24 text
#jawsdays #jd2017_d Ͳ͏ͬͯϞσϧΛ࡞Δͷ͔
Slide 25
Slide 25 text
#jawsdays #jd2017_d ࢼߦࡨޡ͢ΔͨΊͷ
Slide 26
Slide 26 text
#jawsdays #jd2017_d Ϋϥυͷ౷߹ݚڀڥ
Slide 27
Slide 27 text
#jawsdays #jd2017_d Jupyter as a Service • ࢼߦࡨޡɺݚڀͷڞ༗ͷελϯμʔτͱ͍͑ Jupyter • ࠷ۙྲྀߦͷػೳ֦ுɿΫϥυͷσʔλετΞͱͷ࿈ܞ • σʔλͷநग़ɺมɾՃɺͦͷऔΓࠐΈʢETLʣ • AWS Ұาग़Ε͍ͯΔͷͷɾɾ
Slide 28
Slide 28 text
#jawsdays #jd2017_d Google Cloud Datalab
Slide 29
Slide 29 text
#jawsdays #jd2017_d Google Cloud Datalab • TensorFlow ✖ BigQuery ͷྫ • ͦͷૢ࡞ UI ͱͯ͠ Jupyter ɹϕʔεͷ Cloud Datalab • ϩʔΧϧ൛·Ͱ͋Δɾɾ
Slide 30
Slide 30 text
#jawsdays #jd2017_d Azure ML Studio
Slide 31
Slide 31 text
#jawsdays #jd2017_d ͱʹ͔͘ੑೳॏࢹ or ࣗ༝ʹ ϑϨʔϜϫʔΫΛબͼ͍ͨͳΒ
Slide 32
Slide 32 text
#jawsdays #jd2017_d GPU Infiniband ΛؚΉ ϚϧνΫϥυ HPC ڥ ΦϯϓϨͱͷϋΠϒϦοτɻ ͑ΔϑϨʔϜϫʔΫଟʂʂ
Slide 33
Slide 33 text
#jawsdays #jd2017_d ฒྻԋࢉʹΑΔֶश
Slide 34
Slide 34 text
#jawsdays #jd2017_d ֶशϑΣʔζ HPC • ػցֶशͰͷֶशɺେͳύϥϝλΛܭࢉ͢Δ͜ͱ • ຊ֨తʹͳΔఔɺखڐͷ൚༻Ͱ౸ఈܭࢉͰ͖ͳ͍
Slide 35
Slide 35 text
#jawsdays #jd2017_d όονίϯϐϡʔςΟϯά • ແݶʹεέʔϧ͢Δߴੑೳ / GPU ࡌͷΫϥελ܈ • ࣮ߦॱংʢґଘʣͷ͋ΔδϣϒΛฒྻࢄॲཧ • ͦΕͰऴΘΒͳֶ͍शɾɾ • AWS ͜ͷྖҬ͕͍·͍ʂʂ
Slide 36
Slide 36 text
#jawsdays #jd2017_d AWS Batch • Ϛωʔδυ όονίϯϐϡʔςΟϯάڥ • ΫϥελཧɺΩϡʔɺεέδϡʔϥΛ AWS ʹ͓ͤ • Ωϡʔ͕ਂ͘ͳΔͱࣗಈͰεέʔϧʂʂ • SpotFleet ͱ౷߹͞Ε͍ͯΔʂ • Docker ϕʔεʹͳ͓ͬͯΓɺLinux ܥͷॲཧͳΜͰಈ͘
Slide 37
Slide 37 text
#jawsdays #jd2017_d AWS Batch • ࠓճͷΑ͏ʹɺGPU Λ͍͍ͨ / ಠࣗ AMI Λ͍͍ͨ • ͘͠ t2 ܥΠϯελϯεͰࢼ͍ͨ͠ • ͦΜͳ࣌ʮUnmanaged ڥʯΛબ͢Ε OKʂ • ASG SpotFleet ͷ্Ͱ ECS Λಈ͔ͤेշదͰ͢
Slide 38
Slide 38 text
#jawsdays #jd2017_d AWS Batch ʢҙ֎ʁͳར༻ྫʣ S3 ʹ͋͛ͨେྔը૾ Rekognition Ͱͷ Ұൠମݕग़Λ AWS Batch ͔Β࣮ߦɻ
Slide 39
Slide 39 text
#jawsdays #jd2017_d ϋϯζΦϯ͋Γ㽂 ΈΜͳେ͖ɺCOBOL ͷఆྫόον Λ AWS Batch Ͱ
Slide 40
Slide 40 text
#jawsdays #jd2017_d αʔϏε࣭͕ॏཁɺਪ
Slide 41
Slide 41 text
#jawsdays #jd2017_d ਪϑΣʔζ 24 / 365 • εϚϗɺIoT ػثͰਪͰ͖ΔΑ͏ʹͳ͖ͬͯͨݱ • Մ༻ੑͱϨΠςϯγ͕ॏཁɺҰൠͷαʔϏεͱಉ͡ • EC2 Ͱ API Λఏڙ͢Δ͜ͱͪΖΜͰ͖Δ͕ • ͦΕɺLambda Ͱಈ͘Α
Slide 42
Slide 42 text
#jawsdays #jd2017_d AWS Lambda http://aws.typepad.com/sajp/2017/01/seamlessly- scale-predictions-with-aws-lambda-and-mxnet.html
Slide 43
Slide 43 text
#jawsdays #jd2017_d AMI for DeepLearning !! • ͍ɺͬͺΓֶशɾਪͱ EC2 ͕͍͍ͱ͍͏ํɺ࿕ใͰ͢ • Batch ECS Ͱ༗༻ɺશ෦ೖΓ AMI ʂʂ • ࠷৽ͷ TensorFlow, MXNet, ɹCaffe, CNTK, Theano, Torchɻɻ ɹAnaconda ೖͬͯ·͢ʂ
Slide 44
Slide 44 text
#jawsdays #jd2017_d DeepLearning AMI • ࠓճͷσϞͰ͍·ͨ͠ • GPU Λ͏࣌ͷؔɺNVIDIA υϥΠόηοτΞοϓࡁ • docker & ecs-agent Λ user-data ͰΠϯετʔϧ͢Ε ɹAWS Batch Amazon ECS Ͱ؆୯ʹಈ࡞͠·͢
Slide 45
Slide 45 text
#jawsdays #jd2017_d JAWS-UG AI ࢧ෦
Slide 46
Slide 46 text
#jawsdays #jd2017_d ίϯςϯπ • AWS Ͱ AI αʔϏεΛ࣮ɾӡ༻͢ΔͨΊͷ ɹҰൠతͳٕज़ใɺݟɺࣄྫڞ༗ͷ • ͢Ͱʹ׆༻͍ͯ͠Δํ • ಋೖΛݕ౼͍ͯ͠Δํ • ԿͦΕ͓͍͍͠ͷʁͳํʢ։࠵͝ͱʹқ͕ଟগҧ͍·͢ʣ
Slide 47
Slide 47 text
#jawsdays #jd2017_d ࠓ݄εϖγϟϧճ։࠵ʂ • 3 / 31 (ۚ) 19:00 ʙ • HPC ઐࢧ෦ͱͷ߹ಉΠϕϯτ • AWS ຊ͔ࣾΒήετ 2 ໊ʂʂ
Slide 48
Slide 48 text
#jawsdays #jd2017_d ӡӦϝϯόʔ
Slide 49
Slide 49 text
#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/