Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Yelp Engineering 12 min read Case study mediumAdept

Training Orchestrator: Unifying Model Training at Yelp

Yelp's Training Orchestrator replaces per-team monolithic Spark training scripts with a declarative, configuration-driven framework. Pipelines are composed of typed steps whose dependencies form a DAG executed in topological order. Pydantic configs validate parameters and step input/output schemas up front, and injected Spark/MLflow context lets the same pipeline run locally, in Jupyter or in production. The payoff is local runs and unit-testable steps, config errors caught in seconds instead of hours into training, automatic MLflow logging of full configs for reproducibility, and swappable settings-plus-function pairs for reuse across batches.

Assumes: Apache Spark basicsMLflow experiment trackingPydantic modelsML training pipelines

Related posts

  • Introducing Trackio: A Lightweight Experiment Tracking Library from Hugging Face

    Hugging Face mediumAdept

    Trackio is a free, open-source Python experiment tracking library that works as a drop-in replacement for wandb's init/log/finish API. It shows runs in a local Gradio dashboard and can sync to Hugging Face Spaces for sharing or iframe embedding. On Spaces, metrics go to an ephemeral SQLite database that is converted to Parquet and backed up to a Hugging Face Dataset every 5 minutes. It integrates with transformers Trainer and Accelerate, keeps its core under 1,000 lines, and is in beta without artifact management or complex visualizations.

  • Zalando's Machine Learning Platform

    Zalando Engineering mediumAdept

    Zalando's ML platform takes ideas from experimentation in a hosted JupyterHub (Datalab), Databricks and a GPU HPC cluster to production pipelines orchestrated by AWS Step Functions. Pipelines are written in zflow, an internal typed Python DSL that uses AWS CDK to generate CloudFormation templates, which are committed to git and deployed by Zalando's Continuous Delivery Platform. Pipeline stages call Databricks jobs and SageMaker training, batch transform and endpoints. Executions, metrics and model cards are tracked in a Backstage-based ML portal, and central teams supporting tooling and consulting complement ML expertise distributed across product teams.

  • The Magic of Merlin: Shopify's New Machine Learning Platform

    Shopify Engineering mediumAdept

    Merlin is Shopify's redesigned ML platform built on open source tools. It uses Ray clusters running on Kubernetes as short-lived, per-use-case "Merlin Workspaces", and "Merlin Projects" are Docker images with isolated Python environments built through CI/CD. Data scientists prototype from JupyterHub through the Ray Client, then productionize by scheduling Airflow DAGs that create a workspace, run the job and tear it down, with Datadog and Splunk for monitoring. Onboarding the product categorization model took few code changes: Ray Train distributed TensorFlow training, and Ray ActorPool distributed multi-step batch inference.

  • Shopify's Playbook for Scaling Machine Learning

    Shopify Engineering easyNovice

    Shopify's approach to scaling machine learning grew out of its first ML product, an order fraud detector that replaced a rule-based system with a high false-positive rate. Teams should pick a problem users care about, confirm the data is trustworthy and accessible, account for downstream dependencies such as fulfillment, and optimize for product outcomes rather than raw model scores. Shopify shipped a simple logistic regression model, built in Python, serialized to PMML, scheduled with Airflow and served in real time from Rails. To scale to hundreds of models, Shopify relies on input/output reconciliation, shadow backtesting, drift monitoring, platform-enforced best practices and automated model operations.

  • Unlocking Real-time Predictions with Shopify's Machine Learning Platform

    Shopify Engineering mediumAdept

    Shopify extended its Ray-based Merlin ML platform with online inference, running each real-time model as a dedicated service in its own namespace on GKE that loads models from the Comet ML registry and can read features from the Feast-based Pano store. The serving layer is written in Python and offers three tiers: no-code MLServer configs, low-code custom MLServer classes, and fully custom FastAPI services, all scaffolded by a Merlin CLI from cookiecutter templates. Users test serving layers in short-lived Merlin Workspaces, then deploy through Shopify's standard Services DB, Buildkite and Shipit pipelines with separate staging and production configs for autoscaling and resource tuning.

The quest for software engineering knowledge.

Look:
Layout: