class_docstr: Placeholder docstring
class_docstr_tok: ["Placeholder","docstring"]
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def _start_tgi_serving(
      self,
      client: object,
      image: str,
      model_path: str,
      secret_key: str,
      env_vars: dict,
      jumpstart: bool,
  ):
      """Placeholder docstring"""
      if jumpstart:
          self.container = client.containers.run(
              image,
              ["--model-id", MODE_DIR_BINDING],
              shm_size=_SHM_SIZE,
              device_requests=[
                  DeviceRequest(count=-1, capabilities=[["gpu"]])
              ],
              network_mode="host",
              detach=True,
              auto_remove=True,
              volumes={
                  Path(model_path).joinpath("code"): {
                      "bind": MODE_DIR_BINDING,
                      "mode": "rw",
                  },
              },
              environment=env_vars,
          )
      else:
          self.container = client.containers.run(
              image,
              shm_size=_SHM_SIZE,
              device_requests=[
                  DeviceRequest(count=-1, capabilities=[["gpu"]])
              ],
              network_mode="host",
              detach=True,
              auto_remove=True,
              volumes={
                  Path(model_path).joinpath("code"): {
                      "bind": MODE_DIR_BINDING,
                      "mode": "rw",
                  },
              },
              environment=_update_env_vars(env_vars),
          )
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/model_server/tgi/server.py
imports: from __future__ import absolute_import
  import requests
  import logging
  from pathlib import Path
  from docker.types import DeviceRequest
  from sagemaker import Session, fw_utils
  from sagemaker.serve.utils.exceptions import LocalModelInvocationException
  from sagemaker.base_predictor import PredictorBase
  from sagemaker.s3_utils import determine_bucket_and_prefix, parse_s3_url, s3_path_join
  from sagemaker.s3 import S3Uploader
  from sagemaker.local.utils import get_docker_host
label_desc: Use image node_id 1 for calling the LocalTgiServing obj's underlying member method code with example usage: obj._start_tgi_serving(client, image, model_path, secret_key, env_vars, jumpstart) without return types