Seldon Core

On this page 7

Seldon Core is a Kubernetes-native model serving framework that turns trained machine learning models into scalable, observable inference services defined by declarative resources. In MLOps & deployment, it sits at the serving layer: it takes a stored model artifact, loads it into an inference server, exposes standard REST and gRPC endpoints and connects the result to routing, monitoring and experiment logic.

The project is developed by Seldon, a London-based company, and exists in two generations. Seldon Core 1 organizes everything around a single SeldonDeployment resource, while Seldon Core 2 separates models, servers, pipelines and experiments into distinct resources built for multi-model serving and streaming data flows.

How Seldon Core serves a model on Kubernetes

Seldon Core works as a Kubernetes operator: engineers describe the desired serving state in YAML, and a controller reconciles the cluster until running pods match that description. The model files themselves usually live in object storage such as S3, Google Cloud Storage or Azure Blob Storage and are pulled by an init step or agent when a model is scheduled.

Requests follow a predictable path. An ingress gateway, typically Envoy or Istio, receives the call, the platform routes it to the right model or pipeline, and an inference server executes the prediction. Seldon Core 2 relies on MLServer for Python frameworks and NVIDIA Triton for deep learning workloads, and both speak the Open Inference Protocol, also called the V2 inference protocol.

The following table lists the main building blocks and their role in the serving path.

ComponentRoleTypical technology
Model resourceDeclares one model, its storage URI and requirementsCustom resource definition
Server resourceDefines a pool of inference server replicasMLServer or Triton
Pipeline resourceChains models into a data flowKafka topics
Experiment resourceSplits or mirrors traffic between candidatesWeighted routing
SchedulerPlaces models onto available serversSeldon control plane
GatewayHandles external REST and gRPC trafficEnvoy proxy
Core components of a Seldon Core 2 installation

Seldon Core 1 and Seldon Core 2 compared

The two major versions share a goal but differ in architecture. Seldon Core 1 deploys each model as its own set of pods and expresses composition through an inference graph of predictors, transformers, routers and combiners inside one resource. This design is simple to reason about but becomes expensive at scale, because every model reserves dedicated CPU and memory.

Seldon Core 2 decouples the model from the server. Many models can share one server, the scheduler can overcommit memory by unloading rarely used models, and pipelines pass data asynchronously through Apache Kafka. The table below summarizes the practical differences.

AspectSeldon Core 1Seldon Core 2
Main resourceSeldonDeploymentModel, Server, Pipeline, Experiment
Model placementOne model per deploymentMany models per server
CompositionSynchronous inference graphKafka-based pipelines
Default protocolSeldon protocol or V2Open Inference Protocol
Resource efficiencyLower at large model countsHigher through sharing
Differences between the two generations

Teams migrating from version 1 should expect to rewrite deployment manifests rather than convert them automatically, since the resource model changed fundamentally.

Experiments, monitoring and explanations

Beyond plain serving, Seldon Core supports controlled release strategies that are central to production machine learning. An Experiment resource can split traffic between a champion and a challenger for model A/B testing, or mirror live requests to a candidate in a shadow deployment whose responses are recorded but never returned to users.

Observability comes from Prometheus metrics for latency, throughput and error rates, plus optional request logging to Kafka or a search index. Seldon also maintains the open libraries Alibi Detect for outlier and drift detection and Alibi Explain for model explanations, which can run as additional components next to a deployed model.

The table below maps common production needs to the Seldon Core feature that addresses them.

Production needSeldon Core capabilityMain benefit
Safe release of a new modelTraffic split experimentMeasured, reversible rollout
Risk-free validationMirrored shadow trafficNo user impact during testing
Detecting input changesDrift detector componentEarly warning of degradation
Auditing predictionsRequest and response loggingTraceable decisions
Capacity planningPrometheus metricsData-driven autoscaling
Production needs and matching capabilities

Seldon Core among other serving platforms

Seldon Core competes most directly with KServe, the serving component that originated in Kubeflow and also runs on Kubernetes with the same Open Inference Protocol. KServe leans on Knative for request-driven autoscaling and scale to zero, while Seldon Core 2 emphasizes dense multi-model packing and streaming pipelines.

Framework-centric tools such as BentoML focus on packaging a model and its code into a service, and managed platforms such as Amazon SageMaker, Vertex AI and Azure Machine Learning remove cluster operations entirely. Seldon Core suits organizations that already operate Kubernetes and want serving to remain inside their own infrastructure.

Licensing, limitations and common mistakes

Licensing deserves early attention. In 2024 Seldon moved Seldon Core to the Business Source License, which keeps the source available but generally requires a commercial license for production use by companies. Legal review belongs in the platform decision, not after deployment.

Technical limitations also matter. The platform assumes solid Kubernetes skills, Kafka adds operational weight to pipelines, and large language models often need specialized runtimes and GPU scheduling that exceed default settings. Frequent mistakes include:

  • Ignoring model warm-up, which causes slow first requests after scaling
  • Packing too many models onto one server without memory headroom
  • Treating shadow results as proof without checking training-serving skew
  • Enabling payload logging without masking personal data

The idea in brief

A trained model is only a file. It cannot answer questions until something loads it and listens for requests. Seldon Core is that something for teams that run Kubernetes.

Think of it as a restaurant kitchen manager. The recipes are the models. The cooks are the servers. The manager decides which cook prepares which dish, sends orders to the right station and keeps track of how fast meals leave the kitchen. The key point is simple: Seldon Core turns stored models into reliable services that many applications can call.

A practical scenario

A mid-sized online retailer runs forty recommendation and fraud models on its own Kubernetes cluster. Under its earlier setup, every model had dedicated pods, and most of them sat idle overnight while still consuming memory. The platform team adopts Seldon Core 2 and places the models on three shared MLServer pools and one Triton pool for a neural ranking model.

When the data science team trains a new fraud model, engineers define an Experiment that mirrors all live traffic to the challenger for two weeks. Prometheus dashboards show comparable latency, and offline analysis confirms fewer false positives. The team then shifts ten percent of traffic, then fifty, and finally promotes the model. The outcome is a measured, reversible release and a cluster that needs noticeably fewer nodes for the same workload.