Skip to departures
Hpjadul
MAC END

Chai Discovery Enhances Drug Development with Modal's Scalable Machine Learning Infrastructure

Departs
Crew
Thomas Davis
Passengers
562

Chai Discovery leverages Modal's elastic infrastructure to streamline drug discovery, enabling rapid, reproducible experiments across diverse biological workloads.

Chai Discovery Enhances Drug Development with Modal's Scalable Machine Learning Infrastructure

Chai Discovery is reshaping the landscape of drug development through its advanced machine learning platform aimed at designing new medicines. Their overarching goal is to create a flexible system that adapts to various biological targets and experimental datasets, enhancing the speed and efficiency of the discovery process across multiple disease areas and treatment modalities.

The Challenges of Biological Workloads

The challenges Chai faces are emblematic of many in the drug discovery field. Their machine learning pipelines integrate a variety of models and massive biological datasets while requiring substantial GPU processing power. Each computational experiment varies in scale—from simple protein structure experiments to complex antibody design initiatives. This diversity presents significant scaling challenges, particularly when workloads can shift dramatically from relatively calm periods to sudden bursts involving hundreds or even thousands of simultaneous tasks overnight.

To illustrate the difficulties of traditional computing environments, Chai identified several infrastructure issues that could impede the speed and consistency of their research:

  • Repetitive Data Setup: Researchers often need to download and index extensive datasets, sometimes totaling hundreds of gigabytes, which can lead to considerable delays if repeated across multiple machines.
  • Hardware Drift: Variations in GPU types and driver versions across hardware setups can introduce subtle bugs, affecting the reproducibility of results.
  • Operational Overhead: Scaling inference across multiple runs requires considerable manual orchestration, leading to idle resources and increasing operational costs due to underutilized clusters.
“I used to wrangle AWS, Google Cloud, and Azure, but when I was dealing with raw instances and volumes, I frequently felt like I was operating at the wrong level of abstraction. With Modal, building infrastructure has shifted from being an imperative task to a declarative one. You add a few lines of code specifying what you want to do, and it just runs.”
Kevin Wu Machine Learning Researcher

Modal: A Solution for Scalable Research

From its inception, Chai Discovery employed Modal to alleviate the burdens associated with infrastructure management that could detract from their experimental work. Modal's technology provides elastic and consistent compute resources, ensuring researchers can concentrate on scientific inquiry instead of technical configuration.

“Our ML team can just say, I’m going to run this — I don’t have to think about whether it needs 10,000 queries or what my data needs. It all just happens behind the scenes.”
Kevin Wu Machine Learning Researcher

Enhancing Reproducibility and Execution Consistency

Before integrating Modal, reproducibility within Chai’s experiments was fragile. Small discrepancies in hardware configurations could lead to hours of debugging. By utilizing Modal, every experiment runs in a standardized and reproducible environment. This consistency proves vital for their complex model pipelines, which encompass processes such as protein embeddings, multiple sequence alignments (MSA), and antibody designs. The user-friendly management of Modal environments allows outputs developed during research to transition smoothly into deployment, thereby enhancing efficiency and scientific integrity.

“We have a lot of different models that give us different layers of insights on these proteins. Being able to run them all on the hardware that makes sense is what makes the product possible.”
Kevin Wu Machine Learning Researcher

High-Throughput Data Access and Efficient Workflows

Chai's discovery efforts heavily rely on multiple sequence alignment (MSA) tasks, which demand access to significant datasets. In traditional environments, each machine downloading and indexing this data could take hours. However, with Modal’s high-performance distributed file system, known as Modal Volumes, centralized datasets can be accessed instantly across multiple machines. This setup ensures that researchers can begin new jobs immediately, circumventing the delays associated with traditional data management.

“You’d spend six hours just downloading the database to get one query out. With Modal Volumes, it’s downloaded once, instantly available everywhere, and scales to thousands of queries.”
Kevin Wu Machine Learning Researcher

Dynamic Scaling and Elasticity

Chai's workloads exhibit significant variability—some days are relatively quiet while others require scaling to thousands of inferences. Modal’s elastic computing capabilities automatically adjust to workload shifts. GPUs are mobilized within minutes to handle peak demands and can subsequently scale down when the workload diminishes. This means that teams do not have to manage cluster configurations or face the risk of operational inefficiencies.

“Sometimes we spin up hundreds of GPUs at a time, and the fact it’s up in a few minutes without onerous configurations or dashboards whenever we need to is kind of a miracle.”
Kevin Wu Machine Learning Researcher

By combining Modal's reliable data management, reproducible environments, and scalable compute resources, Chai fosters rapid feedback loops. The team can transition efficiently from research to production without the need for extensive code rewriting or waiting on infrastructural readiness. Their consistent setup supports various stages of research—from generating embeddings to executing comprehensive antibody design pipelines.

Bridging Research and Production

As of today, Modal serves as a critical component in Chai’s computational architecture, enabling them to streamline everything from extensive model training to intricate molecular design inference processes. With Modal’s infrastructure in place, Chai can effortlessly convert research concepts into production within minutes. This rapid transformation reduces time spent on retries and scaling concerns, allowing researchers to prioritize innovation over logistics.

Chai now possesses the ability to deploy complex analyses on terabyte-scale biological datasets and initiate extensive GPU resources in moments—issues that previously required laborious configurations. What once required days to set up is now accomplished with ease, promoting swift advancements in drug discovery.

“It’s not just a time savings; it’s the mental overhead that disappears. With Modal, we add a few decorators to a function we need to scale, forget about them, and they just work.”
Kevin Wu Machine Learning Researcher
Source: Thomas Davis · modal.com
Arrived · Hpjadul

Also departing from this gate