Skip to content

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

Shopify Engineering 11 min read Announcement mediumAdept

Tangle: An open-source ML experimentation platform built at Shopify scale

Tangle is Shopify's newly open-sourced ML experimentation platform: users build pipelines visually as DAGs of containerized CLI components defined in YAML, so components can be written in any language and run on any cloud or locally. Its central design choice is content-based caching. Downstream tasks are reused whenever upstream output hashes are unchanged, and cached results are shared globally across users, including executions that are still running. Shopify reports that a 10-hour pipeline can finish in 20 minutes when only one component changes, and that the platform has saved over a year of compute. Other design choices include file-path data passing abstracted over GCS/S3, optional unenforced types, and a multi-tenant HuggingFace deployment that uses per-tenant SQLite databases.

Assumes: ML pipelinesDocker containersDAG workflow orchestration

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.

  • How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline

    Grab Engineering mediumAdept

    Grab's ADW team rebuilt Scarlet, its Slack-based data-pipeline agent, around a short core prompt plus a versioned library of Markdown skills (platform, routing, repository, workflow) loaded on demand, shrinking the prompt about 25x and letting new teams onboard by adding one reviewed repository skill. Platform tools sit behind two-tool MCP bridges, data-platform actions run under the requester's short-lived token, and sign-in pauses use LangGraph interrupts to resume runs. Scarlet now validates the data its changes produce by comparing CI candidate output against production (schema, counts, keys, nulls, stats, row diffs), with inconclusive treated as failure and verdicts bound to commits. Deterministic scaffolds replaced model guesses for predictable config, and after rollout the merge rate rose from about 50% to over 85% while repositories served grew about fourfold.

  • 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.

  • Training Orchestrator: Unifying Model Training at Yelp

    Yelp Engineering mediumAdept

    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.

The quest for software engineering knowledge.

Look:
Layout: