class_docstr: Holds the required method to deploy a model to a SageMaker Endpoint
class_docstr_tok: ["Holds","the","required","method","to","deploy","a","model","to","a","SageMaker","Endpoint"]
code: def __init__(
      self,
      inference_spec: Type[InferenceSpec],
      model_server: ModelServer,
  ):
      super().__init__()
      # pylint: disable=bad-super-call
      super(SageMakerTritonServer, self).__init__()
  
      self.inference_spec = inference_spec
      self.model_server = model_server
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/mode/sagemaker_endpoint_mode.py
imports: from __future__ import absolute_import
  from pathlib import Path
  import logging
  from typing import Type
  from sagemaker.session import Session
  from sagemaker.serve.utils.types import ModelServer
  from sagemaker.serve.spec.inference_spec import InferenceSpec
  from sagemaker.serve.model_server.triton.server import SageMakerTritonServer
  from sagemaker.serve.model_server.torchserve.server import SageMakerTorchServe
  from sagemaker.serve.model_server.djl_serving.server import SageMakerDjlServing
  from sagemaker.serve.model_server.tgi.server import SageMakerTgiServing
label_desc: Use image node_id 1 to create a new SageMakerEndpointMode object from inherited base classes: SageMakerTorchServe, SageMakerTritonServer, SageMakerDjlServing, SageMakerTgiServing with example: obj = SageMakerEndpointMode(inference_spec, model_server)