class_docstr: DJL build logic for ModelBuilder()
class_docstr_tok: ["DJL","build","logic","for","ModelBuilder","(",")"]
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def _build_for_jumpstart(self):
      """Placeholder docstring"""
      # we do not pickle for jumpstart. set to none
      self.secret_key = None
      self.jumpstart = True
  
      pysdk_model = self._create_pre_trained_js_model()
  
      image_uri = pysdk_model.image_uri
  
      logger.info(
          "JumpStart ID %s is packaged with Image URI: %s",
          self.model,
          image_uri,
      )
  
      if "djl-inference" in image_uri:
          logger.info("Building for DJL JumpStart Model ID...")
          self.model_server = ModelServer.DJL_SERVING
  
          self.pysdk_model = pysdk_model
          self.image_uri = self.pysdk_model.image_uri
  
          self._build_for_djl_jumpstart()
      elif "tgi-inference" in image_uri:
          logger.info("Building for TGI JumpStart Model ID...")
          self.model_server = ModelServer.TGI
  
          self.pysdk_model = pysdk_model
          self.image_uri = self.pysdk_model.image_uri
  
          self._build_for_tgi_jumpstart()
      else:
          raise ValueError(
              "JumpStart Model ID was not packaged with djl-inference or tgi-inference container."
          )
  
      return self.pysdk_model
  
imports: from __future__ import absolute_import
  from abc import ABC, abstractmethod
  from typing import Type
  import logging
  from sagemaker.model import Model
  from sagemaker import model_uris
  from sagemaker.serve.model_server.djl_serving.prepare import prepare_djl_js_resources
  from sagemaker.serve.model_server.tgi.prepare import prepare_tgi_js_resources, _create_dir_structure
  from sagemaker.serve.mode.function_pointers import Mode
  from sagemaker.serve.utils.predictors import DjlLocalModePredictor, TgiLocalModePredictor
  from sagemaker.serve.utils.local_hardware import _get_nb_instance, _get_ram_usage_mb
  from sagemaker.serve.utils.telemetry_logger import _capture_telemetry
  from sagemaker.serve.utils.types import ModelServer
  from sagemaker.base_predictor import PredictorBase
  from sagemaker.jumpstart.model import JumpStartModel
label_desc: Use image node_id 9 for calling the JumpStart obj's underlying member method code with example usage: obj._build_for_jumpstart() and returns: self