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

DevOps for data science: automate the boring stuff and leverage the OSS ecosystem

DevOps for data science: automate the boring stuff and leverage the OSS ecosystem

Tania Allard

August 06, 2020
Tweet

More Decks by Tania Allard

Other Decks in Technology

Transcript

  1. DevOps for Data
    Science?
    Automate the boring stuff and leverage the
    OSS ecosystem
    PyCon Africa – August 6th, 2020
    Tania Allard, PhD @ixek

    View full-size slide

  2. @ixek
    @trallard
    trallard.dev

    View full-size slide

  3. About Me
    I Python
    I am also a GDE for Tensorflow
    I love mechanical keyboards
    My dog usually barks while I
    am giving online talks

    View full-size slide

  4. These slides
    https://bit.ly/mlops-pyconafrica

    View full-size slide

  5. background
    ML and Data Science
    in 2020
    Table of
    Contents
    1
    What is even
    MLOps?
    And why you’d need it…
    2
    Mlops 101
    Getting started with
    MLOps
    3
    @ixek

    View full-size slide

  6. background
    ML and Data Science in 2020
    01

    View full-size slide

  7. Where
    have we
    been?
    The Garner hype cycle @ixek

    View full-size slide

  8. Data Scientist
    It’s never been easier
    to run ML experiments
    ML engineer
    /SRE
    Machine learning in
    production is hard y’all!
    Every team
    @ixek

    View full-size slide

  9. ● Tools like scikit-learn and Keras make it easy to
    create models in a few lines
    ● Techniques like transfer learning make our lifes easier
    ● More Compute! All the GPUs!
    From the DS
    perspective

    View full-size slide

  10. The new unicorn
    Must have
    Analytical skills
    Software eng.
    Programming
    Data engineering
    Data visualization
    Also must have
    Containerization
    End-to-end ML pipeline
    CI /CD /Versioning
    Deep learning / NLP / etc.
    Privacy and security
    @ixek

    View full-size slide

  11. MLOps
    What is it?
    02

    View full-size slide

  12. Where is my
    unicorn?
    A mythical data
    scientist who can code,
    write unit tests AND
    resist the lure of a
    deep neural network
    when logistic
    regression will do.

    View full-size slide

  13. The origin of devops
    Software developers:
    Need to move and iterate fast
    Operation team:
    Stability and availability of
    services is priority
    @ixek

    View full-size slide

  14. DevOps is the union of
    people, process, and
    products to enable
    continuous delivery of value
    into production
    - Donovan Brown

    @ixek

    View full-size slide

  15. Automate
    Automate
    everything you can
    (data processing,
    model training)
    Feedback
    Get feedback on
    new ideas fast (test
    immediately)
    No manual
    handoffs
    Provide early
    testing
    opportunities
    DevOps principles
    @ixek

    View full-size slide

  16. Continuous integration – software engineering
    Based on test
    results – no
    waiting time*
    Quick testing
    Automated build
    Project source
    code in version
    control
    Code
    changes
    Automate Feedback iterate
    @ixek

    View full-size slide

  17. Technical
    considerations
    ● Reliance on metrics
    (e.g. accuracy, specifity)
    ● Data visualization
    ● Required domain
    knowledge
    So what
    about ML?
    @ixek

    View full-size slide

  18. More than ML code / model
    @ixek

    View full-size slide

  19. The origin of mlops
    Data scientist:
    • Need to move and
    iterate fast
    • Use my loved
    frameworks
    • Scalable
    • Minimal wait: test, stage
    production
    SRE/ML Engineers:
    • Reuse of tooling and
    platforms
    • Uptime
    • Monitoring
    • Reliability and stability
    @ixek

    View full-size slide

  20. Continuous integration – software engineering
    Improve model
    based on
    outputs/outcomes
    Sought metrics
    Automated
    training / data
    processing
    Project source
    code in version
    control. Data
    lineage.
    Code& data
    changes
    Automate Feedback iterate
    @ixek

    View full-size slide

  21. Getting started
    101 MLOps
    03

    View full-size slide

  22. RECYCLE YOUR ECOSYSTEM
    1 Collaboration
    Version control (Git, Mercurial)
    OSS dev platform / CI /CD
    (GitHub, GitLab, Travis)
    2 automation Leverage your deployment
    infrastructure (CI / CD, Make)
    3 Mix-match Use the OSS libraries you love and
    leverage cloud computing*
    @ixek

    View full-size slide

  23. MlOps step by step
    ENV
    #1
    CI/CD Pipeline
    Process Train Stage Serve
    Data
    Distributed Cloud
    ENV
    #2
    Data Scientist
    SRE/ML Engineers
    @ixek

    View full-size slide

  24. CI/CD Pipeline
    Process Train Stage Serve
    Data
    Distributed Cloud
    First, I check in
    my code.
    ENV
    #1
    ENV
    #2
    Data Scientist
    Data Scientist
    SRE/ML Engineers
    MlOps step by step
    @ixek

    View full-size slide

  25. Version
    control
    @ixek

    View full-size slide

  26. CI/CD Pipeline
    Process Train Stage Serve
    Data
    Distributed Cloud
    That kicks off
    a CI/CD Pipeline.
    ENV
    #1
    ENV
    #2
    Data Scientist
    SRE/ML Engineers
    MlOps step by step
    @ixek

    View full-size slide

  27. Kicking CI
    /CD
    Push changes
    GitHub actions
    @ixek

    View full-size slide

  28. CI/CD Pipeline
    Process Train Stage Serve
    Data
    Distributed Cloud
    And now do a
    training run on the
    processed data
    ENV
    #1
    ENV
    #2
    Data Scientist
    SRE/ML Engineers
    MlOps step by step
    @ixek

    View full-size slide

  29. Not only tests
    Can leverage to do the
    training or data
    processing
    Vision
    Venus has a beautiful
    name and is the second
    planet from the Sun. It’s
    atmosphere is extremely
    poisonous
    @ixek

    View full-size slide

  30. CI/CD Pipeline
    Process Train Stage Serve
    Data
    Distributed Cloud
    Actually need to
    update the
    parameters
    ENV
    #1
    ENV
    #2
    Data Scientist
    SRE/ML Engineers
    MlOps step by step

    View full-size slide

  31. Parameters update?
    No problem check in to
    version control
    @ixek

    View full-size slide

  32. Updated reporting
    Embed reports and
    metrics to your Pull
    request
    @ixek

    View full-size slide

  33. Updated reporting
    Embed reports and
    metrics to your Pull
    request
    @ixek

    View full-size slide

  34. CI/CD Pipeline
    Process Train Stage Serve
    Data
    Distributed Cloud
    Model is optimized
    and working! Let’s
    roll out to
    production.
    ENV
    #1
    ENV
    #2
    Data Scientist
    SRE/ML Engineers
    MlOps step by step
    @ixek

    View full-size slide

  35. CI/CD Pipeline
    Process Train Stage Serve
    Data
    Distributed Cloud
    Trigger the CI/CD
    pipeline one last
    time.
    ENV
    #1
    ENV
    #2
    Data Scientist
    SRE/ML Engineers
    MlOps step by step
    @ixek

    View full-size slide

  36. CI/CD Pipeline
    Process Train Stage Serve
    Data
    Distributed Cloud
    And roll out
    to the world!
    ENV
    #1
    ENV
    #2
    Data Scientist
    SRE/ML Engineers
    MlOps step by step
    @ixek

    View full-size slide

  37. But there
    is more
    @ixek

    View full-size slide

  38. But there
    is more
    @ixek

    View full-size slide

  39. But there
    is more
    @ixek

    View full-size slide

  40. In brief
    MLOps allows you to be more efficient with the
    tools you use and love
    @ixek

    View full-size slide

  41. RECYCLE YOUR ECOSYSTEM
    1 Collaboration
    Version control (Git, Mercurial)
    OSS dev platform / CI /CD
    (GitHub, GitLab, Travis)
    2 automation Leverage your deployment
    infrastructure (CI / CD, Make)
    3 Mix-match Use the OSS libraries you love and
    leverage cloud computing*
    @ixek

    View full-size slide

  42. These slides
    https://bit.ly/mlops-pyconafrica

    View full-size slide

  43. Thanks!
    @ixek
    @trallard
    trallard.dev

    View full-size slide