This document serves as a reference of the various labels and annotations used throughout OME.
Annotations
InferenceService Annotations
These annotations are used to configure InferenceService behavior:
Annotation
Description
ome.io/enable-tag-routing
Enables tag-based routing for the InferenceService
ome.io/autoscalerClass
Specifies the autoscaler class to use. Valid values: hpa, keda, external
ome.io/metrics
Defines the scaling metric type. Valid values: cpu, memory
ome.io/targetUtilizationPercentage
Sets the target utilization percentage for autoscaling
ome.io/deprecation-warning
Displays deprecation warnings for legacy configurations
ome.io/enable-metric-aggregation
Enables metric aggregation for the InferenceService
ome.io/enable-prometheus-scraping
Enables Prometheus scraping for metrics collection
ome.io/volcano-queue
Specifies the Volcano queue name for job scheduling
Model and Runtime Annotations
Annotation
Description
ome.io/inject-model-init
Enables injection of model initialization containers
ome.io/inject-fine-tuned-adapter
Enables injection of fine-tuned adapter containers
ome.io/inject-serving-sidecar
Enables injection of serving sidecar containers
ome.io/fine-tuned-weight-ft-strategy
Specifies the fine-tuning strategy for weights
ome.io/base-model-name
Specifies the base model name
ome.io/base-model-vendor
Specifies the base model vendor
ome.io/serving-runtime
Specifies the serving runtime to use
ome.io/base-model-format
Specifies the base model format
ome.io/base-model-format-version
Specifies the base model format version
ome.io/fine-tuned-serving-with-merged-weights
Enables fine-tuned serving with merged weights
Model Security Annotations
These annotations control model encryption and decryption:
Annotation
Description
ome.io/base-model-decryption-key-name
Specifies the decryption key name for the base model
ome.io/base-model-decryption-secret-name
Specifies the secret name containing decryption credentials
ome.io/disable-model-decryption
Disables model decryption
Service Configuration Annotations
Annotation
Description
ome.io/service-type
Specifies the Kubernetes service type
ome.io/load-balancer-ip
Sets the load balancer IP address
RDMA Annotations
Annotation
Description
rdma.ome.io/auto-inject
Enables automatic RDMA injection
rdma.ome.io/profile
Specifies the RDMA profile to use
rdma.ome.io/container-name
Specifies the container name for RDMA configuration
Knative Annotations
Annotation
Description
autoscaling.knative.dev/min-scale
Sets the minimum number of replicas
autoscaling.knative.dev/max-scale
Sets the maximum number of replicas
serving.knative.dev/rollout-duration
Specifies the rollout duration
serving.knative.openshift.io/enablePassthrough
Enables passthrough on OpenShift
Runtime Revision and Pinning Annotations
These annotations drive runtime revision pinning, which lets an InferenceService pin to a content-addressed snapshot of its ServingRuntime instead of always tracking the live runtime.
Annotation
Description
ome.io/runtime-sync
Set/bump to a new value on a pinned InferenceService (spec.runtime.autoSync: false) to acknowledge runtime drift and advance the pin to a fresh runtime snapshot.
ome.io/gc-eligible-since
Set by the controller on an OME-managed ControllerRevision (RFC3339 timestamp) when it first becomes unreferenced and over the retention count; the garbage collector uses it. Not user-set.
Deployment Configuration Annotations
Annotation
Description
ome.io/deploymentMode
Selects the deployment strategy (e.g. RawDeployment, MultiNode, Serverless, PDDisaggregated).
ome.io/dedicated-ai-cluster
Associates the InferenceService with a dedicated AI cluster.
ome.io/entrypoint-component
Identifies the entrypoint component of a multi-component InferenceService.
ome.io/accelerator-class
Selects the accelerator class used for runtime matching and scheduling.