Skip to content

Commit b4aced2

Browse files
committed
fix: reverting some changes
1 parent 8a5c58c commit b4aced2

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

src/sagemaker/jumpstart/enums.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ class VariableTypes(str, Enum):
8282
BOOL = "bool"
8383

8484

85-
class HubContentCapability(str, Enum):
86-
"""Enum class for HubContent capabilities."""
87-
88-
BEDROCK_CONSOLE = "BEDROCK_CONSOLE"
89-
90-
9185
class JumpStartTag(str, Enum):
9286
"""Enum class for tag keys to apply to JumpStart models."""
9387

@@ -105,8 +99,6 @@ class JumpStartTag(str, Enum):
10599

106100
HUB_CONTENT_ARN = "sagemaker-sdk:hub-content-arn"
107101

108-
BEDROCK = "sagemaker-sdk:bedrock"
109-
110102

111103
class SerializerType(str, Enum):
112104
"""Enum class for serializers associated with JumpStart models."""

src/sagemaker/jumpstart/factory/model.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from sagemaker.model_metrics import ModelMetrics
4242
from sagemaker.metadata_properties import MetadataProperties
4343
from sagemaker.drift_check_baselines import DriftCheckBaselines
44-
from sagemaker.jumpstart.enums import JumpStartScriptScope, JumpStartModelType, HubContentCapability
44+
from sagemaker.jumpstart.enums import JumpStartScriptScope, JumpStartModelType
4545
from sagemaker.jumpstart.types import (
4646
HubContentType,
4747
JumpStartModelDeployKwargs,
@@ -51,9 +51,7 @@
5151
)
5252
from sagemaker.jumpstart.utils import (
5353
add_hub_content_arn_tags,
54-
add_bedrock_store_tags,
5554
add_jumpstart_model_info_tags,
56-
add_bedrock_store_tags,
5755
get_default_jumpstart_session_with_user_agent_suffix,
5856
get_neo_content_bucket,
5957
get_top_ranked_config_name,
@@ -490,10 +488,6 @@ def _add_tags_to_kwargs(kwargs: JumpStartModelDeployKwargs) -> Dict[str, Any]:
490488
)
491489
kwargs.tags = add_hub_content_arn_tags(kwargs.tags, hub_content_arn=hub_content_arn)
492490

493-
if hasattr(kwargs.specs, "capabilities") and kwargs.specs.capabilities is not None:
494-
if HubContentCapability.BEDROCK_CONSOLE in kwargs.specs.capabilities:
495-
kwargs.tags = add_bedrock_store_tags(kwargs.tags, compatibility="compatible")
496-
497491
return kwargs
498492

499493

src/sagemaker/jumpstart/hub/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def generate_hub_arn_for_init_kwargs(
119119

120120
hub_arn = None
121121
if hub_name:
122-
# if hub_name == constants.JUMPSTART_MODEL_HUB_NAME:
123-
# return None
122+
if hub_name == constants.JUMPSTART_MODEL_HUB_NAME:
123+
return None
124124
match = re.match(constants.HUB_ARN_REGEX, hub_name)
125125
if match:
126126
hub_arn = hub_name

0 commit comments

Comments
 (0)