File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,9 @@ def get_init_kwargs(
205
205
206
206
estimator_init_kwargs = _add_model_version_to_kwargs (estimator_init_kwargs )
207
207
estimator_init_kwargs = _add_vulnerable_and_deprecated_status_to_kwargs (estimator_init_kwargs )
208
- estimator_init_kwargs = _add_sagemaker_session_with_user_agent_to_kwargs (estimator_init_kwargs )
208
+ estimator_init_kwargs = _add_sagemaker_session_with_custom_user_agent_to_kwargs (
209
+ estimator_init_kwargs
210
+ )
209
211
estimator_init_kwargs = _add_region_to_kwargs (estimator_init_kwargs )
210
212
estimator_init_kwargs = _add_instance_type_and_count_to_kwargs (estimator_init_kwargs )
211
213
estimator_init_kwargs = _add_image_uri_to_kwargs (estimator_init_kwargs )
@@ -439,7 +441,9 @@ def _add_region_to_kwargs(kwargs: JumpStartKwargs) -> JumpStartKwargs:
439
441
return kwargs
440
442
441
443
442
- def _add_sagemaker_session_with_user_agent_to_kwargs (kwargs : JumpStartKwargs ) -> JumpStartKwargs :
444
+ def _add_sagemaker_session_with_custom_user_agent_to_kwargs (
445
+ kwargs : JumpStartKwargs ,
446
+ ) -> JumpStartKwargs :
443
447
"""Sets session in kwargs based on default or override, returns full kwargs."""
444
448
kwargs .sagemaker_session = (
445
449
kwargs .sagemaker_session
Original file line number Diff line number Diff line change @@ -1118,7 +1118,6 @@ def get_jumpstart_user_agent_extra_suffix(
1118
1118
sagemaker_python_sdk_headers = get_user_agent_extra_suffix ()
1119
1119
jumpstart_specific_suffix = f"md/js_model_id#{ model_id } md/js_model_ver#{ model_version } "
1120
1120
config_specific_suffix = f"md/js_config#{ config_name } "
1121
- print (config_name )
1122
1121
hub_specific_suffix = f"md/js_is_hub_content#{ is_hub_content } "
1123
1122
1124
1123
if os .getenv (constants .ENV_VARIABLE_DISABLE_JUMPSTART_TELEMETRY , None ):
You can’t perform that action at this time.
0 commit comments