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

aws-sageMaker

lielran
September 19, 2019

 aws-sageMaker

lielran

September 19, 2019
Tweet

More Decks by lielran

Other Decks in Programming

Transcript

  1. SageMaker - Building & Deploying an ML Model Ofir Naor,

    Data Science & Backend Team Leader Amenity Analytics
  2. 1 / 35 Agenda • Intro to Amenity Analytics •

    Studio - an NLP cloud IDE • SageMaker - build & deploy ML model
  3. Finance Documents NLP Models & Analysis Structured Extractions API &

    Dashboard results SUCCESS Intro to Amenity Analytics 2 / 35
  4. 5 / 35 lemma_by_group(‘love’) SageMaker - Amenity Studio synonym_by_context (‘love’,

    sentence) affection appreciation devotion emotion fondness friendship ... sex it depends - I love Apple - like fond of appreciate … no sex I made love with an apple. sex.
  5. 5 / 35 BERT has changed the world... of NLP

    Bidirectional Encoder Representations from Transformers SageMaker - BERTTTT
  6. 5 / 35 BERT Training SageMaker - BERTTTT Input: the

    man went to the [MASK1] . he bought a [MASK2] of milk. Labels: [MASK1] = store; [MASK2] = gallon
  7. 5 / 35 BERT Training SageMaker - BERTTTT Input: I

    [MASK] Apple. Predict: like, appreciate, ate (if uncased) Input: I made [MASK] with an apple. Predict: sex
  8. 5 / 35 Let’s learn how to deploy it Using

    SageMaker SageMaker - BERTTTT
  9. 5 / 35 We host SAGEMAKER meetup What shall we

    present? SageMaker - Presentation
  10. 5 / 35 .. and it makes everyone around them

    MAD SageMaker - Who we got?
  11. 5 / 35 Does it worth it? (effort, deployment time,

    devops, constraints?) SageMaker - Custom Containers
  12. 5 / 35 SageMaker - Data scientist.. Based on Amazing

    Technology Deep Copy Deep Paste Deployable on AWS
  13. 5 / 35 SageMaker - Data scientist.. It’s not the

    actual model run that is complicated I run a deep learning model !
  14. 5 / 35 SageMaker - FullStack, AWS certified, Data scientist..

    .. and the deployment step .. and the deployment steps (that’s how I felt - good & safe at start, then it hurt)
  15. 5 / 35 • Git clone • Then another sub-clone

    • docker build • another docker build • setup.py dependencies SageMaker - FullStack, AWS certified, Data scientist.. From what I remember
  16. 5 / 35 • … fix dependencies • deps also

    in Dockerfile • rebuild docker • not that one - the first one • now build bdist_wheel • now rebuild docker From what I remember SageMaker - FullStack, AWS certified, Data scientist..
  17. 5 / 35 • deploy try#1 (8 minutes) • fix

    • repeat • … after ~10 deployments • integration test passes From what I remember SageMaker - FullStack, AWS certified, Data scientist..
  18. 5 / 35 Now CDK, automation, CI/CD …. Does it

    worth it? From what I remember SageMaker - FullStack, AWS certified, Data scientist..
  19. 5 / 35 As a DataScientist / researcher If that’s

    the given way, only way SageMaker - Summary Why would someone choose to serve on SageMaker endpoint over EC2 / ECS / Fargate ?
  20. 5 / 35 As Devops - If it combines well

    with the whole training / serving lifecycle .. Or as the 1st iteration SageMaker - Summary Why would someone choose to serve on SageMaker endpoint over EC2 / ECS / Fargate ?
  21. 5 / 35 Console Vs. Script Vs. Cloudformation • •

    • • • • • • • • • • •