Reader small image

You're reading from  The Machine Learning Solutions Architect Handbook - Second Edition

Product typeBook
Published inApr 2024
PublisherPackt
ISBN-139781805122500
Edition2nd Edition
Right arrow
Author (1)
David Ping
David Ping
author image
David Ping

David Ping is an accomplished author and industry expert with over 28 years of experience in the field of data science and technology. He currently serves as the leader of a team of highly skilled data scientists and AI/ML solutions architects at AWS. In this role, he assists organizations worldwide in designing and implementing impactful AI/ML solutions to drive business success. David's extensive expertise spans a range of technical domains, including data science, ML solution and platform design, data management, AI risk, and AI governance. Prior to joining AWS, David held positions in renowned organizations such as JPMorgan, Credit Suisse, and Intel Corporation, where he contributed to the advancements of science and technology through engineering and leadership roles. With his wealth of experience and diverse skill set, David brings a unique perspective and invaluable insights to the field of AI/ML.
Read more about David Ping

Right arrow

Open-Source ML Platforms

In the previous chapter, we covered how Kubernetes can be used as the foundational infrastructure for running ML tasks, such as running model training jobs or building data science environments such as Jupyter Notebook servers. However, to perform these tasks at scale and more efficiently for large organizations, you will need to build ML platforms with the capabilities to support the full data science lifecycle. These capabilities include scalable data science environments, model training services, model registries, and model deployment capabilities.

In this chapter, we will discuss the core components of an ML platform and explore additional open-source technologies that can be used for building ML platforms. We will begin with technologies designed for building a data science environment capable of supporting a large number of users for experimentation. Subsequently, we will delve into various technologies for model training, model registries, model...

Core components of an ML platform

An ML platform is a complex system encompassing multiple environments for running distinct tasks and orchestrating complex workflow processes. Furthermore, an ML platform needs to cater to a multitude of roles, including data scientists, ML engineers, infrastructure engineers, operations teams, and security and compliance stakeholders. To construct an ML platform, several components come into play.

These components include:

  • Data science environment: The data science environment provides data analysis and ML tools, such as Jupyter notebooks, data sources and storage, code repositories, and ML frameworks. Data scientists and ML engineers use the data science environment to perform data analysis, run data science experiments, and build and tune models. The data science environment also provides collaboration capabilities, allowing data scientists to share and collaborate on code, data, experiments, and models.
  • Model training environment...

Open-source technologies for building ML platforms

Managing ML tasks individually by deploying standalone ML containers in a Kubernetes cluster can become challenging when dealing with a large number of users and workloads. To address this complexity and enable efficient scaling, many open-source technologies have emerged as viable solutions. These technologies, including Kubeflow, MLflow, Seldon Core, GitHub, Feast, and Airflow, provide comprehensive support for building data science environments, model training services, model inference services, and ML workflow automation.

Before delving into the technical details, let’s first explore why numerous organizations opt for open-source technologies to construct their ML platforms. For many, the appeal lies in the ability to tailor the platform to specific organizational needs and workflows, with open standards and interoperable components preventing vendor lock-in and allowing the flexibility to adopt new technologies over...

Designing an end-to-end ML platform

After discussing several open-source technologies individually, let’s now delve into their integration and see how these components come together. The architecture patterns and technology stack selection may vary based on specific needs and requirements. The following diagram presents the conceptual building blocks of an ML platform architecture:

A picture containing text, screenshot, diagram, design  Description automatically generated

Figure 7.12: ML platform architecture

Next, let’s delve into different strategies to implement this architecture concept with different combinations of open-source technologies.

ML platform-based strategy

When designing an ML platform using open-source technologies, one effective strategy is to utilize an ML platform framework as a base platform and then integrate additional open-source components to address specific requirements. One such ML platform framework is Kubeflow, which provides a robust foundation with its built-in building blocks for an ML platform. By leveraging...

Summary

In this chapter, you have gained an understanding of the core architecture components of a typical ML platform and their capabilities. We have explored various open-source technologies such as Kubeflow, MLflow, TensorFlow Serving, Seldon Core, Triton Inference Server, Apache Airflow, and Kubeflow Pipelines. Additionally, we have discussed different strategies for approaching the design of an ML platform using open-source frameworks and tools.

While these open-source technologies offer powerful features for building sophisticated ML platforms, it is important to acknowledge that constructing and maintaining such environments requires substantial engineering effort and expertise, especially when dealing with large-scale ML platforms.

In the next chapter, we will delve into fully managed, purpose-built ML solutions that are specifically designed to facilitate the development and operation of ML environments. These managed solutions aim to simplify the complexities of...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
The Machine Learning Solutions Architect Handbook - Second Edition
Published in: Apr 2024Publisher: PacktISBN-13: 9781805122500
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
David Ping

David Ping is an accomplished author and industry expert with over 28 years of experience in the field of data science and technology. He currently serves as the leader of a team of highly skilled data scientists and AI/ML solutions architects at AWS. In this role, he assists organizations worldwide in designing and implementing impactful AI/ML solutions to drive business success. David's extensive expertise spans a range of technical domains, including data science, ML solution and platform design, data management, AI risk, and AI governance. Prior to joining AWS, David held positions in renowned organizations such as JPMorgan, Credit Suisse, and Intel Corporation, where he contributed to the advancements of science and technology through engineering and leadership roles. With his wealth of experience and diverse skill set, David brings a unique perspective and invaluable insights to the field of AI/ML.
Read more about David Ping