Skip to content

Commit 1354cd8

Browse files
author
Mohamed Zeidan
committed
changed endpoint name
1 parent f8e49f4 commit 1354cd8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/sagemaker/hyperpod/inference/jumpstart_public_hub_visualization_utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,6 @@ def _generate_deployment_config(self, model_id):
217217
instance_type = default_type if default_type else '\<ENTER-INSTANCE-TYPE\>'
218218
types_comment = self._format_instance_types_comment(supported_types)
219219

220-
# Generate timestamp for unique endpoint name
221-
timestamp = str(int(time.time()))
222-
endpoint_name_value = f"{model_id}-{timestamp}"
223-
224220
config_code = f'''# Deployment configuration for {model_id}
225221
from sagemaker.hyperpod.inference.config.hp_jumpstart_endpoint_config import (
226222
Model, Server, SageMakerEndpoint
@@ -236,7 +232,7 @@ def _generate_deployment_config(self, model_id):
236232
server = Server(
237233
instance_type='{instance_type}',
238234
)
239-
endpoint_name = SageMakerEndpoint(name='{endpoint_name_value}')
235+
endpoint_name = SageMakerEndpoint(name='{model_id}')
240236
241237
# Create endpoint spec
242238
js_endpoint = HPJumpStartEndpoint(

0 commit comments

Comments
 (0)