Skip to content

Commit a658500

Browse files
committed
nit: clean up long comments not necessary for customer
1 parent 6daed77 commit a658500

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎sagemaker-serve/src/sagemaker/serve/model_builder.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,10 +2284,8 @@ def _upload_code(self, key_prefix: str, repack: bool = False) -> None:
22842284
script_name=os.path.basename(self.entry_point),
22852285
)
22862286

2287-
# ``script_dependencies`` (derived from SourceCode.requirements) is a
2288-
# list of paths; ``self.dependencies`` is the deprecated auto-detect
2289-
# dict ({"auto": True}) and must not be passed to repack_model, which
2290-
# iterates dependencies as filesystem paths.
2287+
# Use script_dependencies (a list); self.dependencies is the
2288+
# deprecated auto-detect dict, which repack_model would iterate as paths.
22912289
repack_dependencies = self.script_dependencies or []
22922290

22932291
logger.info(

‎sagemaker-serve/src/sagemaker/serve/model_builder_servers.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,8 @@ def _build_for_model_server(self) -> Model:
100100
if self.model_metadata:
101101
mlflow_path = self.model_metadata.get(MLFLOW_MODEL_PATH)
102102

103-
# A model artifact supplied via s3_model_data_url (e.g. a completed
104-
# training job's artifact) together with source_code is a valid input:
105-
# the code is repacked into the artifact and served by the chosen model
106-
# server. Accept it as sufficient alongside model/MLflow/inference_spec.
103+
# s3_model_data_url (e.g. a trained artifact) with source_code is valid:
104+
# the code is repacked into the artifact and served by the model server.
107105
if (
108106
not self.model
109107
and not mlflow_path

0 commit comments

Comments
 (0)