Knowledge Base Regulation Tracker Standards & Frameworks OSS Directory AI Incident Database Research Paper Library Case Studies Society Articles News Jobs About Charter Sign inBecome a Member

ZenML

MLOps and LLMOps platforms

Open-source framework for reproducible ML and LLM pipelines with a stack abstraction over orchestrators, artefact stores and model registries, tracking lineage and metadata across runs. Named in the taxonomy.

mlopspipelineslineage

ZenML: An Open-Source Framework for Reproducible ML and LLM Pipelines

ZenML is an open-source framework designed to streamline the development lifecycle of machine learning (ML) and large language model (LLM) workflows. It provides a unified platform for defining, executing, and managing pipelines across diverse infrastructure backends, including orchestrators, artifact stores, and model registries. By abstracting infrastructure complexity, ZenML enables teams to focus on building and iterating on AI applications without worrying about the underlying systems.

The framework is built for ML and AI engineers working on traditional ML use cases, LLM workflows, or agentic systems within a company setting. ZenML allows users to write workflows—referred to as pipelines—that can run on any infrastructure backend, embedding Pythonic logic for tasks such as model training, evaluation, or agentic loops. These pipelines are then operationalized through automated containerization, metadata tracking, and integration with existing tools and infrastructure.

ZenML is distributed under the Apache 2.0 license, ensuring permissive use and modification. It is implemented in Python and supports a client-server architecture with an integrated web dashboard for monitoring and managing workflows. The framework is widely adopted by thousands of companies, including notable names in technology and AI-driven industries.

How ZenML Works

ZenML operates on a client-server architecture, where users interact with the system through a client interface while the server handles orchestration, storage, and execution. The framework supports both local development and production deployments, allowing users to initialize a local server or connect to a remote one.

At its core, ZenML provides several key functionalities:

  • Automated Containerization and Tracking: ZenML automatically containerizes code and tracks individual runs with metrics, logs, and metadata.
  • Infrastructure Abstraction: The framework abstracts away the complexity of managing different orchestration backends, such as Kubernetes, Kubeflow, or cloud-based services like AWS SageMaker and Google Cloud Vertex AI. Users can define pipelines once and deploy them across multiple environments without rewriting code.
  • Integration with Existing Tools: ZenML integrates seamlessly with popular ML and LLM tools, including MLflow, Langfuse, LangSmith, and Weights & Biases. This interoperability allows teams to leverage their existing workflows and infrastructure while adopting ZenML for orchestration and management.
  • Observable Layer for Experimentation: ZenML provides an observable layer that tracks pipeline runs, enabling teams to monitor experiments in development and production. This feature supports quick iteration and debugging, ensuring that changes can be validated and deployed with confidence.

The framework also includes a Model Context Protocol (MCP) server, which allows users to query pipelines, analyze runs, and trigger deployments using natural language. This integration with tools like Claude Desktop or Cursor democratizes access to ML operations, enabling non-experts to interact with workflows through conversational interfaces.

Use Cases for ZenML

ZenML is designed to address a wide range of use cases in ML and LLM development, particularly in environments where reproducibility, scalability, and integration with existing systems are critical. Some key applications include:

  • End-to-End MLOps Pipelines: ZenML enables the creation of complete MLOps pipelines, from data preprocessing and model training to evaluation and deployment. For example, teams can build pipelines that include feature engineering, hyperparameter tuning, and batch inference, all while maintaining traceability and reproducibility.
  • LLMOps Workflows: The framework supports LLM-specific workflows, such as fine-tuning, retrieval-augmented generation (RAG), and agentic systems. ZenML provides pre-built examples for LLM pipelines, including fine-tuning and deploying LLMs, as well as RAG workflows with evaluation loops.
  • Agentic Systems: ZenML facilitates the development and deployment of AI agents, allowing teams to orchestrate agentic workflows alongside traditional ML pipelines. The framework integrates with agent frameworks like LangGraph and PydanticAI, enabling users to wrap existing agent code and deploy it within ZenML pipelines.
  • Multi-Cloud and Hybrid Deployments: With support for orchestrators like Kubernetes, Kubeflow, and cloud services, ZenML allows teams to deploy pipelines across heterogeneous environments.
  • Cost-Effective AI Operations: ZenML’s open-source nature and integration with existing infrastructure reduce the need for additional platforms or tools. Teams can use their current Kubernetes clusters, object storage, and other resources, minimizing operational overhead and costs.

Key Features and Capabilities

ZenML offers a comprehensive set of features that enhance the development, deployment, and monitoring of ML and LLM workflows.

  • Pipeline Orchestration: ZenML allows users to define pipelines as directed acyclic graphs (DAGs), where each step represents a modular component of the workflow. This modularity simplifies the design and maintenance of complex workflows.
  • Artifact Management: The framework provides robust artifact management, including versioning, storage, and retrieval of outputs generated during pipeline execution. Artifacts can be materialized using various serializers, such as Cloudpickle or JSON, ensuring compatibility with different data types and use cases.
  • Metadata and Lineage Tracking: ZenML tracks metadata and lineage information for each pipeline run, including inputs, outputs, and execution parameters. This metadata is stored in a structured format, enabling teams to audit workflows, reproduce results, and debug issues efficiently.
  • Deployment and Monitoring: Once a pipeline is defined, ZenML supports deployment to production environments, including endpoints for serving models or agents. The framework integrates with monitoring tools to track performance metrics, such as latency, throughput, and accuracy, ensuring that deployed systems meet operational requirements.
  • Webhook-Driven Automation: ZenML supports webhook-driven automation, allowing pipelines to be triggered by external events such as GitHub pull requests, ClickUp task updates, or Slack messages. This feature enables seamless integration with CI/CD systems and other automation tools, enhancing workflow flexibility and responsiveness.
  • Security and Compliance: The framework includes security features such as workload-scoped tokens, which prevent credential leakage and ensure that API tokens are bound to specific pipeline runs. Additionally, ZenML supports AWS RDS IAM authentication for MySQL stores, aligning with security best practices for cloud-based deployments.
  • The sandbox also supports file uploads and downloads, facilitating local experimentation.
  • Integration with Kitaru for Agent Evaluation: ZenML complements its pipeline orchestration capabilities with Kitaru, an open-source tool for evaluating AI agents. Kitaru allows teams to replay agent sessions against production data, enabling rigorous testing of changes before deployment.

Kitaru operates by recording agent sessions as they execute in production or staging environments. Replays execute in isolated environments, ensuring that production traffic remains unaffected.

Technical Implementation and Recent Updates

ZenML is implemented in Python and follows a modular architecture, allowing users to extend its functionality through custom integrations and plugins. The framework supports a wide range of orchestrators, including Kubernetes, Kubeflow, and cloud-based services, as well as artifact stores like MLflow and Weights & Biases.

Recent updates to ZenML have focused on improving performance, security, and usability.

  • Resource Pool Management: ZenML has reworked its resource pool system to align with ZenML Pro’s Resource Manager v2, ensuring better scalability and control over computational resources. This update requires migration for users relying on legacy resource pool management.
  • This fix resolves issues where the UI or API might fail to render run graphs despite valid underlying data.
  • Webhook Triggers for Automation: ZenML now supports webhook-driven automation for pipeline snapshots, enabling integration with GitHub, ClickUp, and Slack. These triggers allow teams to automate workflows based on external events, such as merged pull requests or completed tasks.
  • AWS RDS IAM Authentication: The MySQL store in ZenML now supports AWS RDS IAM database authentication, providing a passwordless authentication option that aligns with AWS security best practices.
  • Multi-Pod Kubernetes Step Operator: ZenML’s Kubernetes step operator now supports multi-pod execution for command steps, allowing workloads to be distributed across multiple pods.
  • Local Docker Sandbox: The framework includes a local Docker sandbox for testing containerized workflows before deployment. This feature simplifies local development and reduces the complexity of transitioning to production environments.

ZenML’s continuous development ensures that the framework remains aligned with the evolving needs of ML and LLM teams, particularly in areas such as agentic systems, multi-cloud deployments, and automated workflows.

Sources

Contribute

Spot an error, or know a record we should add? Members can propose additions and submit corrections.