tessl install tessl/pypi-modal@1.1.0Python client library for Modal, a serverless cloud computing platform that enables developers to run Python code in the cloud with on-demand access to compute resources.
Agent Success
Agent success rate when using this tile
85%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.6x
Baseline
Agent success rate without this tile
53%
A serverless pipeline scheduler that executes machine learning workloads with appropriate compute resources based on task requirements.
Build a pipeline scheduler that can run different types of ML tasks (data preprocessing, model training, and inference) on cloud infrastructure. Each task type requires different compute resources:
The scheduler should configure appropriate compute resources for each task type and execute a simple pipeline that runs all three tasks in sequence.
Your implementation must:
task_name parameter and return a completion message@generates
def preprocess_data(task_name: str) -> str:
"""
Runs data preprocessing task with CPU-optimized resources.
Args:
task_name: Name of the preprocessing task
Returns:
Completion message
"""
pass
def train_model(task_name: str) -> str:
"""
Runs model training task with GPU resources.
Args:
task_name: Name of the training task
Returns:
Completion message
"""
pass
def run_inference(task_name: str) -> str:
"""
Runs inference task with lightweight resources.
Args:
task_name: Name of the inference task
Returns:
Completion message
"""
pass
def run_pipeline() -> None:
"""
Orchestrates the complete ML pipeline by running preprocessing,
training, and inference tasks in sequence.
"""
passProvides serverless cloud compute with configurable resources.