Skip to content

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

Shopify Engineering 6 min read Case study mediumAdept

SkyPilot at Shopify: Multi-cloud GPUs without the pain

Shopify runs all ML training through SkyPilot as a launcher onto persistent Kubernetes clusters on Nebius and GCP, with a custom policy plugin that intercepts every request to validate labels, route jobs and inject configuration. H200 requests go to Nebius with InfiniBand setup (/dev/infiniband mount, IPC_LOCK, libibverbs1) added automatically, while L4 and CPU-only work goes to GCP. Required labels drive showback cost attribution, Kueue fair-share quota queues and a four-level preemption hierarchy. Single-GPU dev environments get interactive priority and are exempt from a reaper that kills jobs under 20% GPU utilization. The team argues that a YAML-plus-policy-hook design keeps engineers close to the hardware while hiding cloud choice, unlike opaque platform UIs.

Related posts

  • Run AI workloads on any cloud, store on Hugging Face: zero-egress storage with SkyPilot

    Hugging Face mediumAdept

    SkyPilot now supports Hugging Face Storage as a first-class backend (`store: hf`), so jobs on any of 20+ clouds, Kubernetes or on-prem can mount Hub buckets (read-write) or model/dataset repos (read-only) via an `hf://` URL and an existing `HF_TOKEN`. MOUNT mode uses the `hf-mount` FUSE driver with lazy, byte-range reads and an on-disk cache. Because Hugging Face charges no egress, reads onto GPUs anywhere are free; writes still pay the compute cloud's egress. A Qwen3.5-4B fine-tune loaded the model in about 30 seconds and wrote 8.43 GB checkpoints at roughly 112-168 MB/s across AWS, GCP and Lambda, while Xet content-defined chunking deduplicates incremental checkpoints, model variants and appended Parquet data.

  • Introducing preemptible compute: the same compute, half the price

    Together AI mediumAdept

    Together GPU Clusters now offer preemptible nodes on Kubernetes and Slurm at a flat 50% of on-demand price, billed sub-hourly, drawing from unused capacity and joining existing clusters with a `together.ai/compute-class=preemptible` label. On reclamation the node is cordoned, a `TogetherPreemptionNotified` event fires and pods get SIGTERM, with up to five minutes to checkpoint before removal; the cluster then refills toward its preemptible target automatically. Good fits are checkpointed or retryable work such as sweeps, evals, fine-tunes and batch inference bursts, while coordinators, login pods and user-facing serving should stay on standard nodes via nodeSelector.

  • Capacity without conflict: A guide to multi-tenant GPU cluster design for AI-native teams

    Together AI easyNovice

    Multi-tenant GPU clusters pool hardware at a shared infrastructure layer (central control plane, shared storage, InfiniBand east/west and Ethernet north/south fabric) while giving each team dedicated GPU nodes, storage PVCs, credentials and its own orchestration layer such as Kubernetes or Slurm. Scheduler-enforced quotas by GPU count, spend or reservation window, conflict-free advance booking and automatic burst to on-demand capacity keep one team from starving others. Teams choose CUDA driver, shared memory and storage at booking time. Nodes get acceptance testing before handoff (DCGM diagnostics, GPU burn, single- and multi-node NCCL, NVBandwidth), with tiered repair: reprovision for software faults, cluster migration for hardware failures. The guide is framed around Together AI's own offering.

  • Scale distributed AI workloads with Ray and Anyscale on Amazon EC2

    AWS Architecture Blog easyNovice

    Ray, run as the managed Anyscale service inside your own AWS account, can carry a multimodal AI/ML pipeline from a single instance to multi-node clusters without code changes. There are three deployment paths: plain EC2 with EFA as the default, EKS with Karpenter for Kubernetes shops, and SageMaker HyperPod for long, failure-sensitive training runs. Each Ray library is mapped to suitable hardware: Graviton and Spot for Ray Data preprocessing, GPUs and Trainium for Ray Train, and Inferentia or Graviton for Ray Serve. Costs are layered as Savings Plans plus Spot (with head nodes kept On-Demand and checkpoint-based recovery), Capacity Blocks for scheduled training, and On-Demand for bursts.

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

The quest for software engineering knowledge.

Look:
Layout: