@@ -61,9 +61,10 @@ def _retrieve_default_environment_variables(
61
61
object, used for SageMaker interactions. If not
62
62
specified, one is created using the default AWS configuration
63
63
chain. (Default: sagemaker.jumpstart.constants.DEFAULT_JUMPSTART_SAGEMAKER_SESSION).
64
- instance_type (str): An instance type to optionally supply in order to get environment variables
65
- specific for the instance type.
66
- script (JumpStartScriptScope): The JumpStart script for which to retrieve environment variables.
64
+ instance_type (str): An instance type to optionally supply in order to get
65
+ environment variables specific for the instance type.
66
+ script (JumpStartScriptScope): The JumpStart script for which to retrieve
67
+ environment variables.
67
68
Returns:
68
69
dict: the inference environment variables to use for the model.
69
70
"""
@@ -94,15 +95,15 @@ def _retrieve_default_environment_variables(
94
95
model_specs , "hosting_instance_type_variants" , None
95
96
):
96
97
default_environment_variables .update (
97
- model_specs .hosting_instance_type_variants .get_instance_specific_environment_variables (
98
+ model_specs .hosting_instance_type_variants .get_instance_specific_environment_variables ( # noqa E501 # pylint: disable=c0301
98
99
instance_type
99
100
)
100
101
)
101
102
elif script == JumpStartScriptScope .TRAINING and getattr (
102
103
model_specs , "training_instance_type_variants" , None
103
104
):
104
105
default_environment_variables .update (
105
- model_specs .training_instance_type_variants .get_instance_specific_environment_variables (
106
+ model_specs .training_instance_type_variants .get_instance_specific_environment_variables ( # noqa E501 # pylint: disable=c0301
106
107
instance_type
107
108
)
108
109
)
0 commit comments