Inference#
- class sagemaker.hyperpod.inference.hp_endpoint_base.HPEndpointBase[source]#
Base class for HyperPod inference endpoints.
This class provides common functionality for managing inference endpoints on SageMaker HyperPod clusters orchestrated by Amazon EKS. It handles Kubernetes API interactions for creating, listing, getting, and deleting inference endpoints.
- classmethod call_create_api(metadata: Metadata, kind: str, spec: _HPJumpStartEndpoint | _HPEndpoint, debug: bool = False)[source]#
Create an inference endpoint using Kubernetes API.
Parameters:
Parameter
Type
Description
metadata
Metadata
Kubernetes metadata object containing name, namespace, labels, and annotations
kind
str
Kubernetes resource kind (e.g., ‘HPJumpStartEndpoint’)
spec
Union[_HPJumpStartEndpoint, _HPEndpoint]
Endpoint specification
Raises:
Exception: If endpoint creation fails
Usage Examples
>>> from sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config import _HPJumpStartEndpoint >>> from sagemaker.hyperpod.common.config.metadata import Metadata >>> spec = _HPJumpStartEndpoint(...) >>> metadata = Metadata(name="my-endpoint", namespace="default") >>> HPEndpointBase.call_create_api(metadata, "HPJumpStartEndpoint", spec)
- classmethod call_list_api(kind: str, namespace: str)[source]#
List inference endpoints using Kubernetes API.
Parameters:
Parameter
Type
Description
kind
str
Kubernetes resource kind to list
namespace
str
Kubernetes namespace to list endpoints from
Returns:
dict: List of endpoints in the specified namespace
Raises:
Exception: If listing endpoints fails
Usage Examples
>>> endpoints = HPEndpointBase.call_list_api("HPJumpStartEndpoint", "default") >>> print(f"Found {len(endpoints['items'])} endpoints")
- classmethod call_get_api(name: str, kind: str, namespace: str)[source]#
Get a specific inference endpoint using Kubernetes API.
Parameters:
Parameter
Type
Description
name
str
Name of the endpoint to retrieve
kind
str
Kubernetes resource kind
namespace
str
Kubernetes namespace containing the endpoint
Returns:
dict: Endpoint details
Raises:
Exception: If retrieving endpoint fails
Usage Examples
>>> endpoint = HPEndpointBase.call_get_api("my-endpoint", "HPJumpStartEndpoint", "default") >>> print(endpoint['metadata']['name'])
- call_delete_api(name: str, kind: str, namespace: str)[source]#
Delete an inference endpoint using Kubernetes API.
Parameters:
Parameter
Type
Description
name
str
Name of the endpoint to delete
kind
str
Kubernetes resource kind
namespace
str
Kubernetes namespace containing the endpoint
Raises:
Exception: If deleting endpoint fails
Usage Examples
>>> base = HPEndpointBase() >>> base.call_delete_api("my-endpoint", "HPJumpStartEndpoint", "default")
- classmethod get_operator_logs(since_hours: float)[source]#
Get logs from the inference operator.
Retrieves logs from the HyperPod inference operator pods for debugging and monitoring purposes.
Parameters:
Parameter
Type
Description
since_hours
float
Number of hours back to retrieve logs from
Returns:
str: Operator logs with timestamps
Raises:
Exception: If no operator pods found or log retrieval fails
Usage Examples
>>> logs = HPEndpointBase.get_operator_logs(1.0) >>> print(logs) >>> >>> # Get logs from last 30 minutes >>> logs = HPEndpointBase.get_operator_logs(0.5)
- classmethod get_logs(pod: str, container: str = None, namespace=None)[source]#
Get logs from a specific pod.
Retrieves logs from a pod associated with an inference endpoint.
Parameters:
Parameter
Type
Description
pod
str
Name of the pod to get logs from
container
str, optional
Container name. If not specified, uses the first container in the pod
namespace
str, optional
Kubernetes namespace. If not specified, uses the default namespace
Returns:
str: Pod logs with timestamps
Raises:
Exception: If log retrieval fails
Usage Examples
>>> logs = HPEndpointBase.get_logs("my-pod-name") >>> print(logs) >>> >>> # Get logs from specific container >>> logs = HPEndpointBase.get_logs("my-pod", container="inference") >>> >>> # Get logs from specific namespace >>> logs = HPEndpointBase.get_logs("my-pod", namespace="my-namespace")
- classmethod list_pods(namespace=None)[source]#
List all pods in a namespace.
Parameters:
Parameter
Type
Description
namespace
str, optional
Kubernetes namespace to list pods from. If not specified, uses the default namespace
Returns:
List[str]: List of pod names in the namespace
Usage Examples
>>> pods = HPEndpointBase.list_pods() >>> print(f"Found {len(pods)} pods: {pods}") >>> >>> # List pods in specific namespace >>> pods = HPEndpointBase.list_pods(namespace="my-namespace")
- class sagemaker.hyperpod.inference.hp_endpoint.HPEndpoint[source]#
Bases:
_HPEndpoint,HPEndpointBase- classmethod list_pods(namespace=None, endpoint_name=None)[source]#
List all pods in a namespace.
Parameters:
Parameter
Type
Description
namespace
str, optional
Kubernetes namespace to list pods from. If not specified, uses the default namespace
Returns:
List[str]: List of pod names in the namespace
Usage Examples
>>> pods = HPEndpointBase.list_pods() >>> print(f"Found {len(pods)} pods: {pods}") >>> >>> # List pods in specific namespace >>> pods = HPEndpointBase.list_pods(namespace="my-namespace")
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.hp_jumpstart_endpoint.HPJumpStartEndpoint[source]#
Bases:
_HPJumpStartEndpoint,HPEndpointBase- validate_mig_profile(mig_profile: str, instance_type: str)[source]#
Validate if the MIG profile is supported for the given instance type.
- Parameters:
instance_type – SageMaker instance type (e.g., “ml.p4d.24xlarge”)
mig_profile – MIG profile (e.g., “1g.10gb”)
- Raises:
ValueError – If the instance type doesn’t support MIG profiles or if the MIG profile is not supported for the instance type
- classmethod list_pods(namespace=None, endpoint_name=None)[source]#
List all pods in a namespace.
Parameters:
Parameter
Type
Description
namespace
str, optional
Kubernetes namespace to list pods from. If not specified, uses the default namespace
Returns:
List[str]: List of pod names in the namespace
Usage Examples
>>> pods = HPEndpointBase.list_pods() >>> print(f"Found {len(pods)} pods: {pods}") >>> >>> # List pods in specific namespace >>> pods = HPEndpointBase.list_pods(namespace="my-namespace")
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Dimensions[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.CloudWatchTrigger[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
CloudWatch metric trigger to use for autoscaling
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.CloudWatchTriggerList[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.PrometheusTrigger[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Prometheus metric trigger to use for autoscaling
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.PrometheusTriggerList[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.AutoScalingSpec[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Kubernetes[source]#
Bases:
BaseModelUser-provided customizations for the inference pod.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.NodeSelectorRequirement[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.NodeSelectorTerm[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.PreferredSchedulingTerm[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.NodeSelector[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.NodeAffinity[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.CustomCertificateConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Probe[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Probes[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.RequestLimits[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.IntelligentRoutingSpec[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for intelligent routing This feature is currently not supported for existing deployments. Adding this configuration to an existing deployment will be rejected.
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.L2CacheSpec[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for providing L2 Cache offloading
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.KvCacheSpec[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for KV Cache specification By default L1CacheOffloading will be enabled
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.LoadBalancer[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for Application Load Balancer
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.ModelMetrics[source]#
Bases:
BaseModelConfiguration for model container metrics scraping
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Metrics[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for metrics collection and exposure
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.FsxStorage[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.S3Storage[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.TokenSecretRef[source]#
Bases:
BaseModelReference to a Kubernetes Secret containing the HuggingFace API token.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.HuggingFaceModel[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
HuggingFace model configuration. Required when modelSourceType is huggingface.
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.ModelSourceConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Tags[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.TlsConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configurations for TLS
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.ConfigMapKeyRef[source]#
Bases:
BaseModelSelects a key of a ConfigMap.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.FieldRef[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
supports metadata.name, metadata.namespace,
metadata.labels['<KEY>'],metadata.annotations['<KEY>'], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.- Type:
Selects a field of the pod
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.ResourceFieldRef[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
- Type:
Selects a resource of the container
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.SecretKeyRef[source]#
Bases:
BaseModelSelects a key of a secret in the pod’s namespace
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.ValueFrom[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Source for the environment variable’s value. Cannot be used if value is not empty.
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.EnvironmentVariables[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
EnvVar represents an environment variable present in a Container.
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.ModelInvocationPort[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Defines the port at which the model server will listen to the invocation requests.
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.ModelVolumeMount[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Defines the volume where model will be loaded
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Claims[source]#
Bases:
BaseModelResourceClaim references one entry in PodSpec.ResourceClaims.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Resources[source]#
Bases:
BaseModelDefines the Resources in terms of CPU, GPU, Memory needed for the model to be deployed
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Worker[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Details of the worker
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.CaptureContentTypeHeader[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for how to treat different content type headers during capture
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.CaptureOptions[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
CaptureOption defines what data to capture (input, output, or both).
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.BufferConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for buffering and flushing captured data
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.PayloadConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for payload size limits
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.DataCaptureModelPod[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for Model Pod level data capture (Tier 3)
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.DataCaptureSagemakerEndpoint[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for SageMaker Endpoint level data capture (Tier 1)
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.DataCaptureLoadBalancer[source]#
Bases:
BaseModelConfiguration for LoadBalancer level data capture (Tier 2)
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.DataCapture[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for data capture across multiple tiers (SageMaker, LoadBalancer, Model Pod)
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.DnsConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
DNS automation configuration for Route53. Requires tlsConfig.customCertificateConfig to be set.
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Conditions[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
DeploymentCondition describes the state of a deployment at a certain point.
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Status[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Status of the Deployment Object
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.DeploymentStatus[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Details of the native kubernetes deployment that hosts the model
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Sagemaker[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Status of the SageMaker endpoint
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.Endpoints[source]#
Bases:
BaseModelEndpointStatus contains the status of SageMaker endpoints
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.ModelMetricsStatus[source]#
Bases:
BaseModelStatus of model container metrics collection
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.MetricsStatus[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Status of metrics collection
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.TlsCertificate[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
CertificateStatus represents the status of TLS certificates
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.DnsStatus[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Status of the operator-managed Route53 DNS record
- class sagemaker.hyperpod.inference.config.hp_endpoint_config.InferenceEndpointConfigStatus[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
ModelDeploymentStatus defines the observed state of ModelDeployment
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.Dimensions[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.CloudWatchTrigger[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
CloudWatch metric trigger to use for autoscaling
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.PrometheusTrigger[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Prometheus metric trigger to use for autoscaling
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.CloudWatchTriggerList[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.PrometheusTriggerList[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.AutoScalingSpec[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.EnvironmentVariables[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.ModelMetrics[source]#
Bases:
BaseModelConfiguration for model container metrics scraping
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.Metrics[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for metrics collection and exposure
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.AdditionalConfigs[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.Model[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.SageMakerEndpoint[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.Validations[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.Server[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.IntelligentRoutingSpec[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for intelligent routing
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.L2CacheSpec[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.KvCacheSpec[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.LoadBalancer[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.CustomCertificateConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.TlsConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.CaptureContentTypeHeader[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for how to treat different content type headers during capture
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.CaptureOptions[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
CaptureOption defines what data to capture (input, output, or both).
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.BufferConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for buffering and flushing captured data
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.PayloadConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for payload size limits
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.DataCaptureModelPod[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for Model Pod level data capture (Tier 3)
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.DataCaptureSagemakerEndpoint[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for SageMaker Endpoint level data capture (Tier 1)
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.DataCaptureLoadBalancer[source]#
Bases:
BaseModelConfiguration for LoadBalancer level data capture (Tier 2)
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.DataCapture[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for data capture across multiple tiers (SageMaker, LoadBalancer, Model Pod)
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.DnsConfig[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
DNS automation configuration for Route53.
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.Conditions[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
DeploymentCondition describes the state of a deployment at a certain point.
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.Status[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Status of the Deployment Object
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.DeploymentStatus[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Details of the native kubernetes deployment that hosts the model
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.Sagemaker[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Status of the SageMaker endpoint
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.Endpoints[source]#
Bases:
BaseModelEndpointStatus contains the status of SageMaker endpoints
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.ModelMetricsStatus[source]#
Bases:
BaseModelStatus of model container metrics collection
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.MetricsStatus[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Status of metrics collection
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.TlsCertificate[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
CertificateStatus represents the status of TLS certificates
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.DataCaptureModelPodStatus[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Health status of the model pod data capture tier
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.DataCaptureStatus[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Health status of the data capture pipeline
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.DnsStatus[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Status of the operator-managed Route53 DNS record
- class sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config.JumpStartModelStatus[source]#
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
ModelDeploymentStatus defines the observed state of ModelDeployment