[Paper Review] CodeReef: an open platform for portable MLOps, reusable automation actions and reproducible benchmarking
CodeReef introduces an open, web-based platform that packages machine learning models and workflows as portable, versioned, and reproducible artifacts using the Collective Knowledge (CK) framework. It enables automated, cross-platform deployment and benchmarking of ML models—such as SSD-Mobilenet on TensorFlow—across diverse systems from IoT devices to data centers, with unified APIs and crowd-sourced performance measurement via interactive dashboards.
We present CodeReef - an open platform to share all the components necessary to enable cross-platform MLOps (MLSysOps), i.e. automating the deployment of ML models across diverse systems in the most efficient way. We also introduce the CodeReef solution - a way to package and share models as non-virtualized, portable, customizable and reproducible archive files. Such ML packages include JSON meta description of models with all dependencies, Python APIs, CLI actions and portable workflows necessary to automatically build, benchmark, test and customize models across diverse platforms, AI frameworks, libraries, compilers and datasets. We demonstrate several CodeReef solutions to automatically build, run and measure object detection based on SSD-Mobilenets, TensorFlow and COCO dataset from the latest MLPerf inference benchmark across a wide range of platforms from Raspberry Pi, Android phones and IoT devices to data centers. Our long-term goal is to help researchers share their new techniques as production-ready packages along with research papers to participate in collaborative and reproducible benchmarking, compare the different ML/software/hardware stacks and select the most efficient ones on a Pareto frontier using online CodeReef dashboards.
Motivation & Objective
- Address the lack of reproducibility and portability in ML deployment across heterogeneous systems, especially for edge and embedded devices.
- Overcome limitations of existing tools like Docker, Kubernetes, MLFlow, and MLPerf by providing a unified, non-intrusive platform for sharing and versioning ML components.
- Enable researchers to package ML models, dependencies, and workflows as self-contained, non-virtualized, and customizable archives for production use.
- Support collaborative, crowd-sourced benchmarking of ML models across diverse hardware and software stacks using standardized, automated workflows.
- Facilitate integration of ML models with legacy systems and real-time applications (e.g., webcam inference) via a consistent, portable API.
Proposed method
- Leverages the open-source Collective Knowledge (CK) format to represent ML models, dependencies, code, data, and workflows as versioned, file-based components.
- Packages ML solutions as portable, non-virtualized archives containing JSON metadata, Python APIs, CLI actions, and platform-specific build recipes.
- Uses a unified API (compile, run, benchmark, validate) to automate model deployment and performance measurement across platforms including Raspberry Pi, Android, and data centers.
- Enables users to initialize, run, and benchmark solutions via a command-line client (e.g., `cr init`, `cr benchmark`) that resolves dependencies and configures environments automatically.
- Integrates with existing tools like MLPerf, Docker, and Kubernetes without replacing them, enhancing their portability and reproducibility.
- Provides interactive dashboards to visualize and compare benchmark results (latency, accuracy, memory, energy) across user-contributed platforms.
Experimental results
Research questions
- RQ1How can ML models and workflows be packaged in a portable, non-virtualized, and reproducible way across diverse hardware and software stacks?
- RQ2Can a unified, open platform reduce the complexity of deploying ML models in production while maintaining compatibility with existing tools like MLPerf and Docker?
- RQ3To what extent can community-driven, crowd-sourced benchmarking improve the reproducibility and performance evaluation of ML models?
- RQ4How can versioned, modular components be used to ensure backward compatibility and stable execution of ML workflows across different projects and environments?
- RQ5Can a web-based platform with a GUI and CLI client streamline the integration of ML models into legacy systems and real-time applications?
Key findings
- CodeReef successfully packaged the MLPerf SSD-Mobilenet object detection model with TensorFlow and COCO dataset as a portable, versioned solution deployable on Raspberry Pi, Android, and data centers.
- The platform enabled automated, cross-platform benchmarking of the model using a single unified API, with results visualized in real-time dashboards.
- Users were able to run and measure performance (latency, accuracy, memory) on diverse devices—from laptops to embedded systems—by executing simple CLI commands.
- The solution demonstrated full reproducibility: users could re-execute the same workflow and obtain consistent results across platforms by relying on CK’s dependency and versioning system.
- Integration with live webcam inference demonstrated the platform’s capability to connect ML models with real-time applications and legacy systems.
- The platform reduced manual effort in model deployment and benchmarking by abstracting complex environment setup, dependency management, and cross-compilation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.